@phillips/seldon 1.46.0 → 1.48.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/dist/_virtual/_commonjsHelpers.js +15 -13
  2. package/dist/assets/PhillipsLogo.svg.js +1 -1
  3. package/dist/components/Footer/Footer.js +5 -5
  4. package/dist/components/Grid/Grid.d.ts +12 -3
  5. package/dist/components/Grid/Grid.js +24 -8
  6. package/dist/components/Grid/utils.d.ts +2 -0
  7. package/dist/components/Grid/utils.js +8 -0
  8. package/dist/components/GridItem/GridItem.js +2 -2
  9. package/dist/components/Header/Header.d.ts +13 -4
  10. package/dist/components/Header/Header.js +53 -48
  11. package/dist/components/Header/utils.d.ts +9 -0
  12. package/dist/components/Header/utils.js +13 -0
  13. package/dist/components/LinkList/LinkList.d.ts +2 -1
  14. package/dist/components/Navigation/Navigation.js +35 -31
  15. package/dist/components/Navigation/NavigationList/NavigationList.d.ts +5 -1
  16. package/dist/components/Navigation/NavigationList/NavigationList.js +11 -7
  17. package/dist/components/Search/Search.js +121 -113
  18. package/dist/components/Search/SearchButton.d.ts +7 -0
  19. package/dist/components/Search/SearchButton.js +37 -0
  20. package/dist/components/Social/Social.js +1 -1
  21. package/dist/index.js +80 -79
  22. package/dist/node_modules/@babel/runtime/helpers/esm/extends.js +13 -0
  23. package/dist/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js +7 -0
  24. package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +10 -0
  25. package/dist/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +8 -0
  26. package/dist/node_modules/dom-helpers/esm/addClass.js +7 -0
  27. package/dist/node_modules/dom-helpers/esm/hasClass.js +6 -0
  28. package/dist/node_modules/dom-helpers/esm/removeClass.js +9 -0
  29. package/dist/node_modules/lodash.debounce/index.js +3 -0
  30. package/dist/node_modules/prop-types/index.js +11 -8
  31. package/dist/node_modules/react-transition-group/esm/CSSTransition.js +207 -0
  32. package/dist/node_modules/react-transition-group/esm/Transition.js +336 -0
  33. package/dist/node_modules/react-transition-group/esm/TransitionGroupContext.js +5 -0
  34. package/dist/node_modules/react-transition-group/esm/config.js +6 -0
  35. package/dist/node_modules/react-transition-group/esm/utils/PropTypes.js +21 -0
  36. package/dist/node_modules/react-transition-group/esm/utils/reflow.js +6 -0
  37. package/dist/node_modules/usehooks-ts/dist/index.js +37 -0
  38. package/dist/scss/_utils.scss +21 -6
  39. package/dist/scss/_vars.scss +95 -91
  40. package/dist/scss/componentStyles.scss +1 -0
  41. package/dist/scss/components/Footer/_footer.scss +20 -5
  42. package/dist/scss/components/Grid/_grid.scss +11 -0
  43. package/dist/scss/components/GridItem/_gridItem.scss +4 -4
  44. package/dist/scss/components/Header/_header.scss +30 -3
  45. package/dist/scss/components/HeroBanner/_heroBanner.scss +6 -5
  46. package/dist/scss/components/LinkList/_linkList.scss +4 -0
  47. package/dist/scss/components/Navigation/NavigationItem/_navigationItem.scss +2 -2
  48. package/dist/scss/components/Navigation/NavigationList/_navigationList.scss +14 -2
  49. package/dist/scss/components/Navigation/_navigation.scss +6 -16
  50. package/dist/scss/components/Search/SearchResults/_searchResults.scss +10 -19
  51. package/dist/scss/components/Search/_search.scss +52 -74
  52. package/dist/scss/components/Search/_searchButton.scss +41 -0
  53. package/dist/scss/components/Social/_social.scss +4 -4
  54. package/dist/scss/components/SplitPanel/_splitPanel.scss +1 -1
  55. package/dist/scss/components/Subscribe/_subscribe.scss +2 -2
  56. package/dist/utils/index.d.ts +10 -1
  57. package/dist/utils/index.js +42 -41
  58. package/package.json +5 -2
  59. package/dist/assets/loading_spinner.svg.js +0 -7
@@ -99,91 +99,99 @@ $text-tokens: $button, $link, $email, $label, $badge, $blockquote, $heading1, $h
99
99
  $title1, $title2, $title3, $title4, $body1, $body2, $body3, $string1, $string2, $string3, $snwFlyoutLink,
100
100
  $snwHeaderLink;
101
101
 
102
+ ////////////////////////
103
+ /// Breakpoint TOKENS to be used for min-width comparisons
104
+ ///////////////////////
105
+ $breakpoint-sm: 361px;
106
+ $breakpoint-md: 961px;
107
+ $breakpoint-lg: 1401px;
108
+ $breakpoint-xl: 1801px;
109
+
102
110
  ////////////////////////
103
111
  /// FONT SIZE TOKENS:
104
112
  ///////////////////////
105
113
 
106
114
  :root {
107
115
  --desktop-max-width: 120rem;
108
- --quote-size: 1.75rem;
109
- --quote-line-height: 2.25rem;
110
- --heading-size1: 1.75rem;
111
- --heading-line-height-size1: 2rem;
112
- --heading-size2: 1.75rem;
113
- --heading-line-height-size2: 2rem;
114
- --heading-size3: 1.5rem;
115
- --heading-line-height-size3: 1.75rem;
116
- --heading-size4: 1.25rem;
117
- --heading-line-height-size4: 1.5rem;
118
- --heading-size5: 1rem;
119
- --heading-line-height-size5: 1.25rem;
120
- --string-size1: 1.25rem;
121
- --string-line-height-size1: 1.5rem;
122
- --string-size2: 1rem;
123
- --string-line-height-size2: 1.25rem;
124
- --string-size3: 0.75rem;
125
- --string-line-height-size3: 1rem;
126
- --body-size1: 1.25rem;
127
- --body-line-height-size1: 1.75rem;
128
- --body-size2: 1rem;
129
- --body-line-height-size2: 1.5rem;
130
- --body-size3: 0.75rem;
131
- --body-line-height-size3: 1.25rem;
132
- --label-size1: 1.25rem;
133
- --label-size2: 1rem;
134
- --label-size3: 0.75rem;
135
- --link-label-size: 1rem;
136
- --link-label-line-height: 1rem;
137
- --button-label-size: 1rem;
138
- --button-label-line-height: 1.25rem;
139
- --badge-label-size: 0.75rem;
140
- --badge-label-line-height: 1rem;
116
+ --quote-size: 1.5rem;
117
+ --quote-line-height: 2rem;
118
+ --heading-size1: 1.5rem;
119
+ --heading-line-height-size1: 1.75rem;
120
+ --heading-size2: 1.5rem;
121
+ --heading-line-height-size2: 1.75rem;
122
+ --heading-size3: 1.25rem;
123
+ --heading-line-height-size3: 1.5rem;
124
+ --heading-size4: 1rem;
125
+ --heading-line-height-size4: 1.25rem;
126
+ --heading-size5: 0.75rem;
127
+ --heading-line-height-size5: 1rem;
128
+ --string-size1: 1rem;
129
+ --string-line-height-size1: 1.25rem;
130
+ --string-size2: 0.75rem;
131
+ --string-line-height-size2: 1rem;
132
+ --string-size3: 0.5rem;
133
+ --string-line-height-size3: 0.75rem;
134
+ --body-size1: 1rem;
135
+ --body-line-height-size1: 1.5rem;
136
+ --body-size2: 0.75rem;
137
+ --body-line-height-size2: 1.25rem;
138
+ --body-size3: 0.5rem;
139
+ --body-line-height-size3: 1rem;
140
+ --label-size1: 1rem;
141
+ --label-size2: 0.75rem;
142
+ --label-size3: 0.56rem;
143
+ --link-label-size: 0.75rem;
144
+ --link-label-line-height: 0.75rem;
145
+ --button-label-size: 0.75rem;
146
+ --button-label-line-height: 1rem;
147
+ --badge-label-size: 0.5rem;
148
+ --badge-label-line-height: 0.67rem;
141
149
  --snw-header-link-size: 1rem;
142
150
  --snw-header-link-line-height: 1.5rem;
143
151
  --snw-flyout-link-size: 1rem;
144
152
  --snw-flyout-link-line-height: 1.75rem;
145
153
 
146
- @media (max-width: 960px) {
147
- --quote-size: 1.5rem;
148
- --quote-line-height: 2rem;
149
- --heading-size1: 1.5rem;
150
- --heading-line-height-size1: 1.75rem;
151
- --heading-size2: 1.5rem;
152
- --heading-line-height-size2: 1.75rem;
153
- --heading-size3: 1.25rem;
154
- --heading-line-height-size3: 1.5rem;
155
- --heading-size4: 1rem;
156
- --heading-line-height-size4: 1.25rem;
157
- --heading-size5: 0.75rem;
158
- --heading-line-height-size5: 1rem;
159
- --string-size1: 1rem;
160
- --string-line-height-size1: 1.25rem;
161
- --string-size2: 0.75rem;
162
- --string-line-height-size2: 1rem;
163
- --string-size3: 0.5rem;
164
- --string-line-height-size3: 0.75rem;
165
- --body-size1: 1rem;
166
- --body-line-height-size1: 1.5rem;
167
- --body-size2: 0.75rem;
168
- --body-line-height-size2: 1.25rem;
169
- --body-size3: 0.5rem;
170
- --body-line-height-size3: 1rem;
171
- --label-size1: 1rem;
172
- --label-size2: 0.75rem;
173
- --label-size3: 0.56rem;
174
- --link-label-size: 0.75rem;
175
- --link-label-line-height: 0.75rem;
176
- --button-label-size: 0.75rem;
177
- --button-label-line-height: 1rem;
178
- --badge-label-size: 0.5rem;
179
- --badge-label-line-height: 0.67rem;
154
+ @media (min-width: $breakpoint-md) {
155
+ --quote-size: 1.75rem;
156
+ --quote-line-height: 2.25rem;
157
+ --heading-size1: 1.75rem;
158
+ --heading-line-height-size1: 2rem;
159
+ --heading-size2: 1.75rem;
160
+ --heading-line-height-size2: 2rem;
161
+ --heading-size3: 1.5rem;
162
+ --heading-line-height-size3: 1.75rem;
163
+ --heading-size4: 1.25rem;
164
+ --heading-line-height-size4: 1.5rem;
165
+ --heading-size5: 1rem;
166
+ --heading-line-height-size5: 1.25rem;
167
+ --string-size1: 1.25rem;
168
+ --string-line-height-size1: 1.5rem;
169
+ --string-size2: 1rem;
170
+ --string-line-height-size2: 1.25rem;
171
+ --string-size3: 0.75rem;
172
+ --string-line-height-size3: 1rem;
173
+ --body-size1: 1.25rem;
174
+ --body-line-height-size1: 1.75rem;
175
+ --body-size2: 1rem;
176
+ --body-line-height-size2: 1.5rem;
177
+ --body-size3: 0.75rem;
178
+ --body-line-height-size3: 1.25rem;
179
+ --label-size1: 1.25rem;
180
+ --label-size2: 1rem;
181
+ --label-size3: 0.75rem;
182
+ --link-label-size: 1rem;
183
+ --link-label-line-height: 1rem;
184
+ --button-label-size: 1rem;
185
+ --button-label-line-height: 1.25rem;
186
+ --badge-label-size: 0.75rem;
187
+ --badge-label-line-height: 1rem;
180
188
  --snw-header-link-size: 1rem;
181
189
  --snw-header-link-line-height: 1.5rem;
182
190
  --snw-flyout-link-size: 1rem;
183
- --snw-flyout-link-line-height: 1.75rem;
191
+ --snw-flyout-link-line-height: 1.875rem;
184
192
  }
185
193
 
186
- @media (min-width: 1801px) {
194
+ @media (min-width: $breakpoint-xl) {
187
195
  --quote-size: 2rem;
188
196
  --quote-line-height: 2.5rem;
189
197
  --heading-size1: 2rem;
@@ -280,23 +288,23 @@ $snw-flyout-link-line-height: var(--snw-flyout-link-line-height);
280
288
  :root {
281
289
  --spacing-micro: 0.25rem;
282
290
  --spacing-xsm: 0.5rem;
283
- --spacing-sm: 1rem;
284
- --spacing-md: 2rem;
285
- --spacing-lg: 3rem;
286
- --spacing-xl: 4rem;
287
- --spacing-xxl: 5rem;
288
-
289
- @media (max-width: 960px) {
290
- --spacing-micro: 0.25;
291
+ --spacing-sm: 0.75rem;
292
+ --spacing-md: 1.75rem;
293
+ --spacing-lg: 2.75rem;
294
+ --spacing-xl: 3.75rem;
295
+ --spacing-xxl: 4.75rem;
296
+
297
+ @media (min-width: $breakpoint-md) {
298
+ --spacing-micro: 0.25rem;
291
299
  --spacing-xsm: 0.5rem;
292
- --spacing-sm: 0.75rem;
293
- --spacing-md: 1.75rem;
294
- --spacing-lg: 2.75rem;
295
- --spacing-xl: 3.75rem;
296
- --spacing-xxl: 4.75rem;
300
+ --spacing-sm: 1rem;
301
+ --spacing-md: 2rem;
302
+ --spacing-lg: 3rem;
303
+ --spacing-xl: 4rem;
304
+ --spacing-xxl: 5rem;
297
305
  }
298
306
 
299
- @media (min-width: 1801px) {
307
+ @media (min-width: $breakpoint-xl) {
300
308
  --spacing-micro: 0.5rem;
301
309
  --spacing-xsm: 0.75rem;
302
310
  --spacing-sm: 1.25rem;
@@ -314,6 +322,7 @@ $spacing-md: var(--spacing-md);
314
322
  $spacing-lg: var(--spacing-lg);
315
323
  $spacing-xl: var(--spacing-xl);
316
324
  $spacing-xxl: var(--spacing-xl);
325
+ $spacing-sizes: micro, xsm, sm, md, lg, xl, xxl;
317
326
 
318
327
  // PADDING
319
328
  $padding-micro: var(--spacing-micro);
@@ -334,14 +343,6 @@ $margin-lg: var(--spacing-lg);
334
343
  $margin-xl: var(--spacing-xl);
335
344
  $margin-xxl: var(--spacing-xxl);
336
345
 
337
- ////////////////////////
338
- /// Breakpoint TOKENS that map to minimum pixels
339
- ///////////////////////
340
- $breakpoint-sm: 461px;
341
- $breakpoint-md: 1301px;
342
- $breakpoint-lg: 1401px;
343
- $breakpoint-xl: 1801px;
344
-
345
346
  ////////////////////////
346
347
  /// max-site-width TOKEN:
347
348
  ///////////////////////
@@ -351,6 +352,9 @@ $max-site-width: 1560px;
351
352
  /// height Tokens
352
353
  ///////////////////////
353
354
  $header-height: 42px;
355
+ $nav-height: 3.5rem;
356
+ $top-row-height: 3.75rem;
357
+ $desktop-header-height: calc($nav-height + $top-row-height + 1px);
354
358
  $user-management-height: 30px;
355
359
  $header-submenu-top: calc($header-height + $user-management-height + 1px);
356
360
  $desktop-max-width: var(--desktop-max-width);
@@ -20,6 +20,7 @@
20
20
  @use 'components/Row/row';
21
21
  @use 'components/GridItem/gridItem';
22
22
  @use 'components/Search/search';
23
+ @use 'components/Search/searchButton';
23
24
  @use 'components/Search/SearchResults/searchResults';
24
25
  @use 'components/Social/social';
25
26
  @use 'components/SplitPanel/splitPanel';
@@ -8,6 +8,10 @@
8
8
  margin: $spacing-lg 0 0;
9
9
  max-width: 100%;
10
10
 
11
+ &__logo svg {
12
+ height: 10px;
13
+ }
14
+
11
15
  &__links {
12
16
  display: flex;
13
17
  flex-direction: column;
@@ -16,10 +20,21 @@
16
20
  padding: $spacing-lg $spacing-md $spacing-md $spacing-md;
17
21
  width: 100%;
18
22
 
19
- @include media($size-sm) {
20
- flex-direction: row;
23
+ @include media($size-md) {
24
+ flex-flow: row wrap;
25
+ gap: $spacing-lg;
21
26
  max-width: $desktop-max-width;
22
27
  padding: $spacing-lg $spacing-md $spacing-lg $spacing-md;
28
+
29
+ .#{$px}-social {
30
+ flex-basis: 100%; // force this to wrap
31
+ }
32
+ }
33
+
34
+ @include media($size-lg) {
35
+ .#{$px}-social {
36
+ flex-basis: 0;
37
+ }
23
38
  }
24
39
 
25
40
  div {
@@ -50,12 +65,12 @@
50
65
  &-desktop {
51
66
  display: none;
52
67
 
53
- @include media($size-sm) {
68
+ @include media($size-md) {
54
69
  display: block;
55
70
  }
56
71
  }
57
72
 
58
- @include media($size-sm) {
73
+ @include media($size-md) {
59
74
  &-mobile {
60
75
  display: none;
61
76
  }
@@ -84,7 +99,7 @@
84
99
  opacity: 1;
85
100
  padding: $spacing-sm 0;
86
101
 
87
- @include media($size-sm) {
102
+ @include media($size-md) {
88
103
  cursor: unset;
89
104
  }
90
105
 
@@ -14,4 +14,15 @@
14
14
  margin: 0 $spacing-xl;
15
15
  }
16
16
  }
17
+
18
+ // Generate unique classes for column and row gaps with all spacings
19
+ @each $spacing-size in $spacing-sizes {
20
+ &--column-gap-#{$spacing-size} {
21
+ column-gap: var(--spacing-#{$spacing-size});
22
+ }
23
+
24
+ &--row-gap-#{$spacing-size} {
25
+ row-gap: var(--spacing-#{$spacing-size});
26
+ }
27
+ }
17
28
  }
@@ -27,17 +27,17 @@
27
27
  }
28
28
 
29
29
  @include media($size-sm) {
30
- @for $i from 1 through 4 {
30
+ @for $i from 1 through 2 {
31
31
  &--span-sm-#{$i} {
32
- @include gridItemColumnSpan($i, 4);
32
+ @include gridItemColumnSpan($i, 2);
33
33
  }
34
34
  }
35
35
  }
36
36
 
37
37
  @include media($size-md) {
38
- @for $i from 1 through 12 {
38
+ @for $i from 1 through 6 {
39
39
  &--span-md-#{$i} {
40
- @include gridItemColumnSpan($i, 12);
40
+ @include gridItemColumnSpan($i, 6);
41
41
  }
42
42
  }
43
43
  }
@@ -5,10 +5,25 @@
5
5
  background-color: $white;
6
6
  border-bottom: 1px solid rgba(0, 0, 0, 10%);
7
7
  display: flex;
8
- padding: $user-management-height $spacing-md 0; // save space for the user management
8
+ flex-direction: column;
9
9
  position: sticky;
10
10
  top: 0;
11
11
 
12
+ &__top-row {
13
+ align-items: center;
14
+ background-color: $pure-white;
15
+ display: flex;
16
+ height: $top-row-height;
17
+ justify-content: center;
18
+ padding-top: 1rem;
19
+ width: 100%;
20
+ z-index: 10;
21
+
22
+ @include isHeaderMobile {
23
+ height: $nav-height;
24
+ }
25
+ }
26
+
12
27
  @include isHeaderMobile {
13
28
  padding: 0;
14
29
  top: 0;
@@ -21,7 +36,7 @@
21
36
  border: none;
22
37
  cursor: pointer;
23
38
  display: flex;
24
- height: $header-height;
39
+ height: $nav-height;
25
40
  justify-content: center;
26
41
  left: 0;
27
42
  overflow: hidden;
@@ -86,6 +101,7 @@
86
101
 
87
102
  &__logo {
88
103
  margin: auto;
104
+ width: 11.65rem;
89
105
 
90
106
  @include isHeaderDesktop {
91
107
  margin: unset;
@@ -134,11 +150,15 @@
134
150
  transform: translateX(-100%);
135
151
 
136
152
  @include isHeaderDesktop {
137
- height: $header-height;
138
153
  position: relative;
139
154
  transform: unset;
140
155
  width: 100%;
141
156
  }
157
+ .#{$px}-nav__list-container {
158
+ display: flex;
159
+ height: $nav-height;
160
+ padding-right: $nav-height;
161
+ }
142
162
 
143
163
  &.#{$px}-header__nav--open {
144
164
  transform: translateX(0);
@@ -147,5 +167,12 @@
147
167
  transform: unset;
148
168
  }
149
169
  }
170
+
171
+ .#{$px}-nav__item {
172
+ .#{$px}-link--snwHeaderLink {
173
+ align-content: center;
174
+ height: 100%;
175
+ }
176
+ }
150
177
  }
151
178
  }
@@ -13,13 +13,14 @@
13
13
  padding: 1rem;
14
14
  width: 100%;
15
15
 
16
- @media (max-width: $breakpoint-sm) {
16
+ @include media($size-md, $type: 'max') {
17
17
  align-items: center;
18
18
  align-self: stretch;
19
19
  background: transparent;
20
20
  flex-direction: column;
21
21
  gap: 1.875rem;
22
- padding: 1.875rem 0.9375rem;
22
+ min-height: unset;
23
+ padding: 1.875rem 0 0;
23
24
 
24
25
  &::after {
25
26
  background: var(--background);
@@ -47,7 +48,7 @@
47
48
  color: $pure-white;
48
49
  text-align: center;
49
50
 
50
- @media (max-width: $breakpoint-sm) {
51
+ @include media($size-md, $type: 'max') {
51
52
  color: $pure-black;
52
53
  }
53
54
  }
@@ -72,11 +73,11 @@
72
73
  font-size: 0.75rem;
73
74
  gap: 1.875rem;
74
75
 
75
- @media (min-width: $breakpoint-sm) {
76
+ @include media($size-md) {
76
77
  font-size: 0.875rem;
77
78
  }
78
79
 
79
- @media (max-width: $breakpoint-sm) {
80
+ @include media($size-md, $type: 'max') {
80
81
  align-items: center;
81
82
  flex-direction: column;
82
83
  gap: 1rem;
@@ -6,6 +6,10 @@
6
6
  grid-column: span 2;
7
7
 
8
8
  @include media($size-md) {
9
+ grid-column: span 3;
10
+ }
11
+
12
+ @include media($size-lg) {
9
13
  grid-column: span 4;
10
14
  }
11
15
  }
@@ -27,7 +27,7 @@
27
27
  left: 0;
28
28
  position: absolute;
29
29
  right: 0;
30
- top: $header-height;
30
+ top: $nav-height;
31
31
  }
32
32
  }
33
33
 
@@ -74,7 +74,7 @@
74
74
  min-height: 0;
75
75
  overflow: hidden;
76
76
  position: fixed;
77
- top: $header-submenu-top;
77
+ top: $desktop-header-height;
78
78
  width: 100%;
79
79
  z-index: -1;
80
80
 
@@ -5,8 +5,11 @@
5
5
  justify-content: center;
6
6
  list-style: none;
7
7
  margin: 0;
8
+ opacity: 1;
8
9
  padding: 0;
9
- width: 100%;
10
+ position: relative;
11
+ top: 0;
12
+ transition: top 0.25s ease-in 0.1s;
10
13
 
11
14
  @include isHeaderMobile {
12
15
  flex-direction: column;
@@ -16,7 +19,7 @@
16
19
  overflow: auto;
17
20
  padding: 0.5rem;
18
21
  transform: translateX(0%);
19
- transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1) 0.1s;
22
+ transition: transform 0.3s ease-in 0.1s;
20
23
  }
21
24
 
22
25
  &--expanded {
@@ -28,6 +31,15 @@
28
31
  }
29
32
  }
30
33
 
34
+ &--offscreen {
35
+ opacity: 0;
36
+ top: -100%;
37
+ transition:
38
+ top 0.25s ease-in 0.1s,
39
+ opacity 0.25s ease-in;
40
+ z-index: 5;
41
+ }
42
+
31
43
  & .#{$px}-nav__item > & {
32
44
  @include isHeaderMobile {
33
45
  display: none;
@@ -2,22 +2,25 @@
2
2
 
3
3
  .#{$px}-nav {
4
4
  background: $pure-white;
5
+ flex-wrap: wrap;
5
6
  height: 100%;
6
7
  overflow: hidden;
7
8
  padding-top: 4.5rem;
8
9
  position: relative;
9
- width: 100%;
10
10
 
11
11
  @include isHeaderDesktop {
12
12
  display: flex;
13
- flex-wrap: wrap;
14
13
  overflow: visible;
15
14
  padding-top: 0;
16
- place-content: center right;
15
+ place-content: center center;
17
16
  position: unset;
18
17
  width: auto;
19
18
  }
20
19
 
20
+ &__list-container {
21
+ position: relative;
22
+ }
23
+
21
24
  &--expanded &__label {
22
25
  animation: 1s linear fade-in-out forwards;
23
26
  }
@@ -61,19 +64,6 @@
61
64
  }
62
65
  }
63
66
 
64
- // Zero out default styles for possible children
65
- button {
66
- appearance: none;
67
- background: none;
68
- border: none;
69
- color: inherit;
70
- display: block;
71
- margin: 0;
72
- padding: 0;
73
- text-align: left;
74
- width: 100%;
75
- }
76
-
77
67
  &__back-btn:hover,
78
68
  &__back-btn:focus,
79
69
  &__close-btn:hover,
@@ -2,13 +2,14 @@
2
2
 
3
3
  .#{$px}-search__results {
4
4
  align-items: flex-start;
5
+ background: $white;
5
6
  border-bottom: 1px solid $light-gray;
6
7
  display: flex;
7
8
  flex-direction: column;
8
9
  gap: 0.625rem;
9
- padding: 0.75rem 0 1.5625rem;
10
+ padding: $spacing-sm;
10
11
  position: absolute;
11
- top: $header-height;
12
+ top: $nav-height;
12
13
  width: 100%;
13
14
 
14
15
  &-container {
@@ -33,6 +34,13 @@
33
34
  }
34
35
  }
35
36
 
37
+ .#{$px}-link {
38
+ &--link {
39
+ border-bottom: 1px transparent solid;
40
+ color: $pure-black;
41
+ }
42
+ }
43
+
36
44
  p {
37
45
  @include pText(0.875rem, $pure-black);
38
46
 
@@ -40,22 +48,5 @@
40
48
  line-height: 1.25rem;
41
49
  text-transform: capitalize;
42
50
  }
43
-
44
- &:hover,
45
- &:focus,
46
- &:focus-within,
47
- &:active {
48
- p {
49
- color: $pure-black;
50
- text-decoration: underline;
51
- }
52
-
53
- .phillips-link {
54
- &--standalone {
55
- border-bottom: none !important;
56
- color: $pure-black;
57
- }
58
- }
59
- }
60
51
  }
61
52
  }