Skip to content

Commit 80d2499

Browse files
author
Fergus Bisset
committed
fix(ProductCard): use enums for vector kind and shadow to satisfy TS types
1 parent 3619347 commit 80d2499

File tree

24 files changed

+2342
-2302
lines changed

24 files changed

+2342
-2302
lines changed

dist/components/Header/Header.css

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,6 @@
5353
.nhsuk-header__navigation-container {
5454
margin: 0 auto;
5555
position: relative;
56-
/* Default reserve for More button space (0 by default; can be overridden) */
57-
--nhs-header-more-reserve: 0px;
5856
box-shadow: inset 0 0.25px 0 0 #d8dde0;
5957
}
6058
.nhsuk-header__navigation-container.nhsuk-header__navigation-container--padded {
@@ -69,8 +67,6 @@
6967
}
7068
.nhsuk-header__navigation-container--initializing {
7169
transition: opacity 150ms ease-in-out;
72-
/* During init, conservatively reserve space for the More button to avoid shifts */
73-
--nhs-header-more-reserve: var(--fdp-header-more-reserve, 104px);
7470
}
7571
.nhsuk-header__navigation-container:not(.nhsuk-header__navigation-container--initializing) {
7672
opacity: 1;
@@ -292,13 +288,6 @@
292288
margin: 0 -8px;
293289
padding: 0;
294290
width: calc(100% + 24px);
295-
/* Flex spacer to reserve space for potential More button */
296-
}
297-
.nhsuk-header__navigation-list::after {
298-
content: "";
299-
flex: 0 0 var(--nhs-header-more-reserve, 0px);
300-
inline-size: var(--nhs-header-more-reserve, 0px);
301-
block-size: 1px; /* minimal size to avoid affecting line-height */
302291
}
303292
@media (min-width: 768px) {
304293
.nhsuk-header__navigation-list {

dist/components/Header/index.css

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -245,8 +245,6 @@ span .nhsuk-u-visually-hidden {
245245
.nhsuk-header__navigation-container {
246246
margin: 0 auto;
247247
position: relative;
248-
/* Default reserve for More button space (0 by default; can be overridden) */
249-
--nhs-header-more-reserve: 0px;
250248
box-shadow: inset 0 0.25px 0 0 #d8dde0;
251249
}
252250

@@ -264,8 +262,6 @@ span .nhsuk-u-visually-hidden {
264262

265263
.nhsuk-header__navigation-container--initializing {
266264
transition: opacity 150ms ease-in-out;
267-
/* During init, conservatively reserve space for the More button to avoid shifts */
268-
--nhs-header-more-reserve: var(--fdp-header-more-reserve, 104px);
269265
}
270266

271267
.nhsuk-header__navigation-container:not(.nhsuk-header__navigation-container--initializing) {
@@ -526,14 +522,6 @@ span .nhsuk-u-visually-hidden {
526522
margin: 0 -8px;
527523
padding: 0;
528524
width: calc(100% + 24px);
529-
/* Flex spacer to reserve space for potential More button */
530-
}
531-
532-
.nhsuk-header__navigation-list::after {
533-
content: "";
534-
flex: 0 0 var(--nhs-header-more-reserve, 0px);
535-
inline-size: var(--nhs-header-more-reserve, 0px);
536-
block-size: 1px; /* minimal size to avoid affecting line-height */
537525
}
538526

539527
@media (min-width: 768px) {
@@ -1373,8 +1361,6 @@ nav[data-ssr-hydrating=true] + .nhsuk-header__dropdown-menu {
13731361
/* SSR Fallback Navigation Container */
13741362

13751363
.nhsuk-header__navigation-container--ssr {
1376-
/* Reserve space for potential More button to avoid layout shift on hydration */
1377-
--nhs-header-more-reserve: var(--fdp-header-more-reserve, 104px);
13781364
/* Server-side: start as single line; overflow handled via progressive enhancement */
13791365
}
13801366

0 commit comments

Comments
 (0)