@phillips/seldon 1.241.0 → 1.243.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.
- package/dist/_virtual/index10.js +2 -2
- package/dist/_virtual/index11.js +2 -2
- package/dist/_virtual/index6.js +5 -3
- package/dist/_virtual/index7.js +3 -5
- package/dist/_virtual/index8.js +2 -2
- package/dist/_virtual/index9.js +2 -2
- package/dist/components/Accordion/AccordionItem.js +34 -34
- package/dist/components/AddToCalendar/calendarLinks.js +1 -1
- package/dist/components/Button/Button.js +37 -37
- package/dist/components/ComposedModal/ComposedModal.d.ts +1 -1
- package/dist/components/ExitGateCard/ExitGateCard.js +7 -7
- package/dist/components/Tags/Tags.js +12 -13
- package/dist/node_modules/ics/dist/index.js +1 -1
- package/dist/node_modules/ics/dist/pipeline/index.js +1 -1
- package/dist/node_modules/prop-types/index.js +1 -1
- package/dist/node_modules/prop-types/node_modules/react-is/index.js +1 -1
- package/dist/node_modules/react-transition-group/esm/CSSTransition.js +1 -1
- package/dist/node_modules/react-transition-group/esm/Transition.js +1 -1
- package/dist/node_modules/react-transition-group/esm/utils/PropTypes.js +1 -1
- package/dist/patterns/Social/Social.js +22 -22
- package/dist/scss/_utils.scss +10 -0
- package/dist/scss/components/Accordion/_accordion.scss +12 -2
- package/dist/scss/components/AddToCalendar/_addToCalendar.scss +1 -2
- package/dist/scss/components/Breadcrumb/_breadcrumb.scss +1 -2
- package/dist/scss/components/Button/_button.scss +11 -6
- package/dist/scss/components/Carousel/_carousel.scss +12 -3
- package/dist/scss/components/ComboBox/_combobox.scss +2 -2
- package/dist/scss/components/ComposedModal/_composedModal.scss +0 -1
- package/dist/scss/components/DatePicker/_datePicker.scss +4 -0
- package/dist/scss/components/DescriptiveRadioButton/_descriptiveRadioButton.scss +10 -2
- package/dist/scss/components/Dropdown/_dropdown.scss +1 -2
- package/dist/scss/components/ExitGateCard/_exitGateCard.scss +5 -0
- package/dist/scss/components/IconButton/_iconButton.scss +5 -8
- package/dist/scss/components/Input/_input.scss +19 -3
- package/dist/scss/components/Link/_link.scss +4 -0
- package/dist/scss/components/Navigation/NavigationItemTrigger/_navigationItemTrigger.scss +4 -0
- package/dist/scss/components/Pagination/_pagination.scss +2 -2
- package/dist/scss/components/Search/_searchButton.scss +4 -1
- package/dist/scss/components/Select/_select.scss +2 -3
- package/dist/scss/components/Tabs/_tabs.scss +22 -3
- package/dist/scss/components/Tags/_tags.scss +2 -12
- package/dist/scss/components/TextArea/_textArea.scss +2 -2
- package/dist/scss/patterns/CountryPicker/_countryPickerOption.scss +4 -6
- package/dist/scss/patterns/CountryPicker/_countryPickerTrigger.scss +1 -3
- package/dist/scss/patterns/FavoritesCollectionTile/_favoritesCollectionTile.scss +9 -1
- package/dist/scss/patterns/FiltersInline/_filterButton.scss +2 -4
- package/dist/scss/patterns/SaleCard/_saleCard.scss +16 -0
- package/dist/scss/patterns/Social/_social.scss +8 -5
- package/dist/scss/patterns/UserManagement/_userManagement.scss +5 -1
- package/dist/scss/site-furniture/Footer/_footer.scss +9 -0
- package/dist/scss/site-furniture/Header/_header.scss +4 -0
- package/dist/site-furniture/Footer/Footer.js +1 -1
- package/dist/site-furniture/Header/Header.js +6 -6
- package/package.json +1 -1
|
@@ -98,8 +98,7 @@ $destructive-hover-disabled: color.adjust($warning-default, $alpha: -0.5);
|
|
|
98
98
|
}
|
|
99
99
|
|
|
100
100
|
&:focus-visible {
|
|
101
|
-
|
|
102
|
-
outline-offset: -4.5px;
|
|
101
|
+
@include focus-ring($border-radius: $radius-3xl);
|
|
103
102
|
|
|
104
103
|
svg {
|
|
105
104
|
fill: $pure-white;
|
|
@@ -110,13 +109,19 @@ $destructive-hover-disabled: color.adjust($warning-default, $alpha: -0.5);
|
|
|
110
109
|
background-color: transparent;
|
|
111
110
|
border: 0;
|
|
112
111
|
color: $pure-black;
|
|
112
|
+
font-variation-settings: 'wght' 400;
|
|
113
113
|
height: auto;
|
|
114
114
|
padding: 0;
|
|
115
115
|
text-decoration: underline;
|
|
116
|
+
|
|
116
117
|
.#{$px}-text {
|
|
117
118
|
font-variation-settings: 'wght' 400;
|
|
118
119
|
}
|
|
119
120
|
|
|
121
|
+
&:focus-visible {
|
|
122
|
+
@include focus-ring($border-radius: $radius-xs);
|
|
123
|
+
}
|
|
124
|
+
|
|
120
125
|
&:hover {
|
|
121
126
|
background-color: transparent;
|
|
122
127
|
color: $pure-black;
|
|
@@ -149,8 +154,9 @@ $destructive-hover-disabled: color.adjust($warning-default, $alpha: -0.5);
|
|
|
149
154
|
}
|
|
150
155
|
|
|
151
156
|
&:focus-visible {
|
|
157
|
+
@include focus-ring($border-radius: $radius-3xl);
|
|
158
|
+
|
|
152
159
|
background-color: $pure-white;
|
|
153
|
-
outline-color: $soft-black;
|
|
154
160
|
}
|
|
155
161
|
|
|
156
162
|
svg {
|
|
@@ -246,10 +252,9 @@ $destructive-hover-disabled: color.adjust($warning-default, $alpha: -0.5);
|
|
|
246
252
|
}
|
|
247
253
|
|
|
248
254
|
&:focus-visible {
|
|
255
|
+
@include focus-ring($border-radius: $radius-3xl);
|
|
256
|
+
|
|
249
257
|
background-color: $pure-white;
|
|
250
|
-
outline-color: $soft-black;
|
|
251
|
-
outline-offset: 4.5px;
|
|
252
|
-
padding: 0 4px;
|
|
253
258
|
}
|
|
254
259
|
}
|
|
255
260
|
|
|
@@ -34,10 +34,20 @@
|
|
|
34
34
|
display: none;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
&:hover
|
|
37
|
+
&:hover,
|
|
38
|
+
&:focus-visible {
|
|
38
39
|
opacity: 1;
|
|
39
40
|
}
|
|
40
41
|
|
|
42
|
+
&:focus-visible {
|
|
43
|
+
outline: none;
|
|
44
|
+
|
|
45
|
+
.#{$px}-carousel-arrows-next-btn__icon,
|
|
46
|
+
.#{$px}-carousel-arrows-prev-btn__icon {
|
|
47
|
+
@include focus-ring($border-radius: $radius-3xl);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
41
51
|
&__icon {
|
|
42
52
|
background-color: $pure-white;
|
|
43
53
|
border-radius: $radius-3xl;
|
|
@@ -161,8 +171,7 @@
|
|
|
161
171
|
width: 10px;
|
|
162
172
|
|
|
163
173
|
&:focus-visible {
|
|
164
|
-
border-radius: $radius-3xl;
|
|
165
|
-
outline: 0.5px solid $black-100;
|
|
174
|
+
@include focus-ring($border-radius: $radius-3xl, $outline-offset: 0, $outline-width: 0.5px);
|
|
166
175
|
|
|
167
176
|
&-dot {
|
|
168
177
|
&:hover {
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
|
|
44
44
|
&:focus-visible,
|
|
45
45
|
&:focus {
|
|
46
|
-
|
|
46
|
+
@include focus-ring($border-radius: $radius-xs);
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
&--invalid {
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
box-shadow: inset 0 0 3px 3px $error-pink;
|
|
52
52
|
|
|
53
53
|
&:focus {
|
|
54
|
-
outline-color: $error-red;
|
|
54
|
+
@include focus-ring($border-radius: $radius-xs, $outline-color: $error-red);
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
&:hover {
|
|
@@ -10,10 +10,13 @@
|
|
|
10
10
|
display: flex;
|
|
11
11
|
padding: $spacing-sm;
|
|
12
12
|
|
|
13
|
-
&--selected
|
|
14
|
-
&:has(input:focus-visible) {
|
|
13
|
+
&--selected {
|
|
15
14
|
border: 1.5px solid $pure-black;
|
|
16
15
|
}
|
|
16
|
+
|
|
17
|
+
&:has(input:focus-visible) {
|
|
18
|
+
@include focus-ring($border-radius: $radius-xs);
|
|
19
|
+
}
|
|
17
20
|
}
|
|
18
21
|
|
|
19
22
|
&__input {
|
|
@@ -27,6 +30,11 @@
|
|
|
27
30
|
@media (min-width: $breakpoint-md) {
|
|
28
31
|
margin-top: $spacing-micro;
|
|
29
32
|
}
|
|
33
|
+
|
|
34
|
+
&:focus,
|
|
35
|
+
&:focus-visible {
|
|
36
|
+
outline: none;
|
|
37
|
+
}
|
|
30
38
|
}
|
|
31
39
|
|
|
32
40
|
&__input:checked {
|
|
@@ -19,13 +19,10 @@
|
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
&:focus-visible {
|
|
22
|
-
|
|
23
|
-
outline: 0.5px solid $soft-black;
|
|
24
|
-
outline-offset: 0;
|
|
22
|
+
@include focus-ring($border-radius: $radius-3xl);
|
|
25
23
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
}
|
|
24
|
+
svg {
|
|
25
|
+
fill: $pure-white;
|
|
29
26
|
}
|
|
30
27
|
}
|
|
31
28
|
|
|
@@ -78,7 +75,7 @@
|
|
|
78
75
|
&--secondary,
|
|
79
76
|
&--tertiary.#{$px}-icon-button {
|
|
80
77
|
&:focus-visible {
|
|
81
|
-
border-radius: $radius-3xl;
|
|
78
|
+
@include focus-ring($border-radius: $radius-3xl);
|
|
82
79
|
}
|
|
83
80
|
|
|
84
81
|
& > svg {
|
|
@@ -94,7 +91,7 @@
|
|
|
94
91
|
|
|
95
92
|
&--tertiary {
|
|
96
93
|
&:focus-visible {
|
|
97
|
-
border-radius: $radius-3xl;
|
|
94
|
+
@include focus-ring($border-radius: $radius-3xl);
|
|
98
95
|
}
|
|
99
96
|
|
|
100
97
|
@include hoverOrActive {
|
|
@@ -40,7 +40,7 @@ $lg: #{$px}-input--lg;
|
|
|
40
40
|
|
|
41
41
|
&:focus-visible,
|
|
42
42
|
&:focus-within {
|
|
43
|
-
|
|
43
|
+
@include focus-ring($border-radius: $radius-xs);
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
.#{$px}-input__wrapper__input,
|
|
@@ -81,7 +81,7 @@ $lg: #{$px}-input--lg;
|
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
&:focus-visible {
|
|
84
|
-
|
|
84
|
+
@include focus-ring($border-radius: $radius-xs);
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
&:hover {
|
|
@@ -166,7 +166,7 @@ $lg: #{$px}-input--lg;
|
|
|
166
166
|
box-shadow: inset 0 0 3px 3px $error-pink;
|
|
167
167
|
|
|
168
168
|
&:focus-within {
|
|
169
|
-
|
|
169
|
+
@include focus-ring($border-radius: $radius-xs, $outline-color: $error-red);
|
|
170
170
|
}
|
|
171
171
|
}
|
|
172
172
|
|
|
@@ -217,6 +217,22 @@ $lg: #{$px}-input--lg;
|
|
|
217
217
|
}
|
|
218
218
|
}
|
|
219
219
|
|
|
220
|
+
.#{$px}-radio-input .#{$px}-input__input {
|
|
221
|
+
&:focus-visible {
|
|
222
|
+
outline: none;
|
|
223
|
+
position: relative;
|
|
224
|
+
|
|
225
|
+
&::before {
|
|
226
|
+
border: 2px solid $focus-default;
|
|
227
|
+
border-radius: $radius-3xl;
|
|
228
|
+
content: '';
|
|
229
|
+
inset: -6px;
|
|
230
|
+
pointer-events: none;
|
|
231
|
+
position: absolute;
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
|
|
220
236
|
.#{$px}-input--inline.#{$px}-radio-input,
|
|
221
237
|
.#{$px}-input--inline.#{$px}-checkbox-input,
|
|
222
238
|
.#{$px}-input--inline.#{$px}-toggle-input {
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
|
|
53
53
|
appearance: none;
|
|
54
54
|
border: none;
|
|
55
|
-
border-bottom: 1px solid $
|
|
55
|
+
border-bottom: 1px solid $black-100;
|
|
56
56
|
border-radius: 0;
|
|
57
57
|
font-variation-settings: 'wght' 600;
|
|
58
58
|
margin-bottom: 0;
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
&:focus-visible {
|
|
76
|
-
|
|
76
|
+
border-radius: 0;
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
79
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
&__tabs-list {
|
|
7
7
|
display: flex;
|
|
8
8
|
gap: 1rem;
|
|
9
|
-
overflow:
|
|
9
|
+
overflow: visible;
|
|
10
10
|
position: relative;
|
|
11
11
|
}
|
|
12
12
|
|
|
@@ -16,14 +16,24 @@
|
|
|
16
16
|
border-bottom: 2px solid transparent;
|
|
17
17
|
padding-bottom: $spacing-sm;
|
|
18
18
|
padding-inline: 0;
|
|
19
|
+
position: relative;
|
|
19
20
|
transition:
|
|
20
21
|
background 0.2s ease,
|
|
21
22
|
font-weight 0.2s ease-out,
|
|
22
23
|
border-bottom 0.2s ease-out;
|
|
23
24
|
|
|
24
25
|
&:focus-visible {
|
|
25
|
-
box-shadow: rgba($pure-black, 1) 0 0 0 1px inset;
|
|
26
26
|
outline: none;
|
|
27
|
+
|
|
28
|
+
&::after {
|
|
29
|
+
border: 2px solid $focus-default;
|
|
30
|
+
border-radius: $radius-xs;
|
|
31
|
+
content: '';
|
|
32
|
+
inset: -4px -4px -6px;
|
|
33
|
+
pointer-events: none;
|
|
34
|
+
position: absolute;
|
|
35
|
+
z-index: 1;
|
|
36
|
+
}
|
|
27
37
|
}
|
|
28
38
|
|
|
29
39
|
.#{$px}-text {
|
|
@@ -42,8 +52,17 @@
|
|
|
42
52
|
color: $pure-black;
|
|
43
53
|
|
|
44
54
|
&:focus-visible {
|
|
45
|
-
box-shadow: rgba($pure-black, 1) 0 0 0 1px inset;
|
|
46
55
|
outline: none;
|
|
56
|
+
|
|
57
|
+
&::after {
|
|
58
|
+
border: 2px solid $focus-default;
|
|
59
|
+
border-radius: $radius-xs;
|
|
60
|
+
content: '';
|
|
61
|
+
inset: -6px -6px -8px;
|
|
62
|
+
pointer-events: none;
|
|
63
|
+
position: absolute;
|
|
64
|
+
z-index: 1;
|
|
65
|
+
}
|
|
47
66
|
}
|
|
48
67
|
.#{$px}-text {
|
|
49
68
|
color: $pure-black;
|
|
@@ -6,12 +6,6 @@
|
|
|
6
6
|
flex-flow: row wrap;
|
|
7
7
|
gap: $spacing-sm;
|
|
8
8
|
|
|
9
|
-
&:focus-visible {
|
|
10
|
-
border: unset;
|
|
11
|
-
outline: 1px solid $black-100;
|
|
12
|
-
outline-offset: 1px;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
9
|
.#{$px}-tag {
|
|
16
10
|
border: 1px solid $black-100;
|
|
17
11
|
border-radius: $radius-3xl;
|
|
@@ -89,12 +83,8 @@
|
|
|
89
83
|
}
|
|
90
84
|
|
|
91
85
|
&:focus-visible {
|
|
92
|
-
border-
|
|
93
|
-
|
|
94
|
-
border-style: solid;
|
|
95
|
-
border-width: 1px;
|
|
96
|
-
outline-color: transparent;
|
|
97
|
-
outline-offset: unset;
|
|
86
|
+
@include focus-ring($border-radius: $radius-3xl);
|
|
87
|
+
|
|
98
88
|
padding: 0 $spacing-sm;
|
|
99
89
|
|
|
100
90
|
@include media($breakpoint-xl) {
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
&:focus-visible {
|
|
37
|
-
|
|
37
|
+
@include focus-ring($border-radius: $radius-xs);
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
&__label {
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
box-shadow: inset 0 0 3px 3px $error-pink;
|
|
88
88
|
|
|
89
89
|
&:focus-within {
|
|
90
|
-
|
|
90
|
+
@include focus-ring($border-radius: $radius-xs, $outline-color: $error-red);
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
93
|
}
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
&--is-phone:focus-within {
|
|
31
|
-
|
|
32
|
-
outline
|
|
31
|
+
box-shadow: inset 0 0 0 2px $focus-default;
|
|
32
|
+
outline: none;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
&-content {
|
|
@@ -78,12 +78,10 @@
|
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
80
|
|
|
81
|
-
//
|
|
82
|
-
// TODO: align with design on focus states since the radio input is hidden
|
|
81
|
+
// When both selected and focused, show both the border and focus ring
|
|
83
82
|
.#{$px}-country-picker__option--is-phone.#{$px}-country-picker__option--selected {
|
|
84
|
-
border: 1px solid $pure-black;
|
|
85
|
-
|
|
86
83
|
&:focus-within {
|
|
84
|
+
box-shadow: inset 0 0 0 2px $focus-default;
|
|
87
85
|
outline: none;
|
|
88
86
|
}
|
|
89
87
|
}
|
|
@@ -108,6 +108,10 @@
|
|
|
108
108
|
&.#{$px}-link {
|
|
109
109
|
text-transform: none;
|
|
110
110
|
}
|
|
111
|
+
|
|
112
|
+
&:focus-visible {
|
|
113
|
+
@include focus-ring;
|
|
114
|
+
}
|
|
111
115
|
}
|
|
112
116
|
|
|
113
117
|
&__media-container {
|
|
@@ -130,6 +134,10 @@
|
|
|
130
134
|
display: block;
|
|
131
135
|
position: relative;
|
|
132
136
|
|
|
137
|
+
&:focus-visible {
|
|
138
|
+
@include focus-ring;
|
|
139
|
+
}
|
|
140
|
+
|
|
133
141
|
&--bg {
|
|
134
142
|
background-color: $soft-gray;
|
|
135
143
|
}
|
|
@@ -186,7 +194,7 @@
|
|
|
186
194
|
width: 100%;
|
|
187
195
|
|
|
188
196
|
&:focus-visible {
|
|
189
|
-
|
|
197
|
+
@include focus-ring;
|
|
190
198
|
}
|
|
191
199
|
}
|
|
192
200
|
}
|
|
@@ -12,16 +12,14 @@
|
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
&:focus-visible {
|
|
15
|
-
|
|
16
|
-
outline: none;
|
|
15
|
+
@include focus-ring($border-radius: $radius-3xl);
|
|
17
16
|
}
|
|
18
17
|
|
|
19
18
|
&--selected {
|
|
20
19
|
border: 2px solid $black-100;
|
|
21
20
|
|
|
22
21
|
&:focus-visible {
|
|
23
|
-
|
|
24
|
-
outline: none;
|
|
22
|
+
@include focus-ring($border-radius: $radius-3xl);
|
|
25
23
|
}
|
|
26
24
|
}
|
|
27
25
|
|
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
@use '../../allPartials' as *;
|
|
2
2
|
|
|
3
|
+
// Focus ring when the entire card acts as a link (wrapped in <a>)
|
|
4
|
+
a:focus-visible > .#{$px}-sale-card {
|
|
5
|
+
@include focus-ring($border-radius: $radius-xs);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
// Remove default browser outline from the link so only the card focus ring shows
|
|
9
|
+
a:has(> .#{$px}-sale-card) {
|
|
10
|
+
&:focus {
|
|
11
|
+
outline: none;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
3
15
|
.#{$px}-sale-card {
|
|
4
16
|
align-items: center;
|
|
5
17
|
display: flex;
|
|
@@ -87,6 +99,10 @@
|
|
|
87
99
|
}
|
|
88
100
|
}
|
|
89
101
|
|
|
102
|
+
&__modal-link .#{$px}-button {
|
|
103
|
+
@include text($linkSmall);
|
|
104
|
+
}
|
|
105
|
+
|
|
90
106
|
&__badge {
|
|
91
107
|
border: 1px solid $badge-blue;
|
|
92
108
|
color: $badge-blue;
|
|
@@ -33,9 +33,12 @@ $num_icons: 5;
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
&__button {
|
|
36
|
-
@include
|
|
36
|
+
@include text($linkMedium);
|
|
37
37
|
|
|
38
|
-
|
|
38
|
+
border: 0;
|
|
39
|
+
height: auto;
|
|
40
|
+
margin-bottom: $spacing-sm;
|
|
41
|
+
margin-top: $spacing-xsm;
|
|
39
42
|
padding: 0;
|
|
40
43
|
text-align: left;
|
|
41
44
|
text-decoration: underline;
|
|
@@ -49,9 +52,9 @@ $num_icons: 5;
|
|
|
49
52
|
color: unset;
|
|
50
53
|
}
|
|
51
54
|
|
|
52
|
-
&:focus {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
+
&:focus-visible {
|
|
56
|
+
border-radius: $radius-xs;
|
|
57
|
+
padding: 0;
|
|
55
58
|
}
|
|
56
59
|
}
|
|
57
60
|
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
display: flex;
|
|
27
27
|
gap: 0 $spacing-xsm;
|
|
28
28
|
justify-content: center;
|
|
29
|
+
margin-bottom: $padding-xsm;
|
|
29
30
|
padding: 0;
|
|
30
|
-
padding-bottom: $padding-xsm;
|
|
31
31
|
|
|
32
32
|
&:disabled {
|
|
33
33
|
cursor: default;
|
|
@@ -35,6 +35,10 @@
|
|
|
35
35
|
pointer-events: none;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
+
&:focus-visible {
|
|
39
|
+
@include focus-ring($border-radius: $radius-xs);
|
|
40
|
+
}
|
|
41
|
+
|
|
38
42
|
&:hover:not(:disabled) {
|
|
39
43
|
@include underline;
|
|
40
44
|
}
|
|
@@ -124,6 +124,15 @@
|
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
126
|
|
|
127
|
+
&__logo {
|
|
128
|
+
margin-bottom: $spacing-sm;
|
|
129
|
+
margin-top: $spacing-md;
|
|
130
|
+
|
|
131
|
+
&:focus-visible {
|
|
132
|
+
@include focus-ring($border-radius: $radius-xs);
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
|
|
127
136
|
&__copyright {
|
|
128
137
|
align-items: center;
|
|
129
138
|
background-color: $white-100;
|
|
@@ -12,7 +12,7 @@ const $ = ({
|
|
|
12
12
|
}) => /* @__PURE__ */ e("footer", { "data-testid": t || "footer", id: t, className: s(`${r}-footer`, { className: i }), children: [
|
|
13
13
|
/* @__PURE__ */ o("div", { className: `${r}-footer__links`, children: a }),
|
|
14
14
|
/* @__PURE__ */ e("div", { className: `${r}-footer__copyright`, children: [
|
|
15
|
-
/* @__PURE__ */ o("
|
|
15
|
+
/* @__PURE__ */ o("a", { href: "/", "aria-label": "logo", "data-testid": "footer-logo", className: `${r}-footer__logo`, children: /* @__PURE__ */ o(n, { icon: "PhillipsLogo", width: "94px" }) }),
|
|
16
16
|
/* @__PURE__ */ o(c, { variant: f.bodySmall, children: l })
|
|
17
17
|
] })
|
|
18
18
|
] });
|
|
@@ -14,17 +14,17 @@ const Y = D(X), Z = F(
|
|
|
14
14
|
logo: d = /* @__PURE__ */ r(G, { icon: "PhillipsLogo" }),
|
|
15
15
|
logoHref: S = "/",
|
|
16
16
|
className: w,
|
|
17
|
-
children:
|
|
17
|
+
children: s,
|
|
18
18
|
toggleOpenText: N = "Open Menu",
|
|
19
19
|
toggleCloseText: O = "Close Menu",
|
|
20
20
|
logoText: R = "Home Page",
|
|
21
21
|
disabled: g,
|
|
22
|
-
bannerRef:
|
|
22
|
+
bannerRef: i,
|
|
23
23
|
...T
|
|
24
24
|
}, a) => {
|
|
25
|
-
const p = h(
|
|
25
|
+
const p = h(s, $), P = t.isValidElement(p?.[0]) ? t.cloneElement(p[0], { disabled: g }) : "", f = h(s, M), v = t.isValidElement(f?.[0]) ? t.cloneElement(f[0], { disabled: g }) : "", [b, z] = u(!1), I = h(s, H), j = K(s, [H, $, M]), { closeMenu: V, handleMenuToggle: k, isMenuOpen: m, toggleText: A } = W({ toggleOpenText: N, toggleCloseText: O }), [L, q] = u(null), B = t.useRef(null), [_, E] = u(i?.current ? i.current.clientHeight : 0), x = t.useRef(null);
|
|
26
26
|
C(() => {
|
|
27
|
-
const e =
|
|
27
|
+
const e = i?.current;
|
|
28
28
|
if (!e) return;
|
|
29
29
|
E(e.clientHeight);
|
|
30
30
|
const o = new window.ResizeObserver(() => {
|
|
@@ -33,7 +33,7 @@ const Y = D(X), Z = F(
|
|
|
33
33
|
return o.observe(e), () => {
|
|
34
34
|
o.disconnect();
|
|
35
35
|
};
|
|
36
|
-
}, [
|
|
36
|
+
}, [i, _]), C(() => {
|
|
37
37
|
const e = x.current;
|
|
38
38
|
if (!e) return;
|
|
39
39
|
const o = () => {
|
|
@@ -78,7 +78,7 @@ const Y = D(X), Z = F(
|
|
|
78
78
|
]
|
|
79
79
|
}
|
|
80
80
|
),
|
|
81
|
-
/* @__PURE__ */ r("
|
|
81
|
+
/* @__PURE__ */ r("a", { href: S, "aria-label": R, "data-testid": "header-logo", className: `${n}-header__logo`, children: typeof d == "object" ? d : /* @__PURE__ */ r("img", { alt: "Phillips", "data-testid": "header-logo-img", src: d }) }),
|
|
82
82
|
P
|
|
83
83
|
] }),
|
|
84
84
|
/* @__PURE__ */ r("div", { className: c(`${n}-header__nav`, { [`${n}-header__nav--closed`]: !m }), children: /* @__PURE__ */ l(
|