@sebgroup/green-core 1.0.0-beta.9 → 1.0.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/components/dropdown/dropdown.d.ts +30 -3
- package/index.js +388 -90
- package/package.json +7 -1
- package/primitives/listbox/listbox.d.ts +5 -1
- package/primitives/popover/popover.d.ts +6 -1
- package/primitives/popover/topLayerOverTransforms.middleware.d.ts +28 -0
- package/transitional-styles.js +639 -485
- package/utils/decorators/index.d.ts +1 -0
- package/utils/decorators/watch-media-query.d.ts +31 -0
- package/utils/helpers/custom-element-scoping.d.ts +1 -0
- package/utils/helpers/transitional-styles.d.ts +4 -1
package/transitional-styles.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
// libs/core/src/primitives/listbox/listbox.trans.styles.scss
|
|
2
|
-
var listbox_trans_styles_default =
|
|
3
|
-
/**
|
|
2
|
+
var listbox_trans_styles_default = `/**
|
|
4
3
|
* Calculate the luminance for a color.
|
|
5
4
|
* See https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests
|
|
6
5
|
*/
|
|
@@ -13,6 +12,10 @@ var listbox_trans_styles_default = `
|
|
|
13
12
|
/* stylelint-disable */
|
|
14
13
|
/* stylelint-enable */
|
|
15
14
|
/* stylelint-disable */
|
|
15
|
+
/**
|
|
16
|
+
* @deprecated
|
|
17
|
+
* Use \`add-focus\` instead
|
|
18
|
+
*/
|
|
16
19
|
/** add background color, color and border-color to element when it has focus-visible i.e. tab focus */
|
|
17
20
|
:host {
|
|
18
21
|
padding-left: 0;
|
|
@@ -21,6 +24,7 @@ var listbox_trans_styles_default = `
|
|
|
21
24
|
display: flex;
|
|
22
25
|
flex-direction: column;
|
|
23
26
|
list-style: none;
|
|
27
|
+
overflow-y: auto;
|
|
24
28
|
}
|
|
25
29
|
:host > li {
|
|
26
30
|
padding-bottom: 0.5rem;
|
|
@@ -38,8 +42,7 @@ var listbox_trans_styles_default = `
|
|
|
38
42
|
}`;
|
|
39
43
|
|
|
40
44
|
// libs/core/src/primitives/listbox/option.trans.styles.scss
|
|
41
|
-
var option_trans_styles_default =
|
|
42
|
-
/**
|
|
45
|
+
var option_trans_styles_default = `/**
|
|
43
46
|
* Calculate the luminance for a color.
|
|
44
47
|
* See https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests
|
|
45
48
|
*/
|
|
@@ -52,6 +55,10 @@ var option_trans_styles_default = `
|
|
|
52
55
|
/* stylelint-disable */
|
|
53
56
|
/* stylelint-enable */
|
|
54
57
|
/* stylelint-disable */
|
|
58
|
+
/**
|
|
59
|
+
* @deprecated
|
|
60
|
+
* Use \`add-focus\` instead
|
|
61
|
+
*/
|
|
55
62
|
/** add background color, color and border-color to element when it has focus-visible i.e. tab focus */
|
|
56
63
|
button,
|
|
57
64
|
input[type=button],
|
|
@@ -82,7 +89,6 @@ input:where([type=button], [type=submit], [type=reset]),
|
|
|
82
89
|
border-radius: var(--sg-border-radius);
|
|
83
90
|
border: solid var(--sg-border-width) var(--sg-border-color);
|
|
84
91
|
font-weight: 500;
|
|
85
|
-
transition: box-shadow 0.3s cubic-bezier(0.23, 1, 0.32, 1);
|
|
86
92
|
min-height: 2.75rem;
|
|
87
93
|
align-items: center;
|
|
88
94
|
display: inline-flex;
|
|
@@ -94,20 +100,6 @@ button:where(:not(.link,
|
|
|
94
100
|
[aria-haspopup=listbox],
|
|
95
101
|
[aria-haspopup=menu],
|
|
96
102
|
[role=switch],
|
|
97
|
-
.gds-filter-chip)):focus,
|
|
98
|
-
input:where([type=button], [type=submit], [type=reset]):focus,
|
|
99
|
-
.button:focus {
|
|
100
|
-
border-color: rgb(0, 122, 199);
|
|
101
|
-
box-shadow: 0 0 0.25rem 0.0625rem rgb(65, 176, 238);
|
|
102
|
-
outline-color: transparent;
|
|
103
|
-
outline-style: solid;
|
|
104
|
-
}
|
|
105
|
-
button:where(:not(.link,
|
|
106
|
-
.close,
|
|
107
|
-
.sg-table-sort,
|
|
108
|
-
[aria-haspopup=listbox],
|
|
109
|
-
[aria-haspopup=menu],
|
|
110
|
-
[role=switch],
|
|
111
103
|
.gds-filter-chip)):focus:not(:focus-visible),
|
|
112
104
|
input:where([type=button], [type=submit], [type=reset]):focus:not(:focus-visible),
|
|
113
105
|
.button:focus:not(:focus-visible) {
|
|
@@ -120,15 +112,23 @@ button:where(:not(.link,
|
|
|
120
112
|
[aria-haspopup=listbox],
|
|
121
113
|
[aria-haspopup=menu],
|
|
122
114
|
[role=switch],
|
|
115
|
+
.gds-filter-chip)):focus, button:where(:not(.link,
|
|
116
|
+
.close,
|
|
117
|
+
.sg-table-sort,
|
|
118
|
+
[aria-haspopup=listbox],
|
|
119
|
+
[aria-haspopup=menu],
|
|
120
|
+
[role=switch],
|
|
123
121
|
.gds-filter-chip)):focus-visible,
|
|
122
|
+
input:where([type=button], [type=submit], [type=reset]):focus,
|
|
124
123
|
input:where([type=button], [type=submit], [type=reset]):focus-visible,
|
|
124
|
+
.button:focus,
|
|
125
125
|
.button:focus-visible {
|
|
126
|
-
|
|
127
|
-
box-shadow: 0 0 0.25rem 0.0625rem rgb(65, 176, 238);
|
|
128
|
-
outline-color: transparent;
|
|
126
|
+
outline-color: var(--gds-sys-color-focus-outline);
|
|
129
127
|
outline-style: solid;
|
|
128
|
+
outline-width: 0.125rem;
|
|
129
|
+
outline-offset: 0.125rem;
|
|
130
130
|
}
|
|
131
|
-
@media (max-width:
|
|
131
|
+
@media (max-width: 35.98em) {
|
|
132
132
|
button:where(:not(.link,
|
|
133
133
|
.close,
|
|
134
134
|
.sg-table-sort,
|
|
@@ -207,8 +207,7 @@ button[type=button]:where(:not(.primary,
|
|
|
207
207
|
[aria-haspopup=listbox],
|
|
208
208
|
[aria-haspopup=menu])),
|
|
209
209
|
button[type=reset]:where(:not(.primary, .tertiary, .ghost, .danger, .close, .link)) {
|
|
210
|
-
transition:
|
|
211
|
-
transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
|
|
210
|
+
transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1), outline-offset 0s, outline-width 0s;
|
|
212
211
|
background: transparent;
|
|
213
212
|
border-color: rgb(0, 122, 199);
|
|
214
213
|
color: rgb(0, 122, 199);
|
|
@@ -224,36 +223,6 @@ button:where(:not(.primary,
|
|
|
224
223
|
[aria-haspopup=listbox],
|
|
225
224
|
[aria-haspopup=menu],
|
|
226
225
|
[role=switch],
|
|
227
|
-
.gds-filter-chip)):focus,
|
|
228
|
-
a.button:where(:not(.primary, .tertiary, .ghost, .danger, .close, .link)):focus,
|
|
229
|
-
button.secondary:focus,
|
|
230
|
-
a.button.secondary:focus,
|
|
231
|
-
input:is([type=button], [type=reset]):focus,
|
|
232
|
-
button[type=button]:where(:not(.primary,
|
|
233
|
-
.tertiary,
|
|
234
|
-
.ghost,
|
|
235
|
-
.danger,
|
|
236
|
-
.close,
|
|
237
|
-
.link,
|
|
238
|
-
.icon,
|
|
239
|
-
[aria-haspopup=listbox],
|
|
240
|
-
[aria-haspopup=menu])):focus,
|
|
241
|
-
button[type=reset]:where(:not(.primary, .tertiary, .ghost, .danger, .close, .link)):focus {
|
|
242
|
-
border-color: rgb(0, 122, 199);
|
|
243
|
-
box-shadow: 0 0 0.25rem 0.0625rem rgb(65, 176, 238);
|
|
244
|
-
outline-color: transparent;
|
|
245
|
-
outline-style: solid;
|
|
246
|
-
}
|
|
247
|
-
button:where(:not(.primary,
|
|
248
|
-
.tertiary,
|
|
249
|
-
.ghost,
|
|
250
|
-
.danger,
|
|
251
|
-
.close,
|
|
252
|
-
.sg-table-sort,
|
|
253
|
-
.link,
|
|
254
|
-
[aria-haspopup=listbox],
|
|
255
|
-
[aria-haspopup=menu],
|
|
256
|
-
[role=switch],
|
|
257
226
|
.gds-filter-chip)):focus:not(:focus-visible),
|
|
258
227
|
a.button:where(:not(.primary, .tertiary, .ghost, .danger, .close, .link)):focus:not(:focus-visible),
|
|
259
228
|
button.secondary:focus:not(:focus-visible),
|
|
@@ -282,10 +251,24 @@ button:where(:not(.primary,
|
|
|
282
251
|
[aria-haspopup=listbox],
|
|
283
252
|
[aria-haspopup=menu],
|
|
284
253
|
[role=switch],
|
|
254
|
+
.gds-filter-chip)):focus, button:where(:not(.primary,
|
|
255
|
+
.tertiary,
|
|
256
|
+
.ghost,
|
|
257
|
+
.danger,
|
|
258
|
+
.close,
|
|
259
|
+
.sg-table-sort,
|
|
260
|
+
.link,
|
|
261
|
+
[aria-haspopup=listbox],
|
|
262
|
+
[aria-haspopup=menu],
|
|
263
|
+
[role=switch],
|
|
285
264
|
.gds-filter-chip)):focus-visible,
|
|
265
|
+
a.button:where(:not(.primary, .tertiary, .ghost, .danger, .close, .link)):focus,
|
|
286
266
|
a.button:where(:not(.primary, .tertiary, .ghost, .danger, .close, .link)):focus-visible,
|
|
267
|
+
button.secondary:focus,
|
|
287
268
|
button.secondary:focus-visible,
|
|
269
|
+
a.button.secondary:focus,
|
|
288
270
|
a.button.secondary:focus-visible,
|
|
271
|
+
input:is([type=button], [type=reset]):focus,
|
|
289
272
|
input:is([type=button], [type=reset]):focus-visible,
|
|
290
273
|
button[type=button]:where(:not(.primary,
|
|
291
274
|
.tertiary,
|
|
@@ -295,12 +278,22 @@ button[type=button]:where(:not(.primary,
|
|
|
295
278
|
.link,
|
|
296
279
|
.icon,
|
|
297
280
|
[aria-haspopup=listbox],
|
|
281
|
+
[aria-haspopup=menu])):focus,
|
|
282
|
+
button[type=button]:where(:not(.primary,
|
|
283
|
+
.tertiary,
|
|
284
|
+
.ghost,
|
|
285
|
+
.danger,
|
|
286
|
+
.close,
|
|
287
|
+
.link,
|
|
288
|
+
.icon,
|
|
289
|
+
[aria-haspopup=listbox],
|
|
298
290
|
[aria-haspopup=menu])):focus-visible,
|
|
291
|
+
button[type=reset]:where(:not(.primary, .tertiary, .ghost, .danger, .close, .link)):focus,
|
|
299
292
|
button[type=reset]:where(:not(.primary, .tertiary, .ghost, .danger, .close, .link)):focus-visible {
|
|
300
|
-
|
|
301
|
-
box-shadow: 0 0 0.25rem 0.0625rem rgb(65, 176, 238);
|
|
302
|
-
outline-color: transparent;
|
|
293
|
+
outline-color: var(--gds-sys-color-focus-outline);
|
|
303
294
|
outline-style: solid;
|
|
295
|
+
outline-width: 0.125rem;
|
|
296
|
+
outline-offset: 0.125rem;
|
|
304
297
|
}
|
|
305
298
|
button:where(:not(.primary,
|
|
306
299
|
.tertiary,
|
|
@@ -627,8 +620,7 @@ button:where(:not(.primary,
|
|
|
627
620
|
a.button:where(:not(.primary, .secondary, .ghost, .close, .link)),
|
|
628
621
|
button.tertiary,
|
|
629
622
|
a.button.tertiary {
|
|
630
|
-
transition:
|
|
631
|
-
transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
|
|
623
|
+
transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1), outline-offset 0s, outline-width 0s;
|
|
632
624
|
background: transparent;
|
|
633
625
|
border-color: transparent;
|
|
634
626
|
color: rgb(0, 122, 199);
|
|
@@ -644,14 +636,12 @@ button:where(:not(.primary,
|
|
|
644
636
|
[aria-haspopup=listbox],
|
|
645
637
|
[aria-haspopup=menu],
|
|
646
638
|
[role=switch],
|
|
647
|
-
.gds-filter-chip)):focus,
|
|
648
|
-
a.button:where(:not(.primary, .secondary, .ghost, .close, .link)):focus,
|
|
649
|
-
button.tertiary:focus,
|
|
650
|
-
a.button.tertiary:focus {
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
outline-color: transparent;
|
|
654
|
-
outline-style: solid;
|
|
639
|
+
.gds-filter-chip)):focus:not(:focus-visible),
|
|
640
|
+
a.button:where(:not(.primary, .secondary, .ghost, .close, .link)):focus:not(:focus-visible),
|
|
641
|
+
button.tertiary:focus:not(:focus-visible),
|
|
642
|
+
a.button.tertiary:focus:not(:focus-visible) {
|
|
643
|
+
box-shadow: none;
|
|
644
|
+
outline: 0;
|
|
655
645
|
}
|
|
656
646
|
button:where(:not(.primary,
|
|
657
647
|
.secondary,
|
|
@@ -663,14 +653,7 @@ button:where(:not(.primary,
|
|
|
663
653
|
[aria-haspopup=listbox],
|
|
664
654
|
[aria-haspopup=menu],
|
|
665
655
|
[role=switch],
|
|
666
|
-
.gds-filter-chip)):focus:not(
|
|
667
|
-
a.button:where(:not(.primary, .secondary, .ghost, .close, .link)):focus:not(:focus-visible),
|
|
668
|
-
button.tertiary:focus:not(:focus-visible),
|
|
669
|
-
a.button.tertiary:focus:not(:focus-visible) {
|
|
670
|
-
box-shadow: none;
|
|
671
|
-
outline: 0;
|
|
672
|
-
}
|
|
673
|
-
button:where(:not(.primary,
|
|
656
|
+
.gds-filter-chip)):focus, button:where(:not(.primary,
|
|
674
657
|
.secondary,
|
|
675
658
|
.ghost,
|
|
676
659
|
.danger,
|
|
@@ -681,13 +664,16 @@ button:where(:not(.primary,
|
|
|
681
664
|
[aria-haspopup=menu],
|
|
682
665
|
[role=switch],
|
|
683
666
|
.gds-filter-chip)):focus-visible,
|
|
667
|
+
a.button:where(:not(.primary, .secondary, .ghost, .close, .link)):focus,
|
|
684
668
|
a.button:where(:not(.primary, .secondary, .ghost, .close, .link)):focus-visible,
|
|
669
|
+
button.tertiary:focus,
|
|
685
670
|
button.tertiary:focus-visible,
|
|
671
|
+
a.button.tertiary:focus,
|
|
686
672
|
a.button.tertiary:focus-visible {
|
|
687
|
-
|
|
688
|
-
box-shadow: 0 0 0.25rem 0.0625rem rgb(65, 176, 238);
|
|
689
|
-
outline-color: transparent;
|
|
673
|
+
outline-color: var(--gds-sys-color-focus-outline);
|
|
690
674
|
outline-style: solid;
|
|
675
|
+
outline-width: 0.125rem;
|
|
676
|
+
outline-offset: 0.125rem;
|
|
691
677
|
}
|
|
692
678
|
button:where(:not(.primary,
|
|
693
679
|
.secondary,
|
|
@@ -878,7 +864,7 @@ button[type=submit]:not(.secondary,
|
|
|
878
864
|
.gds-filter-chip),
|
|
879
865
|
input[type=submit]:not(.secondary, .ghost, .danger, .close, .link),
|
|
880
866
|
a.button.primary {
|
|
881
|
-
transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
|
|
867
|
+
transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1), outline-offset 0s, outline-width 0s;
|
|
882
868
|
background: rgb(0, 122, 199);
|
|
883
869
|
border-color: rgb(0, 122, 199);
|
|
884
870
|
color: #fff;
|
|
@@ -1034,7 +1020,7 @@ a.button.primary[aria-disabled=true]::placeholder {
|
|
|
1034
1020
|
|
|
1035
1021
|
button.ghost,
|
|
1036
1022
|
.button.ghost {
|
|
1037
|
-
transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
|
|
1023
|
+
transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1), outline-offset 0s, outline-width 0s;
|
|
1038
1024
|
border-color: rgb(51, 51, 51);
|
|
1039
1025
|
color: rgb(51, 51, 51);
|
|
1040
1026
|
--color: rgb(51, 51, 51);
|
|
@@ -1162,8 +1148,7 @@ input[type=submit].danger:not(.secondary, .ghost, .close, .link) {
|
|
|
1162
1148
|
border-color: rgb(187, 0, 12);
|
|
1163
1149
|
color: #fff;
|
|
1164
1150
|
--color: #fff;
|
|
1165
|
-
transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
|
|
1166
|
-
transition: box-shadow 0.3s cubic-bezier(0.23, 1, 0.32, 1);
|
|
1151
|
+
transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1), outline-offset 0s, outline-width 0s;
|
|
1167
1152
|
}
|
|
1168
1153
|
button.primary.danger:not(:disabled, .disabled, [aria-disabled]):hover,
|
|
1169
1154
|
.button.primary.danger:not(:disabled, .disabled, [aria-disabled]):hover,
|
|
@@ -1209,23 +1194,24 @@ input[type=submit].danger:not(.secondary, .ghost, .close, .link).active:hover,
|
|
|
1209
1194
|
input[type=submit].danger:not(.secondary, .ghost, .close, .link):active:hover {
|
|
1210
1195
|
opacity: 0.9;
|
|
1211
1196
|
}
|
|
1212
|
-
button.primary.danger:focus,
|
|
1213
|
-
.button.primary.danger:focus,
|
|
1214
|
-
button[type=submit].danger:not(.secondary, .ghost, .close, .link):focus,
|
|
1215
|
-
input[type=submit].danger:not(.secondary, .ghost, .close, .link):focus {
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
outline-color: transparent;
|
|
1219
|
-
outline-style: solid;
|
|
1197
|
+
button.primary.danger:focus:not(:focus-visible),
|
|
1198
|
+
.button.primary.danger:focus:not(:focus-visible),
|
|
1199
|
+
button[type=submit].danger:not(.secondary, .ghost, .close, .link):focus:not(:focus-visible),
|
|
1200
|
+
input[type=submit].danger:not(.secondary, .ghost, .close, .link):focus:not(:focus-visible) {
|
|
1201
|
+
box-shadow: none;
|
|
1202
|
+
outline: 0;
|
|
1220
1203
|
}
|
|
1221
|
-
button.primary.danger:focus,
|
|
1204
|
+
button.primary.danger:focus, button.primary.danger:focus-visible,
|
|
1222
1205
|
.button.primary.danger:focus,
|
|
1206
|
+
.button.primary.danger:focus-visible,
|
|
1223
1207
|
button[type=submit].danger:not(.secondary, .ghost, .close, .link):focus,
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
outline-color:
|
|
1208
|
+
button[type=submit].danger:not(.secondary, .ghost, .close, .link):focus-visible,
|
|
1209
|
+
input[type=submit].danger:not(.secondary, .ghost, .close, .link):focus,
|
|
1210
|
+
input[type=submit].danger:not(.secondary, .ghost, .close, .link):focus-visible {
|
|
1211
|
+
outline-color: var(--gds-sys-color-focus-outline);
|
|
1228
1212
|
outline-style: solid;
|
|
1213
|
+
outline-width: 0.125rem;
|
|
1214
|
+
outline-offset: 0.125rem;
|
|
1229
1215
|
}
|
|
1230
1216
|
button.primary.danger:disabled, button.primary.danger.disabled, button.primary.danger[aria-disabled=true],
|
|
1231
1217
|
.button.primary.danger:disabled,
|
|
@@ -1280,8 +1266,7 @@ button[type=reset].danger:where(:not(.primary, .tertiary, .ghost, .danger, .clos
|
|
|
1280
1266
|
color: rgb(187, 0, 12);
|
|
1281
1267
|
--color: rgb(187, 0, 12);
|
|
1282
1268
|
border-color: transparent;
|
|
1283
|
-
transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
|
|
1284
|
-
transition: box-shadow 0.3s cubic-bezier(0.23, 1, 0.32, 1);
|
|
1269
|
+
transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1), outline-offset 0s, outline-width 0s;
|
|
1285
1270
|
}
|
|
1286
1271
|
button.danger:where(:not(.primary,
|
|
1287
1272
|
.tertiary,
|
|
@@ -1497,11 +1482,11 @@ button.danger:where(:not(.primary,
|
|
|
1497
1482
|
.link,
|
|
1498
1483
|
[aria-haspopup=listbox],
|
|
1499
1484
|
[aria-haspopup=menu],
|
|
1500
|
-
[role=switch])):focus,
|
|
1501
|
-
a.button.danger:where(:not(.primary, .tertiary, .ghost, .close, .link)):focus,
|
|
1502
|
-
button.secondary.danger:focus,
|
|
1503
|
-
a.button.secondary.danger:focus,
|
|
1504
|
-
input.danger:is([type=button], [type=reset]):focus,
|
|
1485
|
+
[role=switch])):focus:not(:focus-visible),
|
|
1486
|
+
a.button.danger:where(:not(.primary, .tertiary, .ghost, .close, .link)):focus:not(:focus-visible),
|
|
1487
|
+
button.secondary.danger:focus:not(:focus-visible),
|
|
1488
|
+
a.button.secondary.danger:focus:not(:focus-visible),
|
|
1489
|
+
input.danger:is([type=button], [type=reset]):focus:not(:focus-visible),
|
|
1505
1490
|
button[type=button].danger:where(:not(.primary,
|
|
1506
1491
|
.tertiary,
|
|
1507
1492
|
.ghost,
|
|
@@ -1509,12 +1494,10 @@ button[type=button].danger:where(:not(.primary,
|
|
|
1509
1494
|
.close,
|
|
1510
1495
|
.link,
|
|
1511
1496
|
.gds-filter-chip [aria-haspopup=listbox],
|
|
1512
|
-
[aria-haspopup=menu])):focus,
|
|
1513
|
-
button[type=reset].danger:where(:not(.primary, .tertiary, .ghost, .danger, .close, .link)):focus {
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
outline-color: transparent;
|
|
1517
|
-
outline-style: solid;
|
|
1497
|
+
[aria-haspopup=menu])):focus:not(:focus-visible),
|
|
1498
|
+
button[type=reset].danger:where(:not(.primary, .tertiary, .ghost, .danger, .close, .link)):focus:not(:focus-visible) {
|
|
1499
|
+
box-shadow: none;
|
|
1500
|
+
outline: 0;
|
|
1518
1501
|
}
|
|
1519
1502
|
button.danger:where(:not(.primary,
|
|
1520
1503
|
.tertiary,
|
|
@@ -1524,11 +1507,23 @@ button.danger:where(:not(.primary,
|
|
|
1524
1507
|
.link,
|
|
1525
1508
|
[aria-haspopup=listbox],
|
|
1526
1509
|
[aria-haspopup=menu],
|
|
1527
|
-
[role=switch])):focus,
|
|
1510
|
+
[role=switch])):focus, button.danger:where(:not(.primary,
|
|
1511
|
+
.tertiary,
|
|
1512
|
+
.ghost,
|
|
1513
|
+
.close,
|
|
1514
|
+
.sg-table-sort,
|
|
1515
|
+
.link,
|
|
1516
|
+
[aria-haspopup=listbox],
|
|
1517
|
+
[aria-haspopup=menu],
|
|
1518
|
+
[role=switch])):focus-visible,
|
|
1528
1519
|
a.button.danger:where(:not(.primary, .tertiary, .ghost, .close, .link)):focus,
|
|
1520
|
+
a.button.danger:where(:not(.primary, .tertiary, .ghost, .close, .link)):focus-visible,
|
|
1529
1521
|
button.secondary.danger:focus,
|
|
1522
|
+
button.secondary.danger:focus-visible,
|
|
1530
1523
|
a.button.secondary.danger:focus,
|
|
1524
|
+
a.button.secondary.danger:focus-visible,
|
|
1531
1525
|
input.danger:is([type=button], [type=reset]):focus,
|
|
1526
|
+
input.danger:is([type=button], [type=reset]):focus-visible,
|
|
1532
1527
|
button[type=button].danger:where(:not(.primary,
|
|
1533
1528
|
.tertiary,
|
|
1534
1529
|
.ghost,
|
|
@@ -1537,11 +1532,20 @@ button[type=button].danger:where(:not(.primary,
|
|
|
1537
1532
|
.link,
|
|
1538
1533
|
.gds-filter-chip [aria-haspopup=listbox],
|
|
1539
1534
|
[aria-haspopup=menu])):focus,
|
|
1540
|
-
button[type=
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1535
|
+
button[type=button].danger:where(:not(.primary,
|
|
1536
|
+
.tertiary,
|
|
1537
|
+
.ghost,
|
|
1538
|
+
.danger,
|
|
1539
|
+
.close,
|
|
1540
|
+
.link,
|
|
1541
|
+
.gds-filter-chip [aria-haspopup=listbox],
|
|
1542
|
+
[aria-haspopup=menu])):focus-visible,
|
|
1543
|
+
button[type=reset].danger:where(:not(.primary, .tertiary, .ghost, .danger, .close, .link)):focus,
|
|
1544
|
+
button[type=reset].danger:where(:not(.primary, .tertiary, .ghost, .danger, .close, .link)):focus-visible {
|
|
1545
|
+
outline-color: var(--gds-sys-color-focus-outline);
|
|
1544
1546
|
outline-style: solid;
|
|
1547
|
+
outline-width: 0.125rem;
|
|
1548
|
+
outline-offset: 0.125rem;
|
|
1545
1549
|
}
|
|
1546
1550
|
|
|
1547
1551
|
button.danger:where(:not(.primary,
|
|
@@ -1559,8 +1563,7 @@ a.button.tertiary.danger {
|
|
|
1559
1563
|
color: rgb(187, 0, 12);
|
|
1560
1564
|
--color: rgb(187, 0, 12);
|
|
1561
1565
|
border-color: transparent;
|
|
1562
|
-
transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
|
|
1563
|
-
transition: box-shadow 0.3s cubic-bezier(0.23, 1, 0.32, 1);
|
|
1566
|
+
transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1), outline-offset 0s, outline-width 0s;
|
|
1564
1567
|
}
|
|
1565
1568
|
button.danger:where(:not(.primary,
|
|
1566
1569
|
.secondary,
|
|
@@ -1686,14 +1689,12 @@ button.danger:where(:not(.primary,
|
|
|
1686
1689
|
.link,
|
|
1687
1690
|
[aria-haspopup=listbox],
|
|
1688
1691
|
[aria-haspopup=menu],
|
|
1689
|
-
[role=switch])):focus,
|
|
1690
|
-
a.button.danger:where(:not(.primary, .secondary, .ghost, .close, .link)):focus,
|
|
1691
|
-
button.tertiary.danger:focus,
|
|
1692
|
-
a.button.tertiary.danger:focus {
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
outline-color: transparent;
|
|
1696
|
-
outline-style: solid;
|
|
1692
|
+
[role=switch])):focus:not(:focus-visible),
|
|
1693
|
+
a.button.danger:where(:not(.primary, .secondary, .ghost, .close, .link)):focus:not(:focus-visible),
|
|
1694
|
+
button.tertiary.danger:focus:not(:focus-visible),
|
|
1695
|
+
a.button.tertiary.danger:focus:not(:focus-visible) {
|
|
1696
|
+
box-shadow: none;
|
|
1697
|
+
outline: 0;
|
|
1697
1698
|
}
|
|
1698
1699
|
button.danger:where(:not(.primary,
|
|
1699
1700
|
.secondary,
|
|
@@ -1703,14 +1704,25 @@ button.danger:where(:not(.primary,
|
|
|
1703
1704
|
.link,
|
|
1704
1705
|
[aria-haspopup=listbox],
|
|
1705
1706
|
[aria-haspopup=menu],
|
|
1706
|
-
[role=switch])):focus,
|
|
1707
|
+
[role=switch])):focus, button.danger:where(:not(.primary,
|
|
1708
|
+
.secondary,
|
|
1709
|
+
.ghost,
|
|
1710
|
+
.close,
|
|
1711
|
+
.sg-table-sort,
|
|
1712
|
+
.link,
|
|
1713
|
+
[aria-haspopup=listbox],
|
|
1714
|
+
[aria-haspopup=menu],
|
|
1715
|
+
[role=switch])):focus-visible,
|
|
1707
1716
|
a.button.danger:where(:not(.primary, .secondary, .ghost, .close, .link)):focus,
|
|
1717
|
+
a.button.danger:where(:not(.primary, .secondary, .ghost, .close, .link)):focus-visible,
|
|
1708
1718
|
button.tertiary.danger:focus,
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
outline-color:
|
|
1719
|
+
button.tertiary.danger:focus-visible,
|
|
1720
|
+
a.button.tertiary.danger:focus,
|
|
1721
|
+
a.button.tertiary.danger:focus-visible {
|
|
1722
|
+
outline-color: var(--gds-sys-color-focus-outline);
|
|
1713
1723
|
outline-style: solid;
|
|
1724
|
+
outline-width: 0.125rem;
|
|
1725
|
+
outline-offset: 0.125rem;
|
|
1714
1726
|
}
|
|
1715
1727
|
|
|
1716
1728
|
:host {
|
|
@@ -1718,11 +1730,12 @@ a.button.tertiary.danger:focus {
|
|
|
1718
1730
|
padding-right: 0.75rem;
|
|
1719
1731
|
padding-bottom: 0.75rem;
|
|
1720
1732
|
padding-top: 0.75rem;
|
|
1721
|
-
transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
|
|
1733
|
+
transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1), outline-offset 0s, outline-width 0s;
|
|
1722
1734
|
line-height: 1.25;
|
|
1723
1735
|
cursor: pointer;
|
|
1724
1736
|
display: flex;
|
|
1725
1737
|
gap: 0.75rem;
|
|
1738
|
+
user-select: none;
|
|
1726
1739
|
}
|
|
1727
1740
|
:host:not(:disabled, .disabled, [aria-disabled]):hover {
|
|
1728
1741
|
background-color: #199be3;
|
|
@@ -1739,16 +1752,15 @@ a.button.tertiary.danger:focus {
|
|
|
1739
1752
|
border-color: rgb(0, 122, 199);
|
|
1740
1753
|
}
|
|
1741
1754
|
:host.active.sg-highlighted {
|
|
1742
|
-
background:
|
|
1755
|
+
background: var(--gds-ref-pallet-base800);
|
|
1743
1756
|
}
|
|
1744
1757
|
|
|
1745
1758
|
:host(:hover) {
|
|
1746
|
-
background-color:
|
|
1747
|
-
color: #fff;
|
|
1759
|
+
background-color: var(--gds-ref-pallet-base300);
|
|
1748
1760
|
}
|
|
1749
1761
|
|
|
1750
1762
|
:host(:focus) {
|
|
1751
|
-
background:
|
|
1763
|
+
background: var(--gds-ref-pallet-base800);
|
|
1752
1764
|
color: #fff;
|
|
1753
1765
|
outline: 2px solid;
|
|
1754
1766
|
}
|
|
@@ -1758,7 +1770,7 @@ a.button.tertiary.danger:focus {
|
|
|
1758
1770
|
}
|
|
1759
1771
|
|
|
1760
1772
|
:host([highlighted]) {
|
|
1761
|
-
background:
|
|
1773
|
+
background: var(--gds-ref-pallet-base800);
|
|
1762
1774
|
color: #fff;
|
|
1763
1775
|
}
|
|
1764
1776
|
|
|
@@ -1796,8 +1808,7 @@ function register() {
|
|
|
1796
1808
|
}
|
|
1797
1809
|
|
|
1798
1810
|
// libs/core/src/primitives/popover/popover.trans.styles.scss
|
|
1799
|
-
var popover_trans_styles_default =
|
|
1800
|
-
/* stylelint-disable max-nesting-depth */
|
|
1811
|
+
var popover_trans_styles_default = `/* stylelint-disable max-nesting-depth */
|
|
1801
1812
|
/* stylelint-enable max-nesting-depth */
|
|
1802
1813
|
/**
|
|
1803
1814
|
* Calculate the luminance for a color.
|
|
@@ -1810,6 +1821,10 @@ var popover_trans_styles_default = `
|
|
|
1810
1821
|
/* stylelint-disable */
|
|
1811
1822
|
/* stylelint-enable */
|
|
1812
1823
|
/* stylelint-disable */
|
|
1824
|
+
/**
|
|
1825
|
+
* @deprecated
|
|
1826
|
+
* Use \`add-focus\` instead
|
|
1827
|
+
*/
|
|
1813
1828
|
/** add background color, color and border-color to element when it has focus-visible i.e. tab focus */
|
|
1814
1829
|
button,
|
|
1815
1830
|
input[type=button],
|
|
@@ -1840,7 +1855,6 @@ input:where([type=button], [type=submit], [type=reset]),
|
|
|
1840
1855
|
border-radius: var(--sg-border-radius);
|
|
1841
1856
|
border: solid var(--sg-border-width) var(--sg-border-color);
|
|
1842
1857
|
font-weight: 500;
|
|
1843
|
-
transition: box-shadow 0.3s cubic-bezier(0.23, 1, 0.32, 1);
|
|
1844
1858
|
min-height: 2.75rem;
|
|
1845
1859
|
align-items: center;
|
|
1846
1860
|
display: inline-flex;
|
|
@@ -1852,20 +1866,6 @@ button:where(:not(.link,
|
|
|
1852
1866
|
[aria-haspopup=listbox],
|
|
1853
1867
|
[aria-haspopup=menu],
|
|
1854
1868
|
[role=switch],
|
|
1855
|
-
.gds-filter-chip)):focus,
|
|
1856
|
-
input:where([type=button], [type=submit], [type=reset]):focus,
|
|
1857
|
-
.button:focus {
|
|
1858
|
-
border-color: rgb(0, 122, 199);
|
|
1859
|
-
box-shadow: 0 0 0.25rem 0.0625rem rgb(65, 176, 238);
|
|
1860
|
-
outline-color: transparent;
|
|
1861
|
-
outline-style: solid;
|
|
1862
|
-
}
|
|
1863
|
-
button:where(:not(.link,
|
|
1864
|
-
.close,
|
|
1865
|
-
.sg-table-sort,
|
|
1866
|
-
[aria-haspopup=listbox],
|
|
1867
|
-
[aria-haspopup=menu],
|
|
1868
|
-
[role=switch],
|
|
1869
1869
|
.gds-filter-chip)):focus:not(:focus-visible),
|
|
1870
1870
|
input:where([type=button], [type=submit], [type=reset]):focus:not(:focus-visible),
|
|
1871
1871
|
.button:focus:not(:focus-visible) {
|
|
@@ -1878,15 +1878,23 @@ button:where(:not(.link,
|
|
|
1878
1878
|
[aria-haspopup=listbox],
|
|
1879
1879
|
[aria-haspopup=menu],
|
|
1880
1880
|
[role=switch],
|
|
1881
|
+
.gds-filter-chip)):focus, button:where(:not(.link,
|
|
1882
|
+
.close,
|
|
1883
|
+
.sg-table-sort,
|
|
1884
|
+
[aria-haspopup=listbox],
|
|
1885
|
+
[aria-haspopup=menu],
|
|
1886
|
+
[role=switch],
|
|
1881
1887
|
.gds-filter-chip)):focus-visible,
|
|
1888
|
+
input:where([type=button], [type=submit], [type=reset]):focus,
|
|
1882
1889
|
input:where([type=button], [type=submit], [type=reset]):focus-visible,
|
|
1890
|
+
.button:focus,
|
|
1883
1891
|
.button:focus-visible {
|
|
1884
|
-
|
|
1885
|
-
box-shadow: 0 0 0.25rem 0.0625rem rgb(65, 176, 238);
|
|
1886
|
-
outline-color: transparent;
|
|
1892
|
+
outline-color: var(--gds-sys-color-focus-outline);
|
|
1887
1893
|
outline-style: solid;
|
|
1894
|
+
outline-width: 0.125rem;
|
|
1895
|
+
outline-offset: 0.125rem;
|
|
1888
1896
|
}
|
|
1889
|
-
@media (max-width:
|
|
1897
|
+
@media (max-width: 35.98em) {
|
|
1890
1898
|
button:where(:not(.link,
|
|
1891
1899
|
.close,
|
|
1892
1900
|
.sg-table-sort,
|
|
@@ -1965,8 +1973,7 @@ button[type=button]:where(:not(.primary,
|
|
|
1965
1973
|
[aria-haspopup=listbox],
|
|
1966
1974
|
[aria-haspopup=menu])),
|
|
1967
1975
|
button[type=reset]:where(:not(.primary, .tertiary, .ghost, .danger, .close, .link)) {
|
|
1968
|
-
transition:
|
|
1969
|
-
transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
|
|
1976
|
+
transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1), outline-offset 0s, outline-width 0s;
|
|
1970
1977
|
background: transparent;
|
|
1971
1978
|
border-color: rgb(0, 122, 199);
|
|
1972
1979
|
color: rgb(0, 122, 199);
|
|
@@ -1982,36 +1989,6 @@ button:where(:not(.primary,
|
|
|
1982
1989
|
[aria-haspopup=listbox],
|
|
1983
1990
|
[aria-haspopup=menu],
|
|
1984
1991
|
[role=switch],
|
|
1985
|
-
.gds-filter-chip)):focus,
|
|
1986
|
-
a.button:where(:not(.primary, .tertiary, .ghost, .danger, .close, .link)):focus,
|
|
1987
|
-
button.secondary:focus,
|
|
1988
|
-
a.button.secondary:focus,
|
|
1989
|
-
input:is([type=button], [type=reset]):focus,
|
|
1990
|
-
button[type=button]:where(:not(.primary,
|
|
1991
|
-
.tertiary,
|
|
1992
|
-
.ghost,
|
|
1993
|
-
.danger,
|
|
1994
|
-
.close,
|
|
1995
|
-
.link,
|
|
1996
|
-
.icon,
|
|
1997
|
-
[aria-haspopup=listbox],
|
|
1998
|
-
[aria-haspopup=menu])):focus,
|
|
1999
|
-
button[type=reset]:where(:not(.primary, .tertiary, .ghost, .danger, .close, .link)):focus {
|
|
2000
|
-
border-color: rgb(0, 122, 199);
|
|
2001
|
-
box-shadow: 0 0 0.25rem 0.0625rem rgb(65, 176, 238);
|
|
2002
|
-
outline-color: transparent;
|
|
2003
|
-
outline-style: solid;
|
|
2004
|
-
}
|
|
2005
|
-
button:where(:not(.primary,
|
|
2006
|
-
.tertiary,
|
|
2007
|
-
.ghost,
|
|
2008
|
-
.danger,
|
|
2009
|
-
.close,
|
|
2010
|
-
.sg-table-sort,
|
|
2011
|
-
.link,
|
|
2012
|
-
[aria-haspopup=listbox],
|
|
2013
|
-
[aria-haspopup=menu],
|
|
2014
|
-
[role=switch],
|
|
2015
1992
|
.gds-filter-chip)):focus:not(:focus-visible),
|
|
2016
1993
|
a.button:where(:not(.primary, .tertiary, .ghost, .danger, .close, .link)):focus:not(:focus-visible),
|
|
2017
1994
|
button.secondary:focus:not(:focus-visible),
|
|
@@ -2040,10 +2017,24 @@ button:where(:not(.primary,
|
|
|
2040
2017
|
[aria-haspopup=listbox],
|
|
2041
2018
|
[aria-haspopup=menu],
|
|
2042
2019
|
[role=switch],
|
|
2020
|
+
.gds-filter-chip)):focus, button:where(:not(.primary,
|
|
2021
|
+
.tertiary,
|
|
2022
|
+
.ghost,
|
|
2023
|
+
.danger,
|
|
2024
|
+
.close,
|
|
2025
|
+
.sg-table-sort,
|
|
2026
|
+
.link,
|
|
2027
|
+
[aria-haspopup=listbox],
|
|
2028
|
+
[aria-haspopup=menu],
|
|
2029
|
+
[role=switch],
|
|
2043
2030
|
.gds-filter-chip)):focus-visible,
|
|
2031
|
+
a.button:where(:not(.primary, .tertiary, .ghost, .danger, .close, .link)):focus,
|
|
2044
2032
|
a.button:where(:not(.primary, .tertiary, .ghost, .danger, .close, .link)):focus-visible,
|
|
2033
|
+
button.secondary:focus,
|
|
2045
2034
|
button.secondary:focus-visible,
|
|
2035
|
+
a.button.secondary:focus,
|
|
2046
2036
|
a.button.secondary:focus-visible,
|
|
2037
|
+
input:is([type=button], [type=reset]):focus,
|
|
2047
2038
|
input:is([type=button], [type=reset]):focus-visible,
|
|
2048
2039
|
button[type=button]:where(:not(.primary,
|
|
2049
2040
|
.tertiary,
|
|
@@ -2053,12 +2044,22 @@ button[type=button]:where(:not(.primary,
|
|
|
2053
2044
|
.link,
|
|
2054
2045
|
.icon,
|
|
2055
2046
|
[aria-haspopup=listbox],
|
|
2047
|
+
[aria-haspopup=menu])):focus,
|
|
2048
|
+
button[type=button]:where(:not(.primary,
|
|
2049
|
+
.tertiary,
|
|
2050
|
+
.ghost,
|
|
2051
|
+
.danger,
|
|
2052
|
+
.close,
|
|
2053
|
+
.link,
|
|
2054
|
+
.icon,
|
|
2055
|
+
[aria-haspopup=listbox],
|
|
2056
2056
|
[aria-haspopup=menu])):focus-visible,
|
|
2057
|
+
button[type=reset]:where(:not(.primary, .tertiary, .ghost, .danger, .close, .link)):focus,
|
|
2057
2058
|
button[type=reset]:where(:not(.primary, .tertiary, .ghost, .danger, .close, .link)):focus-visible {
|
|
2058
|
-
|
|
2059
|
-
box-shadow: 0 0 0.25rem 0.0625rem rgb(65, 176, 238);
|
|
2060
|
-
outline-color: transparent;
|
|
2059
|
+
outline-color: var(--gds-sys-color-focus-outline);
|
|
2061
2060
|
outline-style: solid;
|
|
2061
|
+
outline-width: 0.125rem;
|
|
2062
|
+
outline-offset: 0.125rem;
|
|
2062
2063
|
}
|
|
2063
2064
|
button:where(:not(.primary,
|
|
2064
2065
|
.tertiary,
|
|
@@ -2385,8 +2386,7 @@ button:where(:not(.primary,
|
|
|
2385
2386
|
a.button:where(:not(.primary, .secondary, .ghost, .close, .link)),
|
|
2386
2387
|
button.tertiary,
|
|
2387
2388
|
a.button.tertiary {
|
|
2388
|
-
transition:
|
|
2389
|
-
transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
|
|
2389
|
+
transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1), outline-offset 0s, outline-width 0s;
|
|
2390
2390
|
background: transparent;
|
|
2391
2391
|
border-color: transparent;
|
|
2392
2392
|
color: rgb(0, 122, 199);
|
|
@@ -2402,14 +2402,12 @@ button:where(:not(.primary,
|
|
|
2402
2402
|
[aria-haspopup=listbox],
|
|
2403
2403
|
[aria-haspopup=menu],
|
|
2404
2404
|
[role=switch],
|
|
2405
|
-
.gds-filter-chip)):focus,
|
|
2406
|
-
a.button:where(:not(.primary, .secondary, .ghost, .close, .link)):focus,
|
|
2407
|
-
button.tertiary:focus,
|
|
2408
|
-
a.button.tertiary:focus {
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
outline-color: transparent;
|
|
2412
|
-
outline-style: solid;
|
|
2405
|
+
.gds-filter-chip)):focus:not(:focus-visible),
|
|
2406
|
+
a.button:where(:not(.primary, .secondary, .ghost, .close, .link)):focus:not(:focus-visible),
|
|
2407
|
+
button.tertiary:focus:not(:focus-visible),
|
|
2408
|
+
a.button.tertiary:focus:not(:focus-visible) {
|
|
2409
|
+
box-shadow: none;
|
|
2410
|
+
outline: 0;
|
|
2413
2411
|
}
|
|
2414
2412
|
button:where(:not(.primary,
|
|
2415
2413
|
.secondary,
|
|
@@ -2421,14 +2419,7 @@ button:where(:not(.primary,
|
|
|
2421
2419
|
[aria-haspopup=listbox],
|
|
2422
2420
|
[aria-haspopup=menu],
|
|
2423
2421
|
[role=switch],
|
|
2424
|
-
.gds-filter-chip)):focus:not(
|
|
2425
|
-
a.button:where(:not(.primary, .secondary, .ghost, .close, .link)):focus:not(:focus-visible),
|
|
2426
|
-
button.tertiary:focus:not(:focus-visible),
|
|
2427
|
-
a.button.tertiary:focus:not(:focus-visible) {
|
|
2428
|
-
box-shadow: none;
|
|
2429
|
-
outline: 0;
|
|
2430
|
-
}
|
|
2431
|
-
button:where(:not(.primary,
|
|
2422
|
+
.gds-filter-chip)):focus, button:where(:not(.primary,
|
|
2432
2423
|
.secondary,
|
|
2433
2424
|
.ghost,
|
|
2434
2425
|
.danger,
|
|
@@ -2439,13 +2430,16 @@ button:where(:not(.primary,
|
|
|
2439
2430
|
[aria-haspopup=menu],
|
|
2440
2431
|
[role=switch],
|
|
2441
2432
|
.gds-filter-chip)):focus-visible,
|
|
2433
|
+
a.button:where(:not(.primary, .secondary, .ghost, .close, .link)):focus,
|
|
2442
2434
|
a.button:where(:not(.primary, .secondary, .ghost, .close, .link)):focus-visible,
|
|
2435
|
+
button.tertiary:focus,
|
|
2443
2436
|
button.tertiary:focus-visible,
|
|
2437
|
+
a.button.tertiary:focus,
|
|
2444
2438
|
a.button.tertiary:focus-visible {
|
|
2445
|
-
|
|
2446
|
-
box-shadow: 0 0 0.25rem 0.0625rem rgb(65, 176, 238);
|
|
2447
|
-
outline-color: transparent;
|
|
2439
|
+
outline-color: var(--gds-sys-color-focus-outline);
|
|
2448
2440
|
outline-style: solid;
|
|
2441
|
+
outline-width: 0.125rem;
|
|
2442
|
+
outline-offset: 0.125rem;
|
|
2449
2443
|
}
|
|
2450
2444
|
button:where(:not(.primary,
|
|
2451
2445
|
.secondary,
|
|
@@ -2636,7 +2630,7 @@ button[type=submit]:not(.secondary,
|
|
|
2636
2630
|
.gds-filter-chip),
|
|
2637
2631
|
input[type=submit]:not(.secondary, .ghost, .danger, .close, .link),
|
|
2638
2632
|
a.button.primary {
|
|
2639
|
-
transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
|
|
2633
|
+
transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1), outline-offset 0s, outline-width 0s;
|
|
2640
2634
|
background: rgb(0, 122, 199);
|
|
2641
2635
|
border-color: rgb(0, 122, 199);
|
|
2642
2636
|
color: #fff;
|
|
@@ -2792,7 +2786,7 @@ a.button.primary[aria-disabled=true]::placeholder {
|
|
|
2792
2786
|
|
|
2793
2787
|
button.ghost,
|
|
2794
2788
|
.button.ghost {
|
|
2795
|
-
transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
|
|
2789
|
+
transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1), outline-offset 0s, outline-width 0s;
|
|
2796
2790
|
border-color: rgb(51, 51, 51);
|
|
2797
2791
|
color: rgb(51, 51, 51);
|
|
2798
2792
|
--color: rgb(51, 51, 51);
|
|
@@ -2920,8 +2914,7 @@ input[type=submit].danger:not(.secondary, .ghost, .close, .link) {
|
|
|
2920
2914
|
border-color: rgb(187, 0, 12);
|
|
2921
2915
|
color: #fff;
|
|
2922
2916
|
--color: #fff;
|
|
2923
|
-
transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
|
|
2924
|
-
transition: box-shadow 0.3s cubic-bezier(0.23, 1, 0.32, 1);
|
|
2917
|
+
transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1), outline-offset 0s, outline-width 0s;
|
|
2925
2918
|
}
|
|
2926
2919
|
button.primary.danger:not(:disabled, .disabled, [aria-disabled]):hover,
|
|
2927
2920
|
.button.primary.danger:not(:disabled, .disabled, [aria-disabled]):hover,
|
|
@@ -2967,23 +2960,24 @@ input[type=submit].danger:not(.secondary, .ghost, .close, .link).active:hover,
|
|
|
2967
2960
|
input[type=submit].danger:not(.secondary, .ghost, .close, .link):active:hover {
|
|
2968
2961
|
opacity: 0.9;
|
|
2969
2962
|
}
|
|
2970
|
-
button.primary.danger:focus,
|
|
2971
|
-
.button.primary.danger:focus,
|
|
2972
|
-
button[type=submit].danger:not(.secondary, .ghost, .close, .link):focus,
|
|
2973
|
-
input[type=submit].danger:not(.secondary, .ghost, .close, .link):focus {
|
|
2974
|
-
|
|
2975
|
-
|
|
2976
|
-
outline-color: transparent;
|
|
2977
|
-
outline-style: solid;
|
|
2963
|
+
button.primary.danger:focus:not(:focus-visible),
|
|
2964
|
+
.button.primary.danger:focus:not(:focus-visible),
|
|
2965
|
+
button[type=submit].danger:not(.secondary, .ghost, .close, .link):focus:not(:focus-visible),
|
|
2966
|
+
input[type=submit].danger:not(.secondary, .ghost, .close, .link):focus:not(:focus-visible) {
|
|
2967
|
+
box-shadow: none;
|
|
2968
|
+
outline: 0;
|
|
2978
2969
|
}
|
|
2979
|
-
button.primary.danger:focus,
|
|
2970
|
+
button.primary.danger:focus, button.primary.danger:focus-visible,
|
|
2980
2971
|
.button.primary.danger:focus,
|
|
2972
|
+
.button.primary.danger:focus-visible,
|
|
2981
2973
|
button[type=submit].danger:not(.secondary, .ghost, .close, .link):focus,
|
|
2982
|
-
|
|
2983
|
-
|
|
2984
|
-
|
|
2985
|
-
outline-color:
|
|
2974
|
+
button[type=submit].danger:not(.secondary, .ghost, .close, .link):focus-visible,
|
|
2975
|
+
input[type=submit].danger:not(.secondary, .ghost, .close, .link):focus,
|
|
2976
|
+
input[type=submit].danger:not(.secondary, .ghost, .close, .link):focus-visible {
|
|
2977
|
+
outline-color: var(--gds-sys-color-focus-outline);
|
|
2986
2978
|
outline-style: solid;
|
|
2979
|
+
outline-width: 0.125rem;
|
|
2980
|
+
outline-offset: 0.125rem;
|
|
2987
2981
|
}
|
|
2988
2982
|
button.primary.danger:disabled, button.primary.danger.disabled, button.primary.danger[aria-disabled=true],
|
|
2989
2983
|
.button.primary.danger:disabled,
|
|
@@ -3038,8 +3032,7 @@ button[type=reset].danger:where(:not(.primary, .tertiary, .ghost, .danger, .clos
|
|
|
3038
3032
|
color: rgb(187, 0, 12);
|
|
3039
3033
|
--color: rgb(187, 0, 12);
|
|
3040
3034
|
border-color: transparent;
|
|
3041
|
-
transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
|
|
3042
|
-
transition: box-shadow 0.3s cubic-bezier(0.23, 1, 0.32, 1);
|
|
3035
|
+
transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1), outline-offset 0s, outline-width 0s;
|
|
3043
3036
|
}
|
|
3044
3037
|
button.danger:where(:not(.primary,
|
|
3045
3038
|
.tertiary,
|
|
@@ -3255,11 +3248,11 @@ button.danger:where(:not(.primary,
|
|
|
3255
3248
|
.link,
|
|
3256
3249
|
[aria-haspopup=listbox],
|
|
3257
3250
|
[aria-haspopup=menu],
|
|
3258
|
-
[role=switch])):focus,
|
|
3259
|
-
a.button.danger:where(:not(.primary, .tertiary, .ghost, .close, .link)):focus,
|
|
3260
|
-
button.secondary.danger:focus,
|
|
3261
|
-
a.button.secondary.danger:focus,
|
|
3262
|
-
input.danger:is([type=button], [type=reset]):focus,
|
|
3251
|
+
[role=switch])):focus:not(:focus-visible),
|
|
3252
|
+
a.button.danger:where(:not(.primary, .tertiary, .ghost, .close, .link)):focus:not(:focus-visible),
|
|
3253
|
+
button.secondary.danger:focus:not(:focus-visible),
|
|
3254
|
+
a.button.secondary.danger:focus:not(:focus-visible),
|
|
3255
|
+
input.danger:is([type=button], [type=reset]):focus:not(:focus-visible),
|
|
3263
3256
|
button[type=button].danger:where(:not(.primary,
|
|
3264
3257
|
.tertiary,
|
|
3265
3258
|
.ghost,
|
|
@@ -3267,12 +3260,10 @@ button[type=button].danger:where(:not(.primary,
|
|
|
3267
3260
|
.close,
|
|
3268
3261
|
.link,
|
|
3269
3262
|
.gds-filter-chip [aria-haspopup=listbox],
|
|
3270
|
-
[aria-haspopup=menu])):focus,
|
|
3271
|
-
button[type=reset].danger:where(:not(.primary, .tertiary, .ghost, .danger, .close, .link)):focus {
|
|
3272
|
-
|
|
3273
|
-
|
|
3274
|
-
outline-color: transparent;
|
|
3275
|
-
outline-style: solid;
|
|
3263
|
+
[aria-haspopup=menu])):focus:not(:focus-visible),
|
|
3264
|
+
button[type=reset].danger:where(:not(.primary, .tertiary, .ghost, .danger, .close, .link)):focus:not(:focus-visible) {
|
|
3265
|
+
box-shadow: none;
|
|
3266
|
+
outline: 0;
|
|
3276
3267
|
}
|
|
3277
3268
|
button.danger:where(:not(.primary,
|
|
3278
3269
|
.tertiary,
|
|
@@ -3282,11 +3273,23 @@ button.danger:where(:not(.primary,
|
|
|
3282
3273
|
.link,
|
|
3283
3274
|
[aria-haspopup=listbox],
|
|
3284
3275
|
[aria-haspopup=menu],
|
|
3285
|
-
[role=switch])):focus,
|
|
3276
|
+
[role=switch])):focus, button.danger:where(:not(.primary,
|
|
3277
|
+
.tertiary,
|
|
3278
|
+
.ghost,
|
|
3279
|
+
.close,
|
|
3280
|
+
.sg-table-sort,
|
|
3281
|
+
.link,
|
|
3282
|
+
[aria-haspopup=listbox],
|
|
3283
|
+
[aria-haspopup=menu],
|
|
3284
|
+
[role=switch])):focus-visible,
|
|
3286
3285
|
a.button.danger:where(:not(.primary, .tertiary, .ghost, .close, .link)):focus,
|
|
3286
|
+
a.button.danger:where(:not(.primary, .tertiary, .ghost, .close, .link)):focus-visible,
|
|
3287
3287
|
button.secondary.danger:focus,
|
|
3288
|
+
button.secondary.danger:focus-visible,
|
|
3288
3289
|
a.button.secondary.danger:focus,
|
|
3290
|
+
a.button.secondary.danger:focus-visible,
|
|
3289
3291
|
input.danger:is([type=button], [type=reset]):focus,
|
|
3292
|
+
input.danger:is([type=button], [type=reset]):focus-visible,
|
|
3290
3293
|
button[type=button].danger:where(:not(.primary,
|
|
3291
3294
|
.tertiary,
|
|
3292
3295
|
.ghost,
|
|
@@ -3295,11 +3298,20 @@ button[type=button].danger:where(:not(.primary,
|
|
|
3295
3298
|
.link,
|
|
3296
3299
|
.gds-filter-chip [aria-haspopup=listbox],
|
|
3297
3300
|
[aria-haspopup=menu])):focus,
|
|
3298
|
-
button[type=
|
|
3299
|
-
|
|
3300
|
-
|
|
3301
|
-
|
|
3302
|
-
|
|
3301
|
+
button[type=button].danger:where(:not(.primary,
|
|
3302
|
+
.tertiary,
|
|
3303
|
+
.ghost,
|
|
3304
|
+
.danger,
|
|
3305
|
+
.close,
|
|
3306
|
+
.link,
|
|
3307
|
+
.gds-filter-chip [aria-haspopup=listbox],
|
|
3308
|
+
[aria-haspopup=menu])):focus-visible,
|
|
3309
|
+
button[type=reset].danger:where(:not(.primary, .tertiary, .ghost, .danger, .close, .link)):focus,
|
|
3310
|
+
button[type=reset].danger:where(:not(.primary, .tertiary, .ghost, .danger, .close, .link)):focus-visible {
|
|
3311
|
+
outline-color: var(--gds-sys-color-focus-outline);
|
|
3312
|
+
outline-style: solid;
|
|
3313
|
+
outline-width: 0.125rem;
|
|
3314
|
+
outline-offset: 0.125rem;
|
|
3303
3315
|
}
|
|
3304
3316
|
|
|
3305
3317
|
button.danger:where(:not(.primary,
|
|
@@ -3317,8 +3329,7 @@ a.button.tertiary.danger {
|
|
|
3317
3329
|
color: rgb(187, 0, 12);
|
|
3318
3330
|
--color: rgb(187, 0, 12);
|
|
3319
3331
|
border-color: transparent;
|
|
3320
|
-
transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
|
|
3321
|
-
transition: box-shadow 0.3s cubic-bezier(0.23, 1, 0.32, 1);
|
|
3332
|
+
transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1), outline-offset 0s, outline-width 0s;
|
|
3322
3333
|
}
|
|
3323
3334
|
button.danger:where(:not(.primary,
|
|
3324
3335
|
.secondary,
|
|
@@ -3444,14 +3455,12 @@ button.danger:where(:not(.primary,
|
|
|
3444
3455
|
.link,
|
|
3445
3456
|
[aria-haspopup=listbox],
|
|
3446
3457
|
[aria-haspopup=menu],
|
|
3447
|
-
[role=switch])):focus,
|
|
3448
|
-
a.button.danger:where(:not(.primary, .secondary, .ghost, .close, .link)):focus,
|
|
3449
|
-
button.tertiary.danger:focus,
|
|
3450
|
-
a.button.tertiary.danger:focus {
|
|
3451
|
-
|
|
3452
|
-
|
|
3453
|
-
outline-color: transparent;
|
|
3454
|
-
outline-style: solid;
|
|
3458
|
+
[role=switch])):focus:not(:focus-visible),
|
|
3459
|
+
a.button.danger:where(:not(.primary, .secondary, .ghost, .close, .link)):focus:not(:focus-visible),
|
|
3460
|
+
button.tertiary.danger:focus:not(:focus-visible),
|
|
3461
|
+
a.button.tertiary.danger:focus:not(:focus-visible) {
|
|
3462
|
+
box-shadow: none;
|
|
3463
|
+
outline: 0;
|
|
3455
3464
|
}
|
|
3456
3465
|
button.danger:where(:not(.primary,
|
|
3457
3466
|
.secondary,
|
|
@@ -3461,17 +3470,130 @@ button.danger:where(:not(.primary,
|
|
|
3461
3470
|
.link,
|
|
3462
3471
|
[aria-haspopup=listbox],
|
|
3463
3472
|
[aria-haspopup=menu],
|
|
3464
|
-
[role=switch])):focus,
|
|
3473
|
+
[role=switch])):focus, button.danger:where(:not(.primary,
|
|
3474
|
+
.secondary,
|
|
3475
|
+
.ghost,
|
|
3476
|
+
.close,
|
|
3477
|
+
.sg-table-sort,
|
|
3478
|
+
.link,
|
|
3479
|
+
[aria-haspopup=listbox],
|
|
3480
|
+
[aria-haspopup=menu],
|
|
3481
|
+
[role=switch])):focus-visible,
|
|
3465
3482
|
a.button.danger:where(:not(.primary, .secondary, .ghost, .close, .link)):focus,
|
|
3483
|
+
a.button.danger:where(:not(.primary, .secondary, .ghost, .close, .link)):focus-visible,
|
|
3466
3484
|
button.tertiary.danger:focus,
|
|
3467
|
-
|
|
3468
|
-
|
|
3469
|
-
|
|
3470
|
-
outline-color:
|
|
3485
|
+
button.tertiary.danger:focus-visible,
|
|
3486
|
+
a.button.tertiary.danger:focus,
|
|
3487
|
+
a.button.tertiary.danger:focus-visible {
|
|
3488
|
+
outline-color: var(--gds-sys-color-focus-outline);
|
|
3471
3489
|
outline-style: solid;
|
|
3490
|
+
outline-width: 0.125rem;
|
|
3491
|
+
outline-offset: 0.125rem;
|
|
3472
3492
|
}
|
|
3473
3493
|
|
|
3474
|
-
|
|
3494
|
+
.close {
|
|
3495
|
+
/* smartphones, touchscreens */
|
|
3496
|
+
font-size: 0;
|
|
3497
|
+
background: hsla(var(--background-hsl), 0);
|
|
3498
|
+
border: 0;
|
|
3499
|
+
border-radius: 50%;
|
|
3500
|
+
content: "";
|
|
3501
|
+
cursor: pointer;
|
|
3502
|
+
display: flex;
|
|
3503
|
+
font-family: inherit;
|
|
3504
|
+
height: 2rem;
|
|
3505
|
+
position: relative;
|
|
3506
|
+
width: 2rem;
|
|
3507
|
+
}
|
|
3508
|
+
@media (hover: none) and (pointer: coarse) {
|
|
3509
|
+
.close:not(:disabled):not(.disabled) {
|
|
3510
|
+
padding: 0.375rem;
|
|
3511
|
+
height: 2.75rem;
|
|
3512
|
+
width: 2.75rem;
|
|
3513
|
+
}
|
|
3514
|
+
.close:not(:disabled):not(.disabled) > i {
|
|
3515
|
+
background: var(--gds-ref-pallet-base200);
|
|
3516
|
+
height: 2rem;
|
|
3517
|
+
width: 2rem;
|
|
3518
|
+
border-radius: 50%;
|
|
3519
|
+
position: relative;
|
|
3520
|
+
}
|
|
3521
|
+
.close:not(:disabled):not(.disabled) > div::after, .close:not(:disabled):not(.disabled) > div::before {
|
|
3522
|
+
height: 0.789375rem;
|
|
3523
|
+
width: 0.130625rem;
|
|
3524
|
+
top: 0.625rem;
|
|
3525
|
+
}
|
|
3526
|
+
}
|
|
3527
|
+
.close:focus:not(:focus-visible) {
|
|
3528
|
+
box-shadow: none;
|
|
3529
|
+
outline: 0;
|
|
3530
|
+
}
|
|
3531
|
+
.close:focus, .close:focus-visible i {
|
|
3532
|
+
outline-color: var(--gds-sys-color-focus-outline);
|
|
3533
|
+
outline-style: solid;
|
|
3534
|
+
outline-width: 0.125rem;
|
|
3535
|
+
outline-offset: 0.125rem;
|
|
3536
|
+
}
|
|
3537
|
+
.close > i {
|
|
3538
|
+
border-radius: var(--gds-sys-shape-corner-round);
|
|
3539
|
+
display: block;
|
|
3540
|
+
width: 100%;
|
|
3541
|
+
height: 100%;
|
|
3542
|
+
}
|
|
3543
|
+
.close > i::after, .close > i::before {
|
|
3544
|
+
background: var(--gds-sys-color-font);
|
|
3545
|
+
content: "";
|
|
3546
|
+
display: block;
|
|
3547
|
+
height: 0.789375rem;
|
|
3548
|
+
width: 0.130625rem;
|
|
3549
|
+
border-radius: 0.5px;
|
|
3550
|
+
left: calc(50% - 0.0625rem);
|
|
3551
|
+
position: absolute;
|
|
3552
|
+
top: 0.625rem;
|
|
3553
|
+
}
|
|
3554
|
+
.close > i::after {
|
|
3555
|
+
transform: rotateZ(45deg);
|
|
3556
|
+
}
|
|
3557
|
+
.close > i::before {
|
|
3558
|
+
transform: rotateZ(-45deg);
|
|
3559
|
+
}
|
|
3560
|
+
.close > svg path {
|
|
3561
|
+
fill: var(--gds-sys-color-font);
|
|
3562
|
+
}
|
|
3563
|
+
@media (min-width: 48em) {
|
|
3564
|
+
.close:not(:disabled, .disabled):hover > i {
|
|
3565
|
+
background: var(--gds-ref-pallet-base300);
|
|
3566
|
+
}
|
|
3567
|
+
.close:not(:disabled, .disabled):hover:active > i {
|
|
3568
|
+
background: var(--gds-ref-pallet-base500);
|
|
3569
|
+
}
|
|
3570
|
+
}
|
|
3571
|
+
|
|
3572
|
+
:host([open]) dialog {
|
|
3573
|
+
opacity: 1;
|
|
3574
|
+
transform: translate3d(0, 0, 0);
|
|
3575
|
+
visibility: visible;
|
|
3576
|
+
}
|
|
3577
|
+
|
|
3578
|
+
header {
|
|
3579
|
+
border-bottom: 1px solid var(--border-color);
|
|
3580
|
+
display: flex;
|
|
3581
|
+
padding: 0.5rem 0.75rem;
|
|
3582
|
+
}
|
|
3583
|
+
@media (min-width: 36em) {
|
|
3584
|
+
header {
|
|
3585
|
+
display: none;
|
|
3586
|
+
}
|
|
3587
|
+
}
|
|
3588
|
+
|
|
3589
|
+
header h2 {
|
|
3590
|
+
flex-grow: 1;
|
|
3591
|
+
font-weight: 500;
|
|
3592
|
+
line-height: 1.5;
|
|
3593
|
+
margin: 0;
|
|
3594
|
+
}
|
|
3595
|
+
|
|
3596
|
+
dialog {
|
|
3475
3597
|
--z-index: var(--sg-z-index-popover);
|
|
3476
3598
|
max-height: calc(100% - 1rem);
|
|
3477
3599
|
background-color: var(--sg-popover-background);
|
|
@@ -3482,10 +3604,13 @@ a.button.tertiary.danger:focus {
|
|
|
3482
3604
|
position: fixed;
|
|
3483
3605
|
visibility: hidden;
|
|
3484
3606
|
z-index: var(--z-index);
|
|
3607
|
+
border-width: 0;
|
|
3485
3608
|
overflow: hidden;
|
|
3609
|
+
padding: 0;
|
|
3610
|
+
right: 0;
|
|
3486
3611
|
}
|
|
3487
|
-
@media (max-width:
|
|
3488
|
-
|
|
3612
|
+
@media (max-width: 35.98em) {
|
|
3613
|
+
dialog {
|
|
3489
3614
|
border-top: solid var(--sg-border-width) var(--sg-border-color);
|
|
3490
3615
|
--border-color: var(--sg-border-color);
|
|
3491
3616
|
padding-bottom: 0.5rem;
|
|
@@ -3493,17 +3618,16 @@ a.button.tertiary.danger:focus {
|
|
|
3493
3618
|
bottom: 0;
|
|
3494
3619
|
box-shadow: 0 -0.25rem 1rem rgba(0, 0, 0, 0.1);
|
|
3495
3620
|
left: 0;
|
|
3496
|
-
transform: translate3d(0, 100%, 0);
|
|
3497
3621
|
transition: all 300ms ease-in-out;
|
|
3498
3622
|
width: 100%;
|
|
3499
3623
|
}
|
|
3500
3624
|
}
|
|
3501
|
-
@media (min-width:
|
|
3502
|
-
|
|
3625
|
+
@media (min-width: 36em) {
|
|
3626
|
+
dialog {
|
|
3503
3627
|
padding-bottom: 0;
|
|
3504
3628
|
border: solid var(--sg-border-width) var(--sg-border-color);
|
|
3505
|
-
--border-color: var(--
|
|
3506
|
-
--sg-border-color: var(--
|
|
3629
|
+
--border-color: var(--gds-ref-pallet-base800);
|
|
3630
|
+
--sg-border-color: var(--gds-ref-pallet-base800);
|
|
3507
3631
|
border-radius: var(--sg-border-radius);
|
|
3508
3632
|
max-height: 400px;
|
|
3509
3633
|
box-shadow: var(--sg-popover-box-shadow);
|
|
@@ -3511,30 +3635,45 @@ a.button.tertiary.danger:focus {
|
|
|
3511
3635
|
position: absolute;
|
|
3512
3636
|
}
|
|
3513
3637
|
}
|
|
3514
|
-
|
|
3638
|
+
dialog > [role=listbox] {
|
|
3515
3639
|
width: 100%;
|
|
3516
3640
|
overflow-y: auto;
|
|
3517
3641
|
}
|
|
3518
|
-
|
|
3642
|
+
dialog.active {
|
|
3519
3643
|
opacity: 1;
|
|
3520
|
-
transform: translate3d(0, 0, 0);
|
|
3521
3644
|
visibility: visible;
|
|
3522
3645
|
}
|
|
3523
|
-
|
|
3646
|
+
dialog .close {
|
|
3524
3647
|
margin: 0.25rem;
|
|
3525
3648
|
flex-shrink: 0;
|
|
3526
3649
|
align-self: flex-end;
|
|
3527
3650
|
}
|
|
3528
|
-
@media (min-width:
|
|
3529
|
-
|
|
3651
|
+
@media (min-width: 36em) {
|
|
3652
|
+
dialog .close {
|
|
3530
3653
|
display: none;
|
|
3531
3654
|
}
|
|
3532
3655
|
}
|
|
3656
|
+
@media (max-width: 35.98em) {
|
|
3657
|
+
dialog {
|
|
3658
|
+
border-radius: 1rem;
|
|
3659
|
+
}
|
|
3660
|
+
}
|
|
3661
|
+
@media (min-width: 36em) {
|
|
3662
|
+
dialog {
|
|
3663
|
+
inset: auto;
|
|
3664
|
+
position: fixed;
|
|
3665
|
+
}
|
|
3666
|
+
}
|
|
3533
3667
|
|
|
3534
|
-
|
|
3535
|
-
|
|
3536
|
-
|
|
3537
|
-
|
|
3668
|
+
dialog::backdrop {
|
|
3669
|
+
background-color: rgba(0, 0, 0, 0.2);
|
|
3670
|
+
display: block;
|
|
3671
|
+
position: fixed;
|
|
3672
|
+
}
|
|
3673
|
+
@media (min-width: 36em) {
|
|
3674
|
+
dialog::backdrop {
|
|
3675
|
+
opacity: 0;
|
|
3676
|
+
}
|
|
3538
3677
|
}`;
|
|
3539
3678
|
|
|
3540
3679
|
// libs/core/src/primitives/popover/popover.trans.styles.ts
|
|
@@ -3543,8 +3682,7 @@ function register2() {
|
|
|
3543
3682
|
}
|
|
3544
3683
|
|
|
3545
3684
|
// libs/core/src/components/dropdown/dropdown.trans.styles.scss
|
|
3546
|
-
var dropdown_trans_styles_default =
|
|
3547
|
-
/**
|
|
3685
|
+
var dropdown_trans_styles_default = `/**
|
|
3548
3686
|
* Calculate the luminance for a color.
|
|
3549
3687
|
* See https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests
|
|
3550
3688
|
*/
|
|
@@ -3557,6 +3695,10 @@ var dropdown_trans_styles_default = `
|
|
|
3557
3695
|
/* stylelint-disable */
|
|
3558
3696
|
/* stylelint-enable */
|
|
3559
3697
|
/* stylelint-disable */
|
|
3698
|
+
/**
|
|
3699
|
+
* @deprecated
|
|
3700
|
+
* Use \`add-focus\` instead
|
|
3701
|
+
*/
|
|
3560
3702
|
/** add background color, color and border-color to element when it has focus-visible i.e. tab focus */
|
|
3561
3703
|
button,
|
|
3562
3704
|
input[type=button],
|
|
@@ -3587,7 +3729,6 @@ input:where([type=button], [type=submit], [type=reset]),
|
|
|
3587
3729
|
border-radius: var(--sg-border-radius);
|
|
3588
3730
|
border: solid var(--sg-border-width) var(--sg-border-color);
|
|
3589
3731
|
font-weight: 500;
|
|
3590
|
-
transition: box-shadow 0.3s cubic-bezier(0.23, 1, 0.32, 1);
|
|
3591
3732
|
min-height: 2.75rem;
|
|
3592
3733
|
align-items: center;
|
|
3593
3734
|
display: inline-flex;
|
|
@@ -3599,20 +3740,6 @@ button:where(:not(.link,
|
|
|
3599
3740
|
[aria-haspopup=listbox],
|
|
3600
3741
|
[aria-haspopup=menu],
|
|
3601
3742
|
[role=switch],
|
|
3602
|
-
.gds-filter-chip)):focus,
|
|
3603
|
-
input:where([type=button], [type=submit], [type=reset]):focus,
|
|
3604
|
-
.button:focus {
|
|
3605
|
-
border-color: rgb(0, 122, 199);
|
|
3606
|
-
box-shadow: 0 0 0.25rem 0.0625rem rgb(65, 176, 238);
|
|
3607
|
-
outline-color: transparent;
|
|
3608
|
-
outline-style: solid;
|
|
3609
|
-
}
|
|
3610
|
-
button:where(:not(.link,
|
|
3611
|
-
.close,
|
|
3612
|
-
.sg-table-sort,
|
|
3613
|
-
[aria-haspopup=listbox],
|
|
3614
|
-
[aria-haspopup=menu],
|
|
3615
|
-
[role=switch],
|
|
3616
3743
|
.gds-filter-chip)):focus:not(:focus-visible),
|
|
3617
3744
|
input:where([type=button], [type=submit], [type=reset]):focus:not(:focus-visible),
|
|
3618
3745
|
.button:focus:not(:focus-visible) {
|
|
@@ -3625,15 +3752,23 @@ button:where(:not(.link,
|
|
|
3625
3752
|
[aria-haspopup=listbox],
|
|
3626
3753
|
[aria-haspopup=menu],
|
|
3627
3754
|
[role=switch],
|
|
3755
|
+
.gds-filter-chip)):focus, button:where(:not(.link,
|
|
3756
|
+
.close,
|
|
3757
|
+
.sg-table-sort,
|
|
3758
|
+
[aria-haspopup=listbox],
|
|
3759
|
+
[aria-haspopup=menu],
|
|
3760
|
+
[role=switch],
|
|
3628
3761
|
.gds-filter-chip)):focus-visible,
|
|
3762
|
+
input:where([type=button], [type=submit], [type=reset]):focus,
|
|
3629
3763
|
input:where([type=button], [type=submit], [type=reset]):focus-visible,
|
|
3764
|
+
.button:focus,
|
|
3630
3765
|
.button:focus-visible {
|
|
3631
|
-
|
|
3632
|
-
box-shadow: 0 0 0.25rem 0.0625rem rgb(65, 176, 238);
|
|
3633
|
-
outline-color: transparent;
|
|
3766
|
+
outline-color: var(--gds-sys-color-focus-outline);
|
|
3634
3767
|
outline-style: solid;
|
|
3768
|
+
outline-width: 0.125rem;
|
|
3769
|
+
outline-offset: 0.125rem;
|
|
3635
3770
|
}
|
|
3636
|
-
@media (max-width:
|
|
3771
|
+
@media (max-width: 35.98em) {
|
|
3637
3772
|
button:where(:not(.link,
|
|
3638
3773
|
.close,
|
|
3639
3774
|
.sg-table-sort,
|
|
@@ -3712,8 +3847,7 @@ button[type=button]:where(:not(.primary,
|
|
|
3712
3847
|
[aria-haspopup=listbox],
|
|
3713
3848
|
[aria-haspopup=menu])),
|
|
3714
3849
|
button[type=reset]:where(:not(.primary, .tertiary, .ghost, .danger, .close, .link)) {
|
|
3715
|
-
transition:
|
|
3716
|
-
transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
|
|
3850
|
+
transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1), outline-offset 0s, outline-width 0s;
|
|
3717
3851
|
background: transparent;
|
|
3718
3852
|
border-color: rgb(0, 122, 199);
|
|
3719
3853
|
color: rgb(0, 122, 199);
|
|
@@ -3729,36 +3863,6 @@ button:where(:not(.primary,
|
|
|
3729
3863
|
[aria-haspopup=listbox],
|
|
3730
3864
|
[aria-haspopup=menu],
|
|
3731
3865
|
[role=switch],
|
|
3732
|
-
.gds-filter-chip)):focus,
|
|
3733
|
-
a.button:where(:not(.primary, .tertiary, .ghost, .danger, .close, .link)):focus,
|
|
3734
|
-
button.secondary:focus,
|
|
3735
|
-
a.button.secondary:focus,
|
|
3736
|
-
input:is([type=button], [type=reset]):focus,
|
|
3737
|
-
button[type=button]:where(:not(.primary,
|
|
3738
|
-
.tertiary,
|
|
3739
|
-
.ghost,
|
|
3740
|
-
.danger,
|
|
3741
|
-
.close,
|
|
3742
|
-
.link,
|
|
3743
|
-
.icon,
|
|
3744
|
-
[aria-haspopup=listbox],
|
|
3745
|
-
[aria-haspopup=menu])):focus,
|
|
3746
|
-
button[type=reset]:where(:not(.primary, .tertiary, .ghost, .danger, .close, .link)):focus {
|
|
3747
|
-
border-color: rgb(0, 122, 199);
|
|
3748
|
-
box-shadow: 0 0 0.25rem 0.0625rem rgb(65, 176, 238);
|
|
3749
|
-
outline-color: transparent;
|
|
3750
|
-
outline-style: solid;
|
|
3751
|
-
}
|
|
3752
|
-
button:where(:not(.primary,
|
|
3753
|
-
.tertiary,
|
|
3754
|
-
.ghost,
|
|
3755
|
-
.danger,
|
|
3756
|
-
.close,
|
|
3757
|
-
.sg-table-sort,
|
|
3758
|
-
.link,
|
|
3759
|
-
[aria-haspopup=listbox],
|
|
3760
|
-
[aria-haspopup=menu],
|
|
3761
|
-
[role=switch],
|
|
3762
3866
|
.gds-filter-chip)):focus:not(:focus-visible),
|
|
3763
3867
|
a.button:where(:not(.primary, .tertiary, .ghost, .danger, .close, .link)):focus:not(:focus-visible),
|
|
3764
3868
|
button.secondary:focus:not(:focus-visible),
|
|
@@ -3787,10 +3891,24 @@ button:where(:not(.primary,
|
|
|
3787
3891
|
[aria-haspopup=listbox],
|
|
3788
3892
|
[aria-haspopup=menu],
|
|
3789
3893
|
[role=switch],
|
|
3894
|
+
.gds-filter-chip)):focus, button:where(:not(.primary,
|
|
3895
|
+
.tertiary,
|
|
3896
|
+
.ghost,
|
|
3897
|
+
.danger,
|
|
3898
|
+
.close,
|
|
3899
|
+
.sg-table-sort,
|
|
3900
|
+
.link,
|
|
3901
|
+
[aria-haspopup=listbox],
|
|
3902
|
+
[aria-haspopup=menu],
|
|
3903
|
+
[role=switch],
|
|
3790
3904
|
.gds-filter-chip)):focus-visible,
|
|
3905
|
+
a.button:where(:not(.primary, .tertiary, .ghost, .danger, .close, .link)):focus,
|
|
3791
3906
|
a.button:where(:not(.primary, .tertiary, .ghost, .danger, .close, .link)):focus-visible,
|
|
3907
|
+
button.secondary:focus,
|
|
3792
3908
|
button.secondary:focus-visible,
|
|
3909
|
+
a.button.secondary:focus,
|
|
3793
3910
|
a.button.secondary:focus-visible,
|
|
3911
|
+
input:is([type=button], [type=reset]):focus,
|
|
3794
3912
|
input:is([type=button], [type=reset]):focus-visible,
|
|
3795
3913
|
button[type=button]:where(:not(.primary,
|
|
3796
3914
|
.tertiary,
|
|
@@ -3800,12 +3918,22 @@ button[type=button]:where(:not(.primary,
|
|
|
3800
3918
|
.link,
|
|
3801
3919
|
.icon,
|
|
3802
3920
|
[aria-haspopup=listbox],
|
|
3921
|
+
[aria-haspopup=menu])):focus,
|
|
3922
|
+
button[type=button]:where(:not(.primary,
|
|
3923
|
+
.tertiary,
|
|
3924
|
+
.ghost,
|
|
3925
|
+
.danger,
|
|
3926
|
+
.close,
|
|
3927
|
+
.link,
|
|
3928
|
+
.icon,
|
|
3929
|
+
[aria-haspopup=listbox],
|
|
3803
3930
|
[aria-haspopup=menu])):focus-visible,
|
|
3931
|
+
button[type=reset]:where(:not(.primary, .tertiary, .ghost, .danger, .close, .link)):focus,
|
|
3804
3932
|
button[type=reset]:where(:not(.primary, .tertiary, .ghost, .danger, .close, .link)):focus-visible {
|
|
3805
|
-
|
|
3806
|
-
box-shadow: 0 0 0.25rem 0.0625rem rgb(65, 176, 238);
|
|
3807
|
-
outline-color: transparent;
|
|
3933
|
+
outline-color: var(--gds-sys-color-focus-outline);
|
|
3808
3934
|
outline-style: solid;
|
|
3935
|
+
outline-width: 0.125rem;
|
|
3936
|
+
outline-offset: 0.125rem;
|
|
3809
3937
|
}
|
|
3810
3938
|
button:where(:not(.primary,
|
|
3811
3939
|
.tertiary,
|
|
@@ -4132,8 +4260,7 @@ button:where(:not(.primary,
|
|
|
4132
4260
|
a.button:where(:not(.primary, .secondary, .ghost, .close, .link)),
|
|
4133
4261
|
button.tertiary,
|
|
4134
4262
|
a.button.tertiary {
|
|
4135
|
-
transition:
|
|
4136
|
-
transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
|
|
4263
|
+
transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1), outline-offset 0s, outline-width 0s;
|
|
4137
4264
|
background: transparent;
|
|
4138
4265
|
border-color: transparent;
|
|
4139
4266
|
color: rgb(0, 122, 199);
|
|
@@ -4149,14 +4276,12 @@ button:where(:not(.primary,
|
|
|
4149
4276
|
[aria-haspopup=listbox],
|
|
4150
4277
|
[aria-haspopup=menu],
|
|
4151
4278
|
[role=switch],
|
|
4152
|
-
.gds-filter-chip)):focus,
|
|
4153
|
-
a.button:where(:not(.primary, .secondary, .ghost, .close, .link)):focus,
|
|
4154
|
-
button.tertiary:focus,
|
|
4155
|
-
a.button.tertiary:focus {
|
|
4156
|
-
|
|
4157
|
-
|
|
4158
|
-
outline-color: transparent;
|
|
4159
|
-
outline-style: solid;
|
|
4279
|
+
.gds-filter-chip)):focus:not(:focus-visible),
|
|
4280
|
+
a.button:where(:not(.primary, .secondary, .ghost, .close, .link)):focus:not(:focus-visible),
|
|
4281
|
+
button.tertiary:focus:not(:focus-visible),
|
|
4282
|
+
a.button.tertiary:focus:not(:focus-visible) {
|
|
4283
|
+
box-shadow: none;
|
|
4284
|
+
outline: 0;
|
|
4160
4285
|
}
|
|
4161
4286
|
button:where(:not(.primary,
|
|
4162
4287
|
.secondary,
|
|
@@ -4168,14 +4293,7 @@ button:where(:not(.primary,
|
|
|
4168
4293
|
[aria-haspopup=listbox],
|
|
4169
4294
|
[aria-haspopup=menu],
|
|
4170
4295
|
[role=switch],
|
|
4171
|
-
.gds-filter-chip)):focus:not(
|
|
4172
|
-
a.button:where(:not(.primary, .secondary, .ghost, .close, .link)):focus:not(:focus-visible),
|
|
4173
|
-
button.tertiary:focus:not(:focus-visible),
|
|
4174
|
-
a.button.tertiary:focus:not(:focus-visible) {
|
|
4175
|
-
box-shadow: none;
|
|
4176
|
-
outline: 0;
|
|
4177
|
-
}
|
|
4178
|
-
button:where(:not(.primary,
|
|
4296
|
+
.gds-filter-chip)):focus, button:where(:not(.primary,
|
|
4179
4297
|
.secondary,
|
|
4180
4298
|
.ghost,
|
|
4181
4299
|
.danger,
|
|
@@ -4186,13 +4304,16 @@ button:where(:not(.primary,
|
|
|
4186
4304
|
[aria-haspopup=menu],
|
|
4187
4305
|
[role=switch],
|
|
4188
4306
|
.gds-filter-chip)):focus-visible,
|
|
4307
|
+
a.button:where(:not(.primary, .secondary, .ghost, .close, .link)):focus,
|
|
4189
4308
|
a.button:where(:not(.primary, .secondary, .ghost, .close, .link)):focus-visible,
|
|
4309
|
+
button.tertiary:focus,
|
|
4190
4310
|
button.tertiary:focus-visible,
|
|
4311
|
+
a.button.tertiary:focus,
|
|
4191
4312
|
a.button.tertiary:focus-visible {
|
|
4192
|
-
|
|
4193
|
-
box-shadow: 0 0 0.25rem 0.0625rem rgb(65, 176, 238);
|
|
4194
|
-
outline-color: transparent;
|
|
4313
|
+
outline-color: var(--gds-sys-color-focus-outline);
|
|
4195
4314
|
outline-style: solid;
|
|
4315
|
+
outline-width: 0.125rem;
|
|
4316
|
+
outline-offset: 0.125rem;
|
|
4196
4317
|
}
|
|
4197
4318
|
button:where(:not(.primary,
|
|
4198
4319
|
.secondary,
|
|
@@ -4383,7 +4504,7 @@ button[type=submit]:not(.secondary,
|
|
|
4383
4504
|
.gds-filter-chip),
|
|
4384
4505
|
input[type=submit]:not(.secondary, .ghost, .danger, .close, .link),
|
|
4385
4506
|
a.button.primary {
|
|
4386
|
-
transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
|
|
4507
|
+
transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1), outline-offset 0s, outline-width 0s;
|
|
4387
4508
|
background: rgb(0, 122, 199);
|
|
4388
4509
|
border-color: rgb(0, 122, 199);
|
|
4389
4510
|
color: #fff;
|
|
@@ -4539,7 +4660,7 @@ a.button.primary[aria-disabled=true]::placeholder {
|
|
|
4539
4660
|
|
|
4540
4661
|
button.ghost,
|
|
4541
4662
|
.button.ghost {
|
|
4542
|
-
transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
|
|
4663
|
+
transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1), outline-offset 0s, outline-width 0s;
|
|
4543
4664
|
border-color: rgb(51, 51, 51);
|
|
4544
4665
|
color: rgb(51, 51, 51);
|
|
4545
4666
|
--color: rgb(51, 51, 51);
|
|
@@ -4667,8 +4788,7 @@ input[type=submit].danger:not(.secondary, .ghost, .close, .link) {
|
|
|
4667
4788
|
border-color: rgb(187, 0, 12);
|
|
4668
4789
|
color: #fff;
|
|
4669
4790
|
--color: #fff;
|
|
4670
|
-
transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
|
|
4671
|
-
transition: box-shadow 0.3s cubic-bezier(0.23, 1, 0.32, 1);
|
|
4791
|
+
transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1), outline-offset 0s, outline-width 0s;
|
|
4672
4792
|
}
|
|
4673
4793
|
button.primary.danger:not(:disabled, .disabled, [aria-disabled]):hover,
|
|
4674
4794
|
.button.primary.danger:not(:disabled, .disabled, [aria-disabled]):hover,
|
|
@@ -4714,23 +4834,24 @@ input[type=submit].danger:not(.secondary, .ghost, .close, .link).active:hover,
|
|
|
4714
4834
|
input[type=submit].danger:not(.secondary, .ghost, .close, .link):active:hover {
|
|
4715
4835
|
opacity: 0.9;
|
|
4716
4836
|
}
|
|
4717
|
-
button.primary.danger:focus,
|
|
4718
|
-
.button.primary.danger:focus,
|
|
4719
|
-
button[type=submit].danger:not(.secondary, .ghost, .close, .link):focus,
|
|
4720
|
-
input[type=submit].danger:not(.secondary, .ghost, .close, .link):focus {
|
|
4721
|
-
|
|
4722
|
-
|
|
4723
|
-
outline-color: transparent;
|
|
4724
|
-
outline-style: solid;
|
|
4837
|
+
button.primary.danger:focus:not(:focus-visible),
|
|
4838
|
+
.button.primary.danger:focus:not(:focus-visible),
|
|
4839
|
+
button[type=submit].danger:not(.secondary, .ghost, .close, .link):focus:not(:focus-visible),
|
|
4840
|
+
input[type=submit].danger:not(.secondary, .ghost, .close, .link):focus:not(:focus-visible) {
|
|
4841
|
+
box-shadow: none;
|
|
4842
|
+
outline: 0;
|
|
4725
4843
|
}
|
|
4726
|
-
button.primary.danger:focus,
|
|
4844
|
+
button.primary.danger:focus, button.primary.danger:focus-visible,
|
|
4727
4845
|
.button.primary.danger:focus,
|
|
4846
|
+
.button.primary.danger:focus-visible,
|
|
4728
4847
|
button[type=submit].danger:not(.secondary, .ghost, .close, .link):focus,
|
|
4729
|
-
|
|
4730
|
-
|
|
4731
|
-
|
|
4732
|
-
outline-color:
|
|
4848
|
+
button[type=submit].danger:not(.secondary, .ghost, .close, .link):focus-visible,
|
|
4849
|
+
input[type=submit].danger:not(.secondary, .ghost, .close, .link):focus,
|
|
4850
|
+
input[type=submit].danger:not(.secondary, .ghost, .close, .link):focus-visible {
|
|
4851
|
+
outline-color: var(--gds-sys-color-focus-outline);
|
|
4733
4852
|
outline-style: solid;
|
|
4853
|
+
outline-width: 0.125rem;
|
|
4854
|
+
outline-offset: 0.125rem;
|
|
4734
4855
|
}
|
|
4735
4856
|
button.primary.danger:disabled, button.primary.danger.disabled, button.primary.danger[aria-disabled=true],
|
|
4736
4857
|
.button.primary.danger:disabled,
|
|
@@ -4785,8 +4906,7 @@ button[type=reset].danger:where(:not(.primary, .tertiary, .ghost, .danger, .clos
|
|
|
4785
4906
|
color: rgb(187, 0, 12);
|
|
4786
4907
|
--color: rgb(187, 0, 12);
|
|
4787
4908
|
border-color: transparent;
|
|
4788
|
-
transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
|
|
4789
|
-
transition: box-shadow 0.3s cubic-bezier(0.23, 1, 0.32, 1);
|
|
4909
|
+
transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1), outline-offset 0s, outline-width 0s;
|
|
4790
4910
|
}
|
|
4791
4911
|
button.danger:where(:not(.primary,
|
|
4792
4912
|
.tertiary,
|
|
@@ -5002,11 +5122,11 @@ button.danger:where(:not(.primary,
|
|
|
5002
5122
|
.link,
|
|
5003
5123
|
[aria-haspopup=listbox],
|
|
5004
5124
|
[aria-haspopup=menu],
|
|
5005
|
-
[role=switch])):focus,
|
|
5006
|
-
a.button.danger:where(:not(.primary, .tertiary, .ghost, .close, .link)):focus,
|
|
5007
|
-
button.secondary.danger:focus,
|
|
5008
|
-
a.button.secondary.danger:focus,
|
|
5009
|
-
input.danger:is([type=button], [type=reset]):focus,
|
|
5125
|
+
[role=switch])):focus:not(:focus-visible),
|
|
5126
|
+
a.button.danger:where(:not(.primary, .tertiary, .ghost, .close, .link)):focus:not(:focus-visible),
|
|
5127
|
+
button.secondary.danger:focus:not(:focus-visible),
|
|
5128
|
+
a.button.secondary.danger:focus:not(:focus-visible),
|
|
5129
|
+
input.danger:is([type=button], [type=reset]):focus:not(:focus-visible),
|
|
5010
5130
|
button[type=button].danger:where(:not(.primary,
|
|
5011
5131
|
.tertiary,
|
|
5012
5132
|
.ghost,
|
|
@@ -5014,12 +5134,10 @@ button[type=button].danger:where(:not(.primary,
|
|
|
5014
5134
|
.close,
|
|
5015
5135
|
.link,
|
|
5016
5136
|
.gds-filter-chip [aria-haspopup=listbox],
|
|
5017
|
-
[aria-haspopup=menu])):focus,
|
|
5018
|
-
button[type=reset].danger:where(:not(.primary, .tertiary, .ghost, .danger, .close, .link)):focus {
|
|
5019
|
-
|
|
5020
|
-
|
|
5021
|
-
outline-color: transparent;
|
|
5022
|
-
outline-style: solid;
|
|
5137
|
+
[aria-haspopup=menu])):focus:not(:focus-visible),
|
|
5138
|
+
button[type=reset].danger:where(:not(.primary, .tertiary, .ghost, .danger, .close, .link)):focus:not(:focus-visible) {
|
|
5139
|
+
box-shadow: none;
|
|
5140
|
+
outline: 0;
|
|
5023
5141
|
}
|
|
5024
5142
|
button.danger:where(:not(.primary,
|
|
5025
5143
|
.tertiary,
|
|
@@ -5029,11 +5147,23 @@ button.danger:where(:not(.primary,
|
|
|
5029
5147
|
.link,
|
|
5030
5148
|
[aria-haspopup=listbox],
|
|
5031
5149
|
[aria-haspopup=menu],
|
|
5032
|
-
[role=switch])):focus,
|
|
5150
|
+
[role=switch])):focus, button.danger:where(:not(.primary,
|
|
5151
|
+
.tertiary,
|
|
5152
|
+
.ghost,
|
|
5153
|
+
.close,
|
|
5154
|
+
.sg-table-sort,
|
|
5155
|
+
.link,
|
|
5156
|
+
[aria-haspopup=listbox],
|
|
5157
|
+
[aria-haspopup=menu],
|
|
5158
|
+
[role=switch])):focus-visible,
|
|
5033
5159
|
a.button.danger:where(:not(.primary, .tertiary, .ghost, .close, .link)):focus,
|
|
5160
|
+
a.button.danger:where(:not(.primary, .tertiary, .ghost, .close, .link)):focus-visible,
|
|
5034
5161
|
button.secondary.danger:focus,
|
|
5162
|
+
button.secondary.danger:focus-visible,
|
|
5035
5163
|
a.button.secondary.danger:focus,
|
|
5164
|
+
a.button.secondary.danger:focus-visible,
|
|
5036
5165
|
input.danger:is([type=button], [type=reset]):focus,
|
|
5166
|
+
input.danger:is([type=button], [type=reset]):focus-visible,
|
|
5037
5167
|
button[type=button].danger:where(:not(.primary,
|
|
5038
5168
|
.tertiary,
|
|
5039
5169
|
.ghost,
|
|
@@ -5042,11 +5172,20 @@ button[type=button].danger:where(:not(.primary,
|
|
|
5042
5172
|
.link,
|
|
5043
5173
|
.gds-filter-chip [aria-haspopup=listbox],
|
|
5044
5174
|
[aria-haspopup=menu])):focus,
|
|
5045
|
-
button[type=
|
|
5046
|
-
|
|
5047
|
-
|
|
5048
|
-
|
|
5175
|
+
button[type=button].danger:where(:not(.primary,
|
|
5176
|
+
.tertiary,
|
|
5177
|
+
.ghost,
|
|
5178
|
+
.danger,
|
|
5179
|
+
.close,
|
|
5180
|
+
.link,
|
|
5181
|
+
.gds-filter-chip [aria-haspopup=listbox],
|
|
5182
|
+
[aria-haspopup=menu])):focus-visible,
|
|
5183
|
+
button[type=reset].danger:where(:not(.primary, .tertiary, .ghost, .danger, .close, .link)):focus,
|
|
5184
|
+
button[type=reset].danger:where(:not(.primary, .tertiary, .ghost, .danger, .close, .link)):focus-visible {
|
|
5185
|
+
outline-color: var(--gds-sys-color-focus-outline);
|
|
5049
5186
|
outline-style: solid;
|
|
5187
|
+
outline-width: 0.125rem;
|
|
5188
|
+
outline-offset: 0.125rem;
|
|
5050
5189
|
}
|
|
5051
5190
|
|
|
5052
5191
|
button.danger:where(:not(.primary,
|
|
@@ -5064,8 +5203,7 @@ a.button.tertiary.danger {
|
|
|
5064
5203
|
color: rgb(187, 0, 12);
|
|
5065
5204
|
--color: rgb(187, 0, 12);
|
|
5066
5205
|
border-color: transparent;
|
|
5067
|
-
transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
|
|
5068
|
-
transition: box-shadow 0.3s cubic-bezier(0.23, 1, 0.32, 1);
|
|
5206
|
+
transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1), outline-offset 0s, outline-width 0s;
|
|
5069
5207
|
}
|
|
5070
5208
|
button.danger:where(:not(.primary,
|
|
5071
5209
|
.secondary,
|
|
@@ -5191,14 +5329,12 @@ button.danger:where(:not(.primary,
|
|
|
5191
5329
|
.link,
|
|
5192
5330
|
[aria-haspopup=listbox],
|
|
5193
5331
|
[aria-haspopup=menu],
|
|
5194
|
-
[role=switch])):focus,
|
|
5195
|
-
a.button.danger:where(:not(.primary, .secondary, .ghost, .close, .link)):focus,
|
|
5196
|
-
button.tertiary.danger:focus,
|
|
5197
|
-
a.button.tertiary.danger:focus {
|
|
5198
|
-
|
|
5199
|
-
|
|
5200
|
-
outline-color: transparent;
|
|
5201
|
-
outline-style: solid;
|
|
5332
|
+
[role=switch])):focus:not(:focus-visible),
|
|
5333
|
+
a.button.danger:where(:not(.primary, .secondary, .ghost, .close, .link)):focus:not(:focus-visible),
|
|
5334
|
+
button.tertiary.danger:focus:not(:focus-visible),
|
|
5335
|
+
a.button.tertiary.danger:focus:not(:focus-visible) {
|
|
5336
|
+
box-shadow: none;
|
|
5337
|
+
outline: 0;
|
|
5202
5338
|
}
|
|
5203
5339
|
button.danger:where(:not(.primary,
|
|
5204
5340
|
.secondary,
|
|
@@ -5208,14 +5344,25 @@ button.danger:where(:not(.primary,
|
|
|
5208
5344
|
.link,
|
|
5209
5345
|
[aria-haspopup=listbox],
|
|
5210
5346
|
[aria-haspopup=menu],
|
|
5211
|
-
[role=switch])):focus,
|
|
5347
|
+
[role=switch])):focus, button.danger:where(:not(.primary,
|
|
5348
|
+
.secondary,
|
|
5349
|
+
.ghost,
|
|
5350
|
+
.close,
|
|
5351
|
+
.sg-table-sort,
|
|
5352
|
+
.link,
|
|
5353
|
+
[aria-haspopup=listbox],
|
|
5354
|
+
[aria-haspopup=menu],
|
|
5355
|
+
[role=switch])):focus-visible,
|
|
5212
5356
|
a.button.danger:where(:not(.primary, .secondary, .ghost, .close, .link)):focus,
|
|
5357
|
+
a.button.danger:where(:not(.primary, .secondary, .ghost, .close, .link)):focus-visible,
|
|
5213
5358
|
button.tertiary.danger:focus,
|
|
5214
|
-
|
|
5215
|
-
|
|
5216
|
-
|
|
5217
|
-
outline-color:
|
|
5359
|
+
button.tertiary.danger:focus-visible,
|
|
5360
|
+
a.button.tertiary.danger:focus,
|
|
5361
|
+
a.button.tertiary.danger:focus-visible {
|
|
5362
|
+
outline-color: var(--gds-sys-color-focus-outline);
|
|
5218
5363
|
outline-style: solid;
|
|
5364
|
+
outline-width: 0.125rem;
|
|
5365
|
+
outline-offset: 0.125rem;
|
|
5219
5366
|
}
|
|
5220
5367
|
|
|
5221
5368
|
/* rules for groups of checkboxes and radio buttons*/
|
|
@@ -5240,7 +5387,6 @@ input[type=week] {
|
|
|
5240
5387
|
border-radius: var(--sg-border-radius);
|
|
5241
5388
|
border: solid var(--sg-border-width) var(--sg-border-color);
|
|
5242
5389
|
--border-color: var(--sg-border-color);
|
|
5243
|
-
transition: box-shadow 0.3s cubic-bezier(0.23, 1, 0.32, 1);
|
|
5244
5390
|
background-color: var(--sg-form-control-bg);
|
|
5245
5391
|
color: var(--sg-text-primary);
|
|
5246
5392
|
min-height: 2.75rem;
|
|
@@ -5248,25 +5394,6 @@ input[type=week] {
|
|
|
5248
5394
|
align-items: center;
|
|
5249
5395
|
justify-content: center;
|
|
5250
5396
|
}
|
|
5251
|
-
input:not([type]):focus,
|
|
5252
|
-
input[type=date]:focus,
|
|
5253
|
-
input[type=datetime]:focus,
|
|
5254
|
-
input[type=datetime-local]:focus,
|
|
5255
|
-
input[type=email]:focus,
|
|
5256
|
-
input[type=month]:focus,
|
|
5257
|
-
input[type=number]:focus,
|
|
5258
|
-
input[type=password]:focus,
|
|
5259
|
-
input[type=search]:focus,
|
|
5260
|
-
input[type=tel]:focus,
|
|
5261
|
-
input[type=text]:focus,
|
|
5262
|
-
input[type=time]:focus,
|
|
5263
|
-
input[type=url]:focus,
|
|
5264
|
-
input[type=week]:focus {
|
|
5265
|
-
border-color: rgb(0, 122, 199);
|
|
5266
|
-
box-shadow: 0 0 0.25rem 0.0625rem rgb(65, 176, 238);
|
|
5267
|
-
outline-color: transparent;
|
|
5268
|
-
outline-style: solid;
|
|
5269
|
-
}
|
|
5270
5397
|
input:not([type]):focus:not(:focus-visible),
|
|
5271
5398
|
input[type=date]:focus:not(:focus-visible),
|
|
5272
5399
|
input[type=datetime]:focus:not(:focus-visible),
|
|
@@ -5284,24 +5411,37 @@ input[type=week]:focus:not(:focus-visible) {
|
|
|
5284
5411
|
box-shadow: none;
|
|
5285
5412
|
outline: 0;
|
|
5286
5413
|
}
|
|
5287
|
-
input:not([type]):focus-visible,
|
|
5414
|
+
input:not([type]):focus, input:not([type]):focus-visible,
|
|
5415
|
+
input[type=date]:focus,
|
|
5288
5416
|
input[type=date]:focus-visible,
|
|
5417
|
+
input[type=datetime]:focus,
|
|
5289
5418
|
input[type=datetime]:focus-visible,
|
|
5419
|
+
input[type=datetime-local]:focus,
|
|
5290
5420
|
input[type=datetime-local]:focus-visible,
|
|
5421
|
+
input[type=email]:focus,
|
|
5291
5422
|
input[type=email]:focus-visible,
|
|
5423
|
+
input[type=month]:focus,
|
|
5292
5424
|
input[type=month]:focus-visible,
|
|
5425
|
+
input[type=number]:focus,
|
|
5293
5426
|
input[type=number]:focus-visible,
|
|
5427
|
+
input[type=password]:focus,
|
|
5294
5428
|
input[type=password]:focus-visible,
|
|
5429
|
+
input[type=search]:focus,
|
|
5295
5430
|
input[type=search]:focus-visible,
|
|
5431
|
+
input[type=tel]:focus,
|
|
5296
5432
|
input[type=tel]:focus-visible,
|
|
5433
|
+
input[type=text]:focus,
|
|
5297
5434
|
input[type=text]:focus-visible,
|
|
5435
|
+
input[type=time]:focus,
|
|
5298
5436
|
input[type=time]:focus-visible,
|
|
5437
|
+
input[type=url]:focus,
|
|
5299
5438
|
input[type=url]:focus-visible,
|
|
5439
|
+
input[type=week]:focus,
|
|
5300
5440
|
input[type=week]:focus-visible {
|
|
5301
|
-
|
|
5302
|
-
box-shadow: 0 0 0.25rem 0.0625rem rgb(65, 176, 238);
|
|
5303
|
-
outline-color: transparent;
|
|
5441
|
+
outline-color: var(--gds-sys-color-focus-outline);
|
|
5304
5442
|
outline-style: solid;
|
|
5443
|
+
outline-width: 0.125rem;
|
|
5444
|
+
outline-offset: 0.125rem;
|
|
5305
5445
|
}
|
|
5306
5446
|
input:not([type]).small,
|
|
5307
5447
|
input[type=date].small,
|
|
@@ -5436,12 +5576,12 @@ input[type=number]::-webkit-outer-spin-button, input[type=number]::-webkit-inner
|
|
|
5436
5576
|
}
|
|
5437
5577
|
|
|
5438
5578
|
:host {
|
|
5439
|
-
display:
|
|
5579
|
+
display: block;
|
|
5440
5580
|
}
|
|
5441
5581
|
|
|
5442
5582
|
:host(:invalid) button + .form-info {
|
|
5443
5583
|
position: relative;
|
|
5444
|
-
transition: 200ms ease-in-out;
|
|
5584
|
+
transition: all 200ms ease-in-out, outline-offset 0s, outline-width 0s;
|
|
5445
5585
|
color: var(--intent-danger-background);
|
|
5446
5586
|
opacity: 1;
|
|
5447
5587
|
}
|
|
@@ -5472,6 +5612,7 @@ input[type=number]::-webkit-outer-spin-button, input[type=number]::-webkit-inner
|
|
|
5472
5612
|
|
|
5473
5613
|
input[type=text] {
|
|
5474
5614
|
border-radius: 0;
|
|
5615
|
+
font-size: 1rem;
|
|
5475
5616
|
line-height: 1;
|
|
5476
5617
|
margin: -1px;
|
|
5477
5618
|
min-height: auto;
|
|
@@ -5491,13 +5632,11 @@ button {
|
|
|
5491
5632
|
border-radius: var(--sg-border-radius);
|
|
5492
5633
|
border: solid var(--sg-border-width) var(--sg-border-color);
|
|
5493
5634
|
font-weight: 500;
|
|
5494
|
-
transition: box-shadow 0.3s cubic-bezier(0.23, 1, 0.32, 1);
|
|
5495
5635
|
min-height: 2.75rem;
|
|
5496
5636
|
align-items: center;
|
|
5497
5637
|
display: inline-flex;
|
|
5498
5638
|
justify-content: center;
|
|
5499
|
-
transition:
|
|
5500
|
-
transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
|
|
5639
|
+
transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1), outline-offset 0s, outline-width 0s;
|
|
5501
5640
|
background: transparent;
|
|
5502
5641
|
border-color: rgb(0, 122, 199);
|
|
5503
5642
|
color: rgb(0, 122, 199);
|
|
@@ -5513,9 +5652,8 @@ button {
|
|
|
5513
5652
|
padding-top: 0.75rem;
|
|
5514
5653
|
border-radius: var(--sg-border-radius);
|
|
5515
5654
|
border: solid var(--sg-border-width) var(--sg-border-color);
|
|
5516
|
-
--border-color: var(--
|
|
5517
|
-
|
|
5518
|
-
transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
|
|
5655
|
+
--border-color: var(--gds-ref-pallet-base600);
|
|
5656
|
+
--sg-border-color: var(--gds-ref-pallet-base600);
|
|
5519
5657
|
background: var(--sg-form-control-bg);
|
|
5520
5658
|
color: var(--text-primary-color);
|
|
5521
5659
|
min-height: 2.75rem;
|
|
@@ -5530,23 +5668,17 @@ button {
|
|
|
5530
5668
|
margin-top: 0.5rem;
|
|
5531
5669
|
width: 100%;
|
|
5532
5670
|
}
|
|
5533
|
-
button:focus {
|
|
5534
|
-
border-color: rgb(0, 122, 199);
|
|
5535
|
-
box-shadow: 0 0 0.25rem 0.0625rem rgb(65, 176, 238);
|
|
5536
|
-
outline-color: transparent;
|
|
5537
|
-
outline-style: solid;
|
|
5538
|
-
}
|
|
5539
5671
|
button:focus:not(:focus-visible) {
|
|
5540
5672
|
box-shadow: none;
|
|
5541
5673
|
outline: 0;
|
|
5542
5674
|
}
|
|
5543
|
-
button:focus-visible {
|
|
5544
|
-
|
|
5545
|
-
box-shadow: 0 0 0.25rem 0.0625rem rgb(65, 176, 238);
|
|
5546
|
-
outline-color: transparent;
|
|
5675
|
+
button:focus, button:focus-visible {
|
|
5676
|
+
outline-color: var(--gds-sys-color-focus-outline);
|
|
5547
5677
|
outline-style: solid;
|
|
5678
|
+
outline-width: 0.125rem;
|
|
5679
|
+
outline-offset: 0.125rem;
|
|
5548
5680
|
}
|
|
5549
|
-
@media (max-width:
|
|
5681
|
+
@media (max-width: 35.98em) {
|
|
5550
5682
|
button {
|
|
5551
5683
|
min-width: 100%;
|
|
5552
5684
|
}
|
|
@@ -5567,21 +5699,15 @@ button.large {
|
|
|
5567
5699
|
font-size: 1.5rem;
|
|
5568
5700
|
line-height: 2rem;
|
|
5569
5701
|
}
|
|
5570
|
-
button:focus {
|
|
5571
|
-
border-color: rgb(0, 122, 199);
|
|
5572
|
-
box-shadow: 0 0 0.25rem 0.0625rem rgb(65, 176, 238);
|
|
5573
|
-
outline-color: transparent;
|
|
5574
|
-
outline-style: solid;
|
|
5575
|
-
}
|
|
5576
5702
|
button:focus:not(:focus-visible) {
|
|
5577
5703
|
box-shadow: none;
|
|
5578
5704
|
outline: 0;
|
|
5579
5705
|
}
|
|
5580
|
-
button:focus-visible {
|
|
5581
|
-
|
|
5582
|
-
box-shadow: 0 0 0.25rem 0.0625rem rgb(65, 176, 238);
|
|
5583
|
-
outline-color: transparent;
|
|
5706
|
+
button:focus, button:focus-visible {
|
|
5707
|
+
outline-color: var(--gds-sys-color-focus-outline);
|
|
5584
5708
|
outline-style: solid;
|
|
5709
|
+
outline-width: 0.125rem;
|
|
5710
|
+
outline-offset: 0.125rem;
|
|
5585
5711
|
}
|
|
5586
5712
|
button:not(:disabled, .disabled, [aria-disabled]):hover {
|
|
5587
5713
|
background-color: #199be3;
|
|
@@ -5605,30 +5731,24 @@ button:disabled, button.disabled, button[aria-disabled=true] {
|
|
|
5605
5731
|
button:disabled::placeholder, button.disabled::placeholder, button[aria-disabled=true]::placeholder {
|
|
5606
5732
|
color: var(--text-disabled-color);
|
|
5607
5733
|
}
|
|
5608
|
-
button:focus {
|
|
5609
|
-
|
|
5610
|
-
box-shadow: 0 0 0.25rem 0.0625rem rgb(65, 176, 238);
|
|
5611
|
-
outline-color: transparent;
|
|
5612
|
-
outline-style: solid;
|
|
5613
|
-
}
|
|
5614
|
-
button:focus {
|
|
5615
|
-
border-color: rgb(0, 122, 199) !important;
|
|
5616
|
-
box-shadow: 0 0 0.25rem 0.0625rem rgb(65, 176, 238);
|
|
5617
|
-
outline-color: transparent;
|
|
5734
|
+
button:focus, button:focus {
|
|
5735
|
+
outline-color: var(--gds-sys-color-focus-outline);
|
|
5618
5736
|
outline-style: solid;
|
|
5737
|
+
outline-width: 0.125rem;
|
|
5738
|
+
outline-offset: 0.125rem;
|
|
5619
5739
|
}
|
|
5620
|
-
|
|
5621
|
-
background-color: #199be3;
|
|
5622
|
-
color: rgb(255, 255, 255);
|
|
5623
|
-
--background: #199be3;
|
|
5624
|
-
--color: rgb(255, 255, 255);
|
|
5625
|
-
border-color: #199be3;
|
|
5626
|
-
}
|
|
5627
|
-
@media (max-width: 575.98px) {
|
|
5740
|
+
@media (max-width: 35.98em) {
|
|
5628
5741
|
button {
|
|
5629
5742
|
min-width: 100%;
|
|
5630
5743
|
}
|
|
5631
5744
|
}
|
|
5745
|
+
button:not(:disabled, .disabled, [aria-disabled]):hover {
|
|
5746
|
+
--background: var(--gds-ref-pallet-base200);
|
|
5747
|
+
--color: var(--gds-ref-pallet-base800);
|
|
5748
|
+
background-color: var(--gds-ref-pallet-base200);
|
|
5749
|
+
color: var(--gds-ref-pallet-base800);
|
|
5750
|
+
border-color: var(--gds-ref-pallet-base800);
|
|
5751
|
+
}
|
|
5632
5752
|
button > span {
|
|
5633
5753
|
white-space: nowrap;
|
|
5634
5754
|
overflow: hidden;
|
|
@@ -5637,8 +5757,8 @@ button > span {
|
|
|
5637
5757
|
button::after {
|
|
5638
5758
|
margin-left: 0.5rem;
|
|
5639
5759
|
margin-right: 0.5rem;
|
|
5640
|
-
border-bottom: solid 2px
|
|
5641
|
-
border-left: solid 2px
|
|
5760
|
+
border-bottom: solid 2px var(--gds-ref-pallet-base800);
|
|
5761
|
+
border-left: solid 2px var(--gds-ref-pallet-base800);
|
|
5642
5762
|
content: "";
|
|
5643
5763
|
display: block;
|
|
5644
5764
|
height: 0.75rem;
|
|
@@ -5669,21 +5789,55 @@ function register3() {
|
|
|
5669
5789
|
TransitionalStyles.instance.register("gds-dropdown", dropdown_trans_styles_default.toString());
|
|
5670
5790
|
}
|
|
5671
5791
|
|
|
5792
|
+
// libs/core/src/utils/helpers/custom-element-scoping.ts
|
|
5793
|
+
import { html as litHtml } from "lit";
|
|
5794
|
+
import { customElement } from "lit/decorators.js";
|
|
5795
|
+
var VER_SUFFIX = "-b7215a";
|
|
5796
|
+
var elementLookupTable = /* @__PURE__ */ new Map();
|
|
5797
|
+
var templateCache = /* @__PURE__ */ new WeakMap();
|
|
5798
|
+
function applyElementScoping(strings, ...values) {
|
|
5799
|
+
let modstrings = templateCache.get(strings);
|
|
5800
|
+
if (!modstrings) {
|
|
5801
|
+
modstrings = replaceTags(strings);
|
|
5802
|
+
modstrings.raw = replaceTags(strings.raw);
|
|
5803
|
+
templateCache.set(strings, modstrings);
|
|
5804
|
+
}
|
|
5805
|
+
return [modstrings, ...values];
|
|
5806
|
+
}
|
|
5807
|
+
var replaceTags = (inStr) => inStr.map((s) => {
|
|
5808
|
+
for (const [key, value] of elementLookupTable.entries()) {
|
|
5809
|
+
s = s.split(key).join(value);
|
|
5810
|
+
}
|
|
5811
|
+
return s;
|
|
5812
|
+
});
|
|
5813
|
+
function htmlTemplateTagFactory(extendedTag) {
|
|
5814
|
+
return (strings, ...values) => {
|
|
5815
|
+
if (globalThis.GDS_DISABLE_VERSIONED_ELEMENTS) {
|
|
5816
|
+
return extendedTag(strings, ...values);
|
|
5817
|
+
}
|
|
5818
|
+
const [modstrings, ...modvalues] = applyElementScoping(strings, ...values);
|
|
5819
|
+
return extendedTag(modstrings, ...modvalues);
|
|
5820
|
+
};
|
|
5821
|
+
}
|
|
5822
|
+
var html = htmlTemplateTagFactory(litHtml);
|
|
5823
|
+
|
|
5672
5824
|
// libs/core/src/utils/helpers/transitional-styles.ts
|
|
5673
5825
|
var registerTransitionalStyles = () => {
|
|
5674
5826
|
register3();
|
|
5675
5827
|
register();
|
|
5676
5828
|
register2();
|
|
5677
5829
|
};
|
|
5678
|
-
var TransitionalStyles = class {
|
|
5830
|
+
var TransitionalStyles = class _TransitionalStyles {
|
|
5679
5831
|
constructor() {
|
|
5680
5832
|
this.sheets = /* @__PURE__ */ new Map();
|
|
5681
5833
|
this.elements = /* @__PURE__ */ new Map();
|
|
5682
5834
|
}
|
|
5683
5835
|
static get instance() {
|
|
5684
|
-
if (!globalThis.__gdsTransitionalStyles)
|
|
5685
|
-
globalThis.__gdsTransitionalStyles =
|
|
5686
|
-
|
|
5836
|
+
if (!globalThis.__gdsTransitionalStyles?.[VER_SUFFIX])
|
|
5837
|
+
globalThis.__gdsTransitionalStyles = {
|
|
5838
|
+
[VER_SUFFIX]: new _TransitionalStyles()
|
|
5839
|
+
};
|
|
5840
|
+
return globalThis.__gdsTransitionalStyles[VER_SUFFIX];
|
|
5687
5841
|
}
|
|
5688
5842
|
apply(element, styleKey) {
|
|
5689
5843
|
const sheet = this.sheets.get(styleKey);
|