@charcoal-ui/react 5.10.0 → 5.11.0-beta.1

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/index.css CHANGED
@@ -1,5 +1,7 @@
1
1
  .charcoal-button {
2
- appearance: none;
2
+ -webkit-appearance: none;
3
+ -moz-appearance: none;
4
+ appearance: none;
3
5
  background: transparent;
4
6
  box-sizing: border-box;
5
7
  padding: 0 24px;
@@ -13,12 +15,15 @@
13
15
  margin: 0;
14
16
  overflow: visible;
15
17
  text-transform: none;
18
+ width: -moz-min-content;
16
19
  width: min-content;
17
20
  display: inline-grid;
18
21
  align-items: center;
19
22
  justify-content: center;
20
23
  cursor: pointer;
21
- user-select: none;
24
+ -webkit-user-select: none;
25
+ -moz-user-select: none;
26
+ user-select: none;
22
27
  white-space: nowrap;
23
28
  border-radius: 999999px;
24
29
  font-size: 14px;
@@ -31,119 +36,120 @@
31
36
  0.2s background-color,
32
37
  0.2s box-shadow;
33
38
  height: 40px;
39
+ }
34
40
 
35
- &:disabled,
36
- &[aria-disabled]:not([aria-disabled='false']) {
41
+ .charcoal-button:disabled,
42
+ .charcoal-button[aria-disabled]:not([aria-disabled='false']) {
37
43
  cursor: default;
38
44
  opacity: 0.32;
39
45
  }
40
46
 
41
- &:not(:disabled):not([aria-disabled]):focus-visible,
42
- &[aria-disabled='false']:focus-visible {
47
+ .charcoal-button:not(:disabled):not([aria-disabled]):focus-visible,
48
+ .charcoal-button[aria-disabled='false']:focus-visible {
43
49
  outline: none;
44
50
  box-shadow: 0 0 0 4px rgba(0, 150, 250, 0.32);
45
51
  }
46
52
 
47
- &:not(:disabled):not([aria-disabled]):hover,
48
- &[aria-disabled='false']:hover {
53
+ .charcoal-button:not(:disabled):not([aria-disabled]):hover,
54
+ .charcoal-button[aria-disabled='false']:hover {
49
55
  color: var(--charcoal-text2-hover);
50
56
  background-color: var(--charcoal-surface3-hover);
51
57
  }
52
58
 
53
- &:not(:disabled):not([aria-disabled]):active,
54
- &[aria-disabled='false']:active,
55
- &[data-active='true'] {
59
+ .charcoal-button:not(:disabled):not([aria-disabled]):active,
60
+ .charcoal-button[aria-disabled='false']:active,
61
+ .charcoal-button[data-active='true'] {
56
62
  color: var(--charcoal-text2-press);
57
63
  background-color: var(--charcoal-surface3-press);
58
64
  }
59
65
 
60
- &[data-variant='Primary'] {
66
+ .charcoal-button[data-variant='Primary'] {
61
67
  color: var(--charcoal-text5);
62
68
  background-color: var(--charcoal-brand);
69
+ }
63
70
 
64
- &:hover:not(:disabled):not([aria-disabled]),
65
- &:hover[aria-disabled='false'] {
71
+ .charcoal-button[data-variant='Primary']:hover:not(:disabled):not([aria-disabled]),
72
+ .charcoal-button[data-variant='Primary']:hover[aria-disabled='false'] {
66
73
  color: var(--charcoal-text5-hover);
67
74
  background-color: var(--charcoal-brand-hover);
68
75
  }
69
76
 
70
- &:active:not(:disabled):not([aria-disabled]),
71
- &:active[aria-disabled='false'],
72
- &[data-active='true'] {
77
+ .charcoal-button[data-variant='Primary']:active:not(:disabled):not([aria-disabled]),
78
+ .charcoal-button[data-variant='Primary']:active[aria-disabled='false'],
79
+ .charcoal-button[data-variant='Primary'][data-active='true'] {
73
80
  color: var(--charcoal-text5-press);
74
81
  background-color: var(--charcoal-brand-press);
75
82
  }
76
- }
77
83
 
78
- &[data-variant='Overlay'] {
84
+ .charcoal-button[data-variant='Overlay'] {
79
85
  color: var(--charcoal-text5);
80
86
  background-color: var(--charcoal-surface4);
87
+ }
81
88
 
82
- &:hover:not(:disabled):not([aria-disabled]),
83
- &:hover[aria-disabled='false'] {
89
+ .charcoal-button[data-variant='Overlay']:hover:not(:disabled):not([aria-disabled]),
90
+ .charcoal-button[data-variant='Overlay']:hover[aria-disabled='false'] {
84
91
  color: var(--charcoal-text5-hover);
85
92
  background-color: var(--charcoal-surface4-hover);
86
93
  }
87
94
 
88
- &:active:not(:disabled):not([aria-disabled]),
89
- &:active[aria-disabled='false'],
90
- &[data-active='true'] {
95
+ .charcoal-button[data-variant='Overlay']:active:not(:disabled):not([aria-disabled]),
96
+ .charcoal-button[data-variant='Overlay']:active[aria-disabled='false'],
97
+ .charcoal-button[data-variant='Overlay'][data-active='true'] {
91
98
  color: var(--charcoal-text5-press);
92
99
  background-color: var(--charcoal-surface4-press);
93
100
  }
94
- }
95
101
 
96
- &[data-variant='Navigation'] {
102
+ .charcoal-button[data-variant='Navigation'] {
97
103
  color: var(--charcoal-text5);
98
104
  background-color: var(--charcoal-surface6);
105
+ }
99
106
 
100
- &:hover:not(:disabled):not([aria-disabled]),
101
- &:hover[aria-disabled='false'] {
107
+ .charcoal-button[data-variant='Navigation']:hover:not(:disabled):not([aria-disabled]),
108
+ .charcoal-button[data-variant='Navigation']:hover[aria-disabled='false'] {
102
109
  color: var(--charcoal-text5-hover);
103
110
  background-color: var(--charcoal-surface6-hover);
104
111
  }
105
112
 
106
- &:active:not(:disabled):not([aria-disabled]),
107
- &:active[aria-disabled='false'],
108
- &[data-active='true'] {
113
+ .charcoal-button[data-variant='Navigation']:active:not(:disabled):not([aria-disabled]),
114
+ .charcoal-button[data-variant='Navigation']:active[aria-disabled='false'],
115
+ .charcoal-button[data-variant='Navigation'][data-active='true'] {
109
116
  color: var(--charcoal-text5-press);
110
117
  background-color: var(--charcoal-surface6-press);
111
118
  }
112
- }
113
119
 
114
- &[data-variant='Danger'] {
120
+ .charcoal-button[data-variant='Danger'] {
115
121
  color: var(--charcoal-text5);
116
122
  background-color: var(--charcoal-assertive);
123
+ }
117
124
 
118
- &:hover:not(:disabled):not([aria-disabled]),
119
- &:hover[aria-disabled='false'] {
125
+ .charcoal-button[data-variant='Danger']:hover:not(:disabled):not([aria-disabled]),
126
+ .charcoal-button[data-variant='Danger']:hover[aria-disabled='false'] {
120
127
  color: var(--charcoal-text5-hover);
121
128
  background-color: var(--charcoal-assertive-hover);
122
129
  }
123
130
 
124
- &:active:not(:disabled):not([aria-disabled]),
125
- &:active[aria-disabled='false'],
126
- &[data-active='true'] {
131
+ .charcoal-button[data-variant='Danger']:active:not(:disabled):not([aria-disabled]),
132
+ .charcoal-button[data-variant='Danger']:active[aria-disabled='false'],
133
+ .charcoal-button[data-variant='Danger'][data-active='true'] {
127
134
  color: var(--charcoal-text5-press);
128
135
  background-color: var(--charcoal-assertive-press);
129
136
  }
130
- }
131
137
 
132
- &[data-size='S'] {
138
+ .charcoal-button[data-size='S'] {
133
139
  padding: 0 16px;
134
140
  height: 32px;
135
141
  }
136
142
 
137
- &[data-full-width='true'] {
143
+ .charcoal-button[data-full-width='true'] {
138
144
  width: 100%;
139
145
  }
140
- }
141
-
142
146
  .charcoal-clickable {
143
147
  cursor: pointer;
144
148
 
145
149
  /* Reset button appearance */
146
- appearance: none;
150
+ -webkit-appearance: none;
151
+ -moz-appearance: none;
152
+ appearance: none;
147
153
  background: transparent;
148
154
  padding: 0;
149
155
  border-style: none;
@@ -165,25 +171,26 @@
165
171
 
166
172
  /* Remove the inheritance of text transform in Firefox. */
167
173
  text-transform: none;
174
+ }
168
175
 
169
- &:disabled,
170
- &[aria-disabled]:not([aria-disabled='false']) {
176
+ .charcoal-clickable:disabled,
177
+ .charcoal-clickable[aria-disabled]:not([aria-disabled='false']) {
171
178
  cursor: default;
172
179
  }
173
180
 
174
- &:focus {
181
+ .charcoal-clickable:focus {
175
182
  outline: none;
176
183
  }
177
184
 
178
- &::-moz-focus-inner {
185
+ .charcoal-clickable::-moz-focus-inner {
179
186
  border-style: none;
180
187
  padding: 0;
181
188
  }
182
- }
183
-
184
189
  .charcoal-icon-button {
185
190
  cursor: pointer;
186
- appearance: none;
191
+ -webkit-appearance: none;
192
+ -moz-appearance: none;
193
+ appearance: none;
187
194
  background: transparent;
188
195
  padding: 0;
189
196
  border-style: none;
@@ -198,7 +205,11 @@
198
205
  overflow: visible;
199
206
  text-transform: none;
200
207
 
201
- user-select: none;
208
+ -webkit-user-select: none;
209
+
210
+ -moz-user-select: none;
211
+
212
+ user-select: none;
202
213
  display: flex;
203
214
  align-items: center;
204
215
  justify-content: center;
@@ -206,121 +217,121 @@
206
217
  transition:
207
218
  0.2s background-color,
208
219
  0.2s box-shadow;
220
+ }
209
221
 
210
- &:disabled,
211
- &[aria-disabled]:not([aria-disabled='false']) {
222
+ .charcoal-icon-button:disabled,
223
+ .charcoal-icon-button[aria-disabled]:not([aria-disabled='false']) {
212
224
  cursor: default;
213
225
  opacity: 0.32;
214
226
  }
215
227
 
216
- &:focus {
228
+ .charcoal-icon-button:focus {
217
229
  outline: none;
218
230
  }
219
231
 
220
- &::-moz-focus-inner {
232
+ .charcoal-icon-button::-moz-focus-inner {
221
233
  border-style: none;
222
234
  padding: 0;
223
235
  }
224
236
 
225
- &[data-size='XS'] {
237
+ .charcoal-icon-button[data-size='XS'] {
226
238
  width: 20px;
227
239
  height: 20px;
228
240
  }
229
241
 
230
- &[data-size='S'] {
242
+ .charcoal-icon-button[data-size='S'] {
231
243
  width: 32px;
232
244
  height: 32px;
233
245
  }
234
246
 
235
- &[data-size='M'] {
247
+ .charcoal-icon-button[data-size='M'] {
236
248
  width: 40px;
237
249
  height: 40px;
238
250
  }
239
251
 
240
- &[data-variant='Default'] {
252
+ .charcoal-icon-button[data-variant='Default'] {
241
253
  color: var(--charcoal-text3);
242
254
  background-color: var(--charcoal-transparent);
255
+ }
243
256
 
244
- &[data-active='true']:not(:disabled):not([aria-disabled]),
245
- &[data-active='true'][aria-disabled='false'] {
257
+ .charcoal-icon-button[data-variant='Default'][data-active='true']:not(:disabled):not([aria-disabled]),
258
+ .charcoal-icon-button[data-variant='Default'][data-active='true'][aria-disabled='false'] {
246
259
  color: var(--charcoal-text3-press);
247
260
  background-color: var(--charcoal-transparent-press);
248
261
  }
249
262
 
250
- &[data-active='false']:not(:disabled):not([aria-disabled]):hover,
251
- &[data-active='false'][aria-disabled='false']:hover {
263
+ .charcoal-icon-button[data-variant='Default'][data-active='false']:not(:disabled):not([aria-disabled]):hover,
264
+ .charcoal-icon-button[data-variant='Default'][data-active='false'][aria-disabled='false']:hover {
252
265
  color: var(--charcoal-text3-hover);
253
266
  background-color: var(--charcoal-transparent-hover);
254
267
  }
255
268
 
256
- &[data-active='false']:not(:disabled):not([aria-disabled]):active,
257
- &[data-active='false'][aria-disabled='false']:active {
269
+ .charcoal-icon-button[data-variant='Default'][data-active='false']:not(:disabled):not([aria-disabled]):active,
270
+ .charcoal-icon-button[data-variant='Default'][data-active='false'][aria-disabled='false']:active {
258
271
  color: var(--charcoal-text3-press);
259
272
  background-color: var(--charcoal-transparent-press);
260
273
  }
261
- }
262
274
 
263
- &[data-variant='Overlay'] {
275
+ .charcoal-icon-button[data-variant='Overlay'] {
264
276
  color: var(--charcoal-text5);
265
277
  background-color: var(--charcoal-surface4);
278
+ }
266
279
 
267
- &[data-active='true']:not(:disabled):not([aria-disabled]),
268
- &[data-active='true'][aria-disabled='false'] {
280
+ .charcoal-icon-button[data-variant='Overlay'][data-active='true']:not(:disabled):not([aria-disabled]),
281
+ .charcoal-icon-button[data-variant='Overlay'][data-active='true'][aria-disabled='false'] {
269
282
  color: var(--charcoal-text5-press);
270
283
  background-color: var(--charcoal-surface4-press);
271
284
  }
272
285
 
273
- &[data-active='false']:not(:disabled):not([aria-disabled]):hover,
274
- &[data-active='false'][aria-disabled='false']:hover {
286
+ .charcoal-icon-button[data-variant='Overlay'][data-active='false']:not(:disabled):not([aria-disabled]):hover,
287
+ .charcoal-icon-button[data-variant='Overlay'][data-active='false'][aria-disabled='false']:hover {
275
288
  color: var(--charcoal-text5-hover);
276
289
  background-color: var(--charcoal-surface4-hover);
277
290
  }
278
291
 
279
- &[data-active='false']:not(:disabled):not([aria-disabled]):active,
280
- &[data-active='false'][aria-disabled='false']:active {
292
+ .charcoal-icon-button[data-variant='Overlay'][data-active='false']:not(:disabled):not([aria-disabled]):active,
293
+ .charcoal-icon-button[data-variant='Overlay'][data-active='false'][aria-disabled='false']:active {
281
294
  color: var(--charcoal-text5-press);
282
295
  background-color: var(--charcoal-surface4-press);
283
296
  }
284
- }
285
297
 
286
- &:not(:disabled):not([aria-disabled]):focus,
287
- &[aria-disabled='false']:focus {
298
+ .charcoal-icon-button:not(:disabled):not([aria-disabled]):focus,
299
+ .charcoal-icon-button[aria-disabled='false']:focus {
288
300
  outline: none;
289
301
  box-shadow: 0 0 0 4px rgba(0, 150, 250, 0.32);
290
302
  }
291
303
 
292
- &:not(:disabled):not([aria-disabled]):focus-visible,
293
- &[aria-disabled='false']:focus-visible {
304
+ .charcoal-icon-button:not(:disabled):not([aria-disabled]):focus-visible,
305
+ .charcoal-icon-button[aria-disabled='false']:focus-visible {
294
306
  box-shadow: 0 0 0 4px rgba(0, 150, 250, 0.32);
295
307
  }
296
308
 
297
- &:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
298
- &[aria-disabled='false']:focus:not(:focus-visible) {
309
+ .charcoal-icon-button:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
310
+ .charcoal-icon-button[aria-disabled='false']:focus:not(:focus-visible) {
299
311
  box-shadow: none;
300
312
  }
301
- }
302
-
303
313
  .charcoal-radio__label {
304
314
  display: grid;
305
315
  grid-template-columns: auto 1fr;
306
316
  grid-gap: 4px;
307
317
  align-items: center;
308
318
  cursor: pointer;
319
+ }
309
320
 
310
- &[aria-disabled]:not([aria-disabled='false']) {
321
+ .charcoal-radio__label[aria-disabled]:not([aria-disabled='false']) {
311
322
  opacity: 0.32;
312
323
  cursor: default;
313
324
  }
314
- }
315
325
 
316
326
  .charcoal-radio__label_div {
317
327
  font-size: 14px;
318
328
  line-height: 22px;
319
329
  color: var(--charcoal-text2);
320
330
  }
321
-
322
331
  .charcoal-radio-input {
323
- appearance: none;
332
+ -webkit-appearance: none;
333
+ -moz-appearance: none;
334
+ appearance: none;
324
335
  display: block;
325
336
  box-sizing: border-box;
326
337
 
@@ -405,13 +416,11 @@
405
416
  .charcoal-radio-input:checked:not(:disabled):active::after {
406
417
  background-color: var(--charcoal-text5-press);
407
418
  }
408
-
409
419
  .charcoal-radio-group {
410
420
  display: grid;
411
421
  grid-template-columns: 1fr;
412
422
  grid-gap: 8px;
413
423
  }
414
-
415
424
  .charcoal-multi-select {
416
425
  display: grid;
417
426
  grid-template-columns: auto 1fr;
@@ -419,13 +428,13 @@
419
428
  position: relative;
420
429
  cursor: pointer;
421
430
  gap: 4px;
431
+ }
422
432
 
423
- &:disabled,
424
- &[aria-disabled]:not([aria-disabled='false']) {
433
+ .charcoal-multi-select:disabled,
434
+ .charcoal-multi-select[aria-disabled]:not([aria-disabled='false']) {
425
435
  opacity: 0.32;
426
436
  cursor: default;
427
437
  }
428
- }
429
438
 
430
439
  .charcoal-multi-select-label {
431
440
  display: flow-root;
@@ -433,8 +442,9 @@
433
442
  font-size: 14px;
434
443
  line-height: 22px;
435
444
  color: var(--charcoal-text2);
445
+ }
436
446
 
437
- &::before {
447
+ .charcoal-multi-select-label::before {
438
448
  display: block;
439
449
  width: 0;
440
450
  height: 0;
@@ -442,17 +452,18 @@
442
452
  margin-top: -4px;
443
453
  }
444
454
 
445
- &::after {
455
+ .charcoal-multi-select-label::after {
446
456
  display: block;
447
457
  width: 0;
448
458
  height: 0;
449
459
  content: '';
450
460
  margin-bottom: -4px;
451
461
  }
452
- }
453
462
 
454
463
  .charcoal-multi-select-input[type='checkbox'] {
455
- appearance: none;
464
+ -webkit-appearance: none;
465
+ -moz-appearance: none;
466
+ appearance: none;
456
467
  display: block;
457
468
  width: 20px;
458
469
  height: 20px;
@@ -462,58 +473,58 @@
462
473
  transition:
463
474
  0.2s background-color,
464
475
  0.2s box-shadow;
476
+ }
465
477
 
466
- &:checked {
478
+ .charcoal-multi-select-input[type='checkbox']:checked {
467
479
  background-color: var(--charcoal-brand);
468
480
  }
469
481
 
470
- &:focus {
482
+ .charcoal-multi-select-input[type='checkbox']:focus {
471
483
  outline: none;
472
484
  box-shadow: 0 0 0 4px rgba(0, 150, 250, 0.32);
473
485
  }
474
486
 
475
- &:focus-visible {
487
+ .charcoal-multi-select-input[type='checkbox']:focus-visible {
476
488
  box-shadow: 0 0 0 4px rgba(0, 150, 250, 0.32);
477
489
  }
478
490
 
479
- &:focus:not(:focus-visible) {
491
+ .charcoal-multi-select-input[type='checkbox']:focus:not(:focus-visible) {
480
492
  box-shadow: none;
481
493
  }
482
494
 
483
- &:hover:not(:disabled):not([aria-disabled]),
484
- &:hover[aria-disabled='false'] {
495
+ .charcoal-multi-select-input[type='checkbox']:hover:not(:disabled):not([aria-disabled]),
496
+ .charcoal-multi-select-input[type='checkbox']:hover[aria-disabled='false'] {
485
497
  background-color: var(--charcoal-text3-hover);
486
498
  }
487
499
 
488
- &:active:not(:disabled):not([aria-disabled]),
489
- &:active[aria-disabled='false'] {
500
+ .charcoal-multi-select-input[type='checkbox']:active:not(:disabled):not([aria-disabled]),
501
+ .charcoal-multi-select-input[type='checkbox']:active[aria-disabled='false'] {
490
502
  background-color: var(--charcoal-text3-press);
491
503
  }
492
504
 
493
- &:checked:hover:not(:disabled):not([aria-disabled]),
494
- &:checked:hover[aria-disabled='false'] {
505
+ .charcoal-multi-select-input[type='checkbox']:checked:hover:not(:disabled):not([aria-disabled]),
506
+ .charcoal-multi-select-input[type='checkbox']:checked:hover[aria-disabled='false'] {
495
507
  background-color: var(--charcoal-brand-hover);
496
508
  }
497
509
 
498
- &:checked:active:not(:disabled):not([aria-disabled]),
499
- &:checked:active[aria-disabled='false'] {
510
+ .charcoal-multi-select-input[type='checkbox']:checked:active:not(:disabled):not([aria-disabled]),
511
+ .charcoal-multi-select-input[type='checkbox']:checked:active[aria-disabled='false'] {
500
512
  background-color: var(--charcoal-brand-press);
501
513
  }
502
514
 
503
- &[aria-invalid='true'][data-overlay='false']:not(:disabled):not(
515
+ .charcoal-multi-select-input[type='checkbox'][aria-invalid='true'][data-overlay='false']:not(:disabled):not(
504
516
  [aria-disabled]
505
517
  ) {
506
518
  box-shadow: 0 0 0 4px rgba(255, 43, 0, 0.32);
507
519
  }
508
520
 
509
- &[aria-invalid='true'][data-overlay='false'][aria-disabled='false'] {
521
+ .charcoal-multi-select-input[type='checkbox'][aria-invalid='true'][data-overlay='false'][aria-disabled='false'] {
510
522
  box-shadow: 0 0 0 4px rgba(255, 43, 0, 0.32);
511
523
  }
512
524
 
513
- &[data-overlay='true'] {
525
+ .charcoal-multi-select-input[type='checkbox'][data-overlay='true'] {
514
526
  background-color: var(--charcoal-surface4);
515
527
  }
516
- }
517
528
 
518
529
  .charcoal-multi-select-overlay {
519
530
  position: absolute;
@@ -528,24 +539,23 @@
528
539
  border-radius: 999999px;
529
540
  color: var(--charcoal-text5);
530
541
  transition: 0.2s box-shadow;
542
+ }
531
543
 
532
- &[aria-invalid='true'][data-overlay='true']:not(:disabled):not(
544
+ .charcoal-multi-select-overlay[aria-invalid='true'][data-overlay='true']:not(:disabled):not(
533
545
  [aria-disabled]
534
546
  ) {
535
547
  box-shadow: 0 0 0 4px rgba(255, 43, 0, 0.32);
536
548
  }
537
549
 
538
- &[aria-invalid='true'][data-overlay='true'][aria-disabled='false'] {
550
+ .charcoal-multi-select-overlay[aria-invalid='true'][data-overlay='true'][aria-disabled='false'] {
539
551
  box-shadow: 0 0 0 4px rgba(255, 43, 0, 0.32);
540
552
  }
541
553
 
542
- &[data-overlay='true'] {
554
+ .charcoal-multi-select-overlay[data-overlay='true'] {
543
555
  border-color: var(--charcoal-text5);
544
556
  border-width: 2px;
545
557
  border-style: solid;
546
558
  }
547
- }
548
-
549
559
  .charcoal-switch__label {
550
560
  display: inline-grid;
551
561
  grid-template-columns: auto 1fr;
@@ -553,26 +563,27 @@
553
563
  cursor: pointer;
554
564
  outline: 0;
555
565
  gap: 4px;
566
+ }
556
567
 
557
- &[aria-disabled='true'] {
568
+ .charcoal-switch__label[aria-disabled='true'] {
558
569
  opacity: 0.32;
559
570
  cursor: default;
571
+ }
560
572
 
561
- & > input {
573
+ .charcoal-switch__label[aria-disabled='true'] > input {
562
574
  opacity: 1;
563
575
  }
564
- }
565
- }
566
576
 
567
577
  .charcoal-switch__label_div {
568
578
  font-size: 14px;
569
579
  line-height: 22px;
570
580
  color: var(--charcoal-text2);
571
581
  }
572
-
573
582
  .charcoal-switch-input {
574
583
  cursor: pointer;
575
- appearance: none;
584
+ -webkit-appearance: none;
585
+ -moz-appearance: none;
586
+ appearance: none;
576
587
  display: inline-flex;
577
588
  position: relative;
578
589
  box-sizing: border-box;
@@ -652,16 +663,15 @@
652
663
  .charcoal-switch-input:not(:disabled):checked:active {
653
664
  background-color: var(--charcoal-brand-press);
654
665
  }
655
-
656
666
  .charcoal-text-field-root {
657
667
  display: grid;
658
668
  grid-template-columns: 1fr;
659
669
  grid-gap: 4px;
670
+ }
660
671
 
661
- &[aria-disabled='true'] {
672
+ .charcoal-text-field-root[aria-disabled='true'] {
662
673
  opacity: 0.32;
663
674
  }
664
- }
665
675
 
666
676
  .charcoal-text-field-container {
667
677
  display: flex;
@@ -675,24 +685,24 @@
675
685
  padding: 0 8px;
676
686
  line-height: 22px;
677
687
  font-size: 14px;
688
+ }
678
689
 
679
- &[data-invalid='true'] {
690
+ .charcoal-text-field-container[data-invalid='true'] {
680
691
  box-shadow: 0 0 0 4px rgba(255, 43, 0, 0.32);
681
692
  }
682
693
 
683
- &:not([aria-disabled='true']):hover {
694
+ .charcoal-text-field-container:not([aria-disabled='true']):hover {
684
695
  background-color: var(--charcoal-surface3-hover);
685
696
  }
686
697
 
687
- &:not([aria-disabled='true']):focus-within {
698
+ .charcoal-text-field-container:not([aria-disabled='true']):focus-within {
688
699
  outline: none;
689
700
  box-shadow: 0 0 0 4px rgba(0, 150, 250, 0.32);
690
701
  }
691
702
 
692
- &:not([aria-disabled='true'])[data-invalid='true']:focus-within {
703
+ .charcoal-text-field-container:not([aria-disabled='true'])[data-invalid='true']:focus-within {
693
704
  box-shadow: 0 0 0 4px rgba(255, 43, 0, 0.32);
694
705
  }
695
- }
696
706
 
697
707
  .charcoal-text-field-prefix {
698
708
  display: flex;
@@ -725,22 +735,27 @@
725
735
  border-radius: calc(4px / 0.875);
726
736
 
727
737
  /* Display box-shadow for iOS Safari */
728
- appearance: none;
738
+ -webkit-appearance: none;
739
+ -moz-appearance: none;
740
+ appearance: none;
729
741
  background: transparent;
730
742
 
731
743
  color: var(--charcoal-text2);
744
+ }
732
745
 
733
- &::placeholder {
746
+ .charcoal-text-field-input::-moz-placeholder {
747
+ color: var(--charcoal-text3);
748
+ }
749
+
750
+ .charcoal-text-field-input::placeholder {
734
751
  color: var(--charcoal-text3);
735
752
  }
736
- }
737
753
 
738
754
  .charcoal-text-field-line-counter {
739
755
  line-height: 22px;
740
756
  font-size: 14px;
741
757
  color: var(--charcoal-text3);
742
758
  }
743
-
744
759
  .charcoal-field-label {
745
760
  font-size: 14px;
746
761
  line-height: 22px;
@@ -769,16 +784,15 @@
769
784
  .charcoal-field-label-root {
770
785
  display: inline-flex;
771
786
  align-items: center;
787
+ }
772
788
 
773
- & > .charcoal-field-label-required-text {
789
+ .charcoal-field-label-root > .charcoal-field-label-required-text {
774
790
  margin-left: 4px;
775
791
  }
776
792
 
777
- & > .charcoal-field-label-sub-label {
793
+ .charcoal-field-label-root > .charcoal-field-label-sub-label {
778
794
  margin-left: auto;
779
795
  }
780
- }
781
-
782
796
  .charcoal-text-field-assistive-text {
783
797
  font-size: 14px;
784
798
  line-height: 22px;
@@ -789,16 +803,15 @@
789
803
  .charcoal-text-field-assistive-text[data-invalid='true'] {
790
804
  color: var(--charcoal-assertive);
791
805
  }
792
-
793
806
  .charcoal-text-area-root {
794
807
  display: grid;
795
808
  grid-template-columns: 1fr;
796
809
  grid-gap: 4px;
810
+ }
797
811
 
798
- &[aria-disabled='true'] {
812
+ .charcoal-text-area-root[aria-disabled='true'] {
799
813
  opacity: 0.32;
800
814
  }
801
- }
802
815
 
803
816
  .charcoal-text-area-container {
804
817
  position: relative;
@@ -811,24 +824,24 @@
811
824
  0.2s background-color,
812
825
  0.2s box-shadow;
813
826
  height: calc(22px * var(--charcoal-text-area-rows) + 18px);
827
+ }
814
828
 
815
- &[aria-invalid='true'] {
829
+ .charcoal-text-area-container[aria-invalid='true'] {
816
830
  box-shadow: 0 0 0 4px rgba(255, 43, 0, 0.32);
817
831
  }
818
832
 
819
- &:focus-within {
833
+ .charcoal-text-area-container:focus-within {
820
834
  outline: none;
821
835
  box-shadow: 0 0 0 4px rgba(0, 150, 250, 0.32);
822
836
  }
823
837
 
824
- &:not([aria-disabled='true']):hover {
838
+ .charcoal-text-area-container:not([aria-disabled='true']):hover {
825
839
  background-color: var(--charcoal-surface3-hover);
826
840
  }
827
841
 
828
- &[aria-invalid='true']:focus-within {
842
+ .charcoal-text-area-container[aria-invalid='true']:focus-within {
829
843
  box-shadow: 0 0 0 4px rgba(255, 43, 0, 0.32);
830
844
  }
831
- }
832
845
 
833
846
  .charcoal-text-area-textarea {
834
847
  border: none;
@@ -848,19 +861,25 @@
848
861
  height: calc(22px / 0.875 * var(--charcoal-text-area-rows) + 20px);
849
862
 
850
863
  /* Display box-shadow for iOS Safari */
851
- appearance: none;
864
+ -webkit-appearance: none;
865
+ -moz-appearance: none;
866
+ appearance: none;
852
867
 
853
868
  background: none;
869
+ }
854
870
 
855
- &[data-no-bottom-padding='true'] {
871
+ .charcoal-text-area-textarea[data-no-bottom-padding='true'] {
856
872
  padding: calc(9px / 0.875) calc(8px / 0.875) 0;
857
873
  height: calc(22px / 0.875 * (var(--charcoal-text-area-rows) - 1) + 9px);
858
874
  }
859
875
 
860
- &::placeholder {
876
+ .charcoal-text-area-textarea::-moz-placeholder {
877
+ color: var(--charcoal-text3);
878
+ }
879
+
880
+ .charcoal-text-area-textarea::placeholder {
861
881
  color: var(--charcoal-text3);
862
882
  }
863
- }
864
883
 
865
884
  .charcoal-text-area-counter {
866
885
  position: absolute;
@@ -871,10 +890,10 @@
871
890
  font-size: 14px;
872
891
  color: var(--charcoal-text3);
873
892
  }
874
-
875
893
  .charcoal-modal-dialog {
876
894
  margin: auto;
877
895
  position: relative;
896
+ height: -moz-fit-content;
878
897
  height: fit-content;
879
898
  width: 440px;
880
899
 
@@ -916,7 +935,6 @@
916
935
  .charcoal-modal-dialog:focus {
917
936
  outline: none;
918
937
  }
919
-
920
938
  .charcoal-modal-background {
921
939
  overflow: auto;
922
940
  display: flex;
@@ -930,14 +948,14 @@
930
948
  box-sizing: border-box;
931
949
 
932
950
  background-color: var(--charcoal-surface4);
951
+ }
933
952
 
934
953
  @media (max-width: 743px) {
935
- &[data-bottom-sheet='true'],
936
- &[data-bottom-sheet='full'] {
954
+ .charcoal-modal-background[data-bottom-sheet='true'],
955
+ .charcoal-modal-background[data-bottom-sheet='full'] {
937
956
  padding: 0;
938
957
  }
939
958
  }
940
- }
941
959
 
942
960
  .charcoal-modal-close-button {
943
961
  position: absolute;
@@ -953,7 +971,6 @@
953
971
  font-weight: inherit;
954
972
  font-size: inherit;
955
973
  }
956
-
957
974
  .charcoal-modal-header-root {
958
975
  height: 64px;
959
976
  display: grid;
@@ -994,7 +1011,6 @@
994
1011
  padding-left: 16px;
995
1012
  padding-right: 16px;
996
1013
  }
997
-
998
1014
  .charcoal-loading-spinner {
999
1015
  box-sizing: content-box;
1000
1016
  margin: auto;
@@ -1006,11 +1022,11 @@
1006
1022
  opacity: 0.84;
1007
1023
  color: var(--charcoal-text4);
1008
1024
  background-color: var(--charcoal-background1);
1025
+ }
1009
1026
 
1010
- &[data-transparent='true'] {
1027
+ .charcoal-loading-spinner[data-transparent='true'] {
1011
1028
  background-color: var(--charcoal-transparent);
1012
1029
  }
1013
- }
1014
1030
 
1015
1031
  @keyframes charcoal-loading-spinner-icon-scale-out {
1016
1032
  from {
@@ -1030,27 +1046,26 @@
1030
1046
  background-color: currentColor;
1031
1047
  animation: charcoal-loading-spinner-icon-scale-out 1s both ease-out;
1032
1048
  animation-iteration-count: infinite;
1049
+ }
1033
1050
 
1034
- &[data-reset-animation] {
1051
+ .charcoal-loading-spinner-icon[data-reset-animation] {
1035
1052
  animation: none;
1036
1053
  }
1037
1054
 
1038
- &[data-once='true'] {
1055
+ .charcoal-loading-spinner-icon[data-once='true'] {
1039
1056
  animation-iteration-count: 1;
1040
1057
  }
1041
- }
1042
-
1043
1058
  .charcoal-dropdown-selector-root {
1044
1059
  display: grid;
1045
1060
  grid-template-columns: 1fr;
1046
1061
  grid-gap: 4px;
1047
1062
  width: 100%;
1063
+ }
1048
1064
 
1049
- &[aria-disabled='true'] {
1065
+ .charcoal-dropdown-selector-root[aria-disabled='true'] {
1050
1066
  cursor: default;
1051
1067
  opacity: 0.32;
1052
1068
  }
1053
- }
1054
1069
 
1055
1070
  .charcoal-dropdown-selector-button {
1056
1071
  display: grid;
@@ -1073,40 +1088,38 @@
1073
1088
  transition:
1074
1089
  0.2s box-shadow,
1075
1090
  0.2s background-color;
1091
+ }
1076
1092
 
1077
- &:disabled {
1093
+ .charcoal-dropdown-selector-button:disabled {
1078
1094
  cursor: default;
1079
1095
  }
1080
1096
 
1081
- &:not(:disabled) {
1082
- &:focus {
1097
+ .charcoal-dropdown-selector-button:not(:disabled):focus {
1083
1098
  outline: none;
1084
1099
  box-shadow: 0 0 0 4px rgba(0, 150, 250, 0.32);
1085
1100
  }
1086
1101
 
1087
- &:focus-visible {
1102
+ .charcoal-dropdown-selector-button:not(:disabled):focus-visible {
1088
1103
  box-shadow: 0 0 0 4px rgba(0, 150, 250, 0.32);
1089
1104
  }
1090
1105
 
1091
- &[data-active='true'],
1092
- &:active {
1106
+ .charcoal-dropdown-selector-button:not(:disabled)[data-active='true'],
1107
+ .charcoal-dropdown-selector-button:not(:disabled):active {
1093
1108
  background-color: var(--charcoal-surface3-press);
1094
1109
  }
1095
1110
 
1096
- &:hover {
1111
+ .charcoal-dropdown-selector-button:not(:disabled):hover {
1097
1112
  background-color: var(--charcoal-surface3-hover);
1098
1113
  }
1099
1114
 
1100
- &:focus:not(:focus-visible) {
1115
+ .charcoal-dropdown-selector-button:not(:disabled):focus:not(:focus-visible) {
1101
1116
  box-shadow: none;
1102
1117
  }
1103
- }
1104
1118
 
1105
- &[aria-invalid='true'],
1106
- &:not(:disabled)[aria-invalid='true']:focus:not(:focus-visible) {
1119
+ .charcoal-dropdown-selector-button[aria-invalid='true'],
1120
+ .charcoal-dropdown-selector-button:not(:disabled)[aria-invalid='true']:focus:not(:focus-visible) {
1107
1121
  box-shadow: 0 0 0 4px rgba(255, 43, 0, 0.32);
1108
1122
  }
1109
- }
1110
1123
 
1111
1124
  .charcoal-ui-dropdown-selector-text {
1112
1125
  text-align: left;
@@ -1117,16 +1130,15 @@
1117
1130
  overflow: hidden;
1118
1131
  text-overflow: ellipsis;
1119
1132
  white-space: nowrap;
1133
+ }
1120
1134
 
1121
- &[data-placeholder='true'] {
1135
+ .charcoal-ui-dropdown-selector-text[data-placeholder='true'] {
1122
1136
  color: var(--charcoal-text3);
1123
1137
  }
1124
- }
1125
1138
 
1126
1139
  .charcoal-ui-dropdown-selector-icon {
1127
1140
  color: var(--charcoal-text2);
1128
1141
  }
1129
-
1130
1142
  .charcoal-popover {
1131
1143
  margin: 4px 0;
1132
1144
  list-style: none;
@@ -1138,12 +1150,10 @@
1138
1150
  padding-top: 8px;
1139
1151
  padding-bottom: 8px;
1140
1152
  }
1141
-
1142
1153
  .charcoal-menu-list {
1143
1154
  padding: 0;
1144
1155
  margin: 0;
1145
1156
  }
1146
-
1147
1157
  .charcoal-list-item {
1148
1158
  list-style: none;
1149
1159
  display: flex;
@@ -1168,7 +1178,6 @@
1168
1178
  opacity: 0.32;
1169
1179
  cursor: default;
1170
1180
  }
1171
-
1172
1181
  .charcoal-dropdown-selector-menu-item {
1173
1182
  font-size: 14px;
1174
1183
  line-height: 22px;
@@ -1209,7 +1218,6 @@
1209
1218
  .charcoal-dropdown-selector-menu-fullwidth {
1210
1219
  width: 100%;
1211
1220
  }
1212
-
1213
1221
  .charcoal-menu-item-group {
1214
1222
  display: block;
1215
1223
  }
@@ -1229,26 +1237,25 @@
1229
1237
  list-style: none;
1230
1238
  overflow: hidden;
1231
1239
  }
1232
-
1233
1240
  .charcoal-segmented-control {
1234
1241
  display: inline-flex;
1235
1242
  align-items: center;
1236
1243
 
1237
1244
  background-color: var(--charcoal-surface3);
1238
1245
  border-radius: 16px;
1246
+ }
1239
1247
 
1240
- &[data-uniform-segment-width='true'],
1241
- &[data-full-width='true'] {
1248
+ .charcoal-segmented-control[data-uniform-segment-width='true'],
1249
+ .charcoal-segmented-control[data-full-width='true'] {
1242
1250
  display: inline-grid;
1243
1251
  grid-auto-columns: minmax(80px, 1fr);
1244
1252
  grid-auto-rows: 32px;
1245
1253
  grid-auto-flow: column;
1246
1254
  }
1247
1255
 
1248
- &[data-full-width='true'] {
1256
+ .charcoal-segmented-control[data-full-width='true'] {
1249
1257
  width: 100%;
1250
1258
  }
1251
- }
1252
1259
 
1253
1260
  .charcoal-segmented-control-radio__label {
1254
1261
  position: relative;
@@ -1265,23 +1272,23 @@
1265
1272
 
1266
1273
  font-size: 14px;
1267
1274
  line-height: 22px;
1275
+ }
1268
1276
 
1269
- &[aria-disabled]:not([aria-disabled='false']) {
1277
+ .charcoal-segmented-control-radio__label[aria-disabled]:not([aria-disabled='false']) {
1270
1278
  cursor: default;
1271
1279
  opacity: 0.32;
1272
1280
  }
1273
1281
 
1274
- &[data-checked='true'] {
1282
+ .charcoal-segmented-control-radio__label[data-checked='true'] {
1275
1283
  background-color: var(--charcoal-brand);
1276
1284
  color: var(--charcoal-text5);
1277
1285
  }
1278
1286
 
1279
- &[data-uniform-segment-width='true'],
1280
- &[data-full-width='true'] {
1287
+ .charcoal-segmented-control-radio__label[data-uniform-segment-width='true'],
1288
+ .charcoal-segmented-control-radio__label[data-full-width='true'] {
1281
1289
  justify-content: center;
1282
1290
  white-space: nowrap;
1283
1291
  }
1284
- }
1285
1292
 
1286
1293
  .charcoal-segmented-control-radio__input {
1287
1294
  position: absolute;
@@ -1291,28 +1298,31 @@
1291
1298
  padding: 0;
1292
1299
  margin: 0;
1293
1300
 
1294
- appearance: none;
1301
+ -webkit-appearance: none;
1302
+
1303
+ -moz-appearance: none;
1304
+
1305
+ appearance: none;
1295
1306
  box-sizing: border-box;
1296
1307
  overflow: hidden;
1297
1308
  white-space: nowrap;
1298
1309
  opacity: 0;
1299
1310
  }
1300
-
1301
1311
  .charcoal-checkbox__label {
1302
1312
  position: relative;
1303
1313
  cursor: pointer;
1304
1314
  display: flex;
1305
1315
  gap: 4px;
1316
+ }
1306
1317
 
1307
- &[aria-disabled='true'] {
1318
+ .charcoal-checkbox__label[aria-disabled='true'] {
1308
1319
  cursor: default;
1309
1320
  opacity: 0.32;
1321
+ }
1310
1322
 
1311
- & > input {
1323
+ .charcoal-checkbox__label[aria-disabled='true'] > input {
1312
1324
  opacity: 1;
1313
1325
  }
1314
- }
1315
- }
1316
1326
 
1317
1327
  .charcoal-checkbox__label_div {
1318
1328
  flex: 1;
@@ -1320,9 +1330,10 @@
1320
1330
  font-size: 14px;
1321
1331
  line-height: 20px;
1322
1332
  }
1323
-
1324
1333
  .charcoal-checkbox-input {
1325
- appearance: none;
1334
+ -webkit-appearance: none;
1335
+ -moz-appearance: none;
1336
+ appearance: none;
1326
1337
  display: flex;
1327
1338
  cursor: pointer;
1328
1339
  margin: 0;
@@ -1433,7 +1444,6 @@
1433
1444
  border: 2px solid #fff;
1434
1445
  box-sizing: border-box;
1435
1446
  }
1436
-
1437
1447
  .charcoal-tag-item {
1438
1448
  --charcoal-tag-item-color: var(--charcoal-text5);
1439
1449
  --charcoal-tag-item-size: 40px;
@@ -1443,7 +1453,11 @@
1443
1453
  isolation: isolate;
1444
1454
  position: relative;
1445
1455
 
1446
- appearance: none;
1456
+ -webkit-appearance: none;
1457
+
1458
+ -moz-appearance: none;
1459
+
1460
+ appearance: none;
1447
1461
  outline: none;
1448
1462
  border-style: none;
1449
1463
 
@@ -1466,59 +1480,61 @@
1466
1480
  border-radius: 4px;
1467
1481
 
1468
1482
  transition: 0.2s box-shadow;
1483
+ }
1469
1484
 
1470
- &[data-size='M'] {
1485
+ .charcoal-tag-item[data-size='M'] {
1471
1486
  --charcoal-tag-item-size: 40px;
1472
1487
  --charcoal-tag-item-padding-left: 24px;
1473
1488
  --charcoal-tag-item-padding-right: 24px;
1474
1489
  }
1475
1490
 
1476
- &[data-size='S'] {
1491
+ .charcoal-tag-item[data-size='S'] {
1477
1492
  --charcoal-tag-item-size: 32px;
1478
1493
  --charcoal-tag-item-padding-left: 16px;
1479
1494
  --charcoal-tag-item-padding-right: 16px;
1480
1495
  }
1481
1496
 
1482
- &[data-state='inactive'] {
1497
+ .charcoal-tag-item[data-state='inactive'] {
1483
1498
  --charcoal-tag-item-color: var(--charcoal-text2);
1484
1499
  }
1485
1500
 
1486
- &[data-state='active'] {
1501
+ .charcoal-tag-item[data-state='active'] {
1487
1502
  --charcoal-tag-item-padding-left: 16px;
1488
1503
  --charcoal-tag-item-padding-right: 8px;
1489
1504
  }
1490
1505
 
1491
- &:disabled,
1492
- &[aria-disabled]:not([aria-disabled='false']) {
1506
+ .charcoal-tag-item:disabled,
1507
+ .charcoal-tag-item[aria-disabled]:not([aria-disabled='false']) {
1493
1508
  opacity: 0.32;
1494
1509
  cursor: default;
1495
1510
  }
1496
1511
 
1497
- &:not(:disabled):not([aria-disabled]):focus-visible,
1498
- &[aria-disabled='false']:focus-visible {
1512
+ .charcoal-tag-item:not(:disabled):not([aria-disabled]):focus-visible,
1513
+ .charcoal-tag-item[aria-disabled='false']:focus-visible {
1499
1514
  outline: none;
1500
1515
  box-shadow: 0 0 0 4px rgba(0, 150, 250, 0.32);
1501
1516
  }
1502
1517
 
1503
- &:not(:disabled):not([aria-disabled]):focus,
1504
- &[aria-disabled='false']:focus {
1518
+ .charcoal-tag-item:not(:disabled):not([aria-disabled]):focus,
1519
+ .charcoal-tag-item[aria-disabled='false']:focus {
1505
1520
  outline: none;
1506
1521
  box-shadow: 0 0 0 4px rgba(0, 150, 250, 0.32);
1507
1522
  }
1508
1523
 
1509
- &:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
1510
- &[aria-disabled='false']:focus:not(:focus-visible) {
1524
+ .charcoal-tag-item:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
1525
+ .charcoal-tag-item[aria-disabled='false']:focus:not(:focus-visible) {
1511
1526
  box-shadow: none;
1512
1527
  }
1513
- }
1514
1528
 
1515
1529
  .charcoal-tag-item__bg {
1516
1530
  background-color: var(--charcoal-tag-item-bg);
1531
+ }
1517
1532
 
1518
- &[data-bg-variant='image'] {
1533
+ .charcoal-tag-item__bg[data-bg-variant='image'] {
1519
1534
  background-color: var(--charcoal-surface4);
1535
+ }
1520
1536
 
1521
- &::before {
1537
+ .charcoal-tag-item__bg[data-bg-variant='image']::before {
1522
1538
  content: '';
1523
1539
  position: absolute;
1524
1540
  z-index: 1;
@@ -1531,12 +1547,10 @@
1531
1547
  background-image: var(--charcoal-tag-item-bg);
1532
1548
  mix-blend-mode: overlay;
1533
1549
  }
1534
- }
1535
1550
 
1536
- &[data-state='inactive'] {
1551
+ .charcoal-tag-item__bg[data-state='inactive'] {
1537
1552
  background-color: var(--charcoal-surface3);
1538
1553
  }
1539
- }
1540
1554
 
1541
1555
  .charcoal-tag-item__label {
1542
1556
  height: 100%;
@@ -1544,21 +1558,21 @@
1544
1558
  flex-direction: column;
1545
1559
  align-items: center;
1546
1560
  justify-content: center;
1561
+ }
1547
1562
 
1548
- &[data-has-translate='true'] {
1563
+ .charcoal-tag-item__label[data-has-translate='true'] {
1549
1564
  justify-content: space-between;
1550
1565
  }
1551
- }
1552
1566
 
1553
1567
  .charcoal-tag-item__label__translated {
1554
1568
  --charcoal-tag-item-text-font-size: 12px;
1555
1569
  --charcoal-tag-item-text-line-height: 20px;
1556
1570
  font-weight: bold;
1571
+ }
1557
1572
 
1558
- &::before {
1573
+ .charcoal-tag-item__label__translated::before {
1559
1574
  display: none;
1560
1575
  }
1561
- }
1562
1576
 
1563
1577
  .charcoal-tag-item__label__text {
1564
1578
  --charcoal-tag-item-text-font-size: 14px;
@@ -1571,34 +1585,36 @@
1571
1585
  color: inherit;
1572
1586
  white-space: nowrap;
1573
1587
  text-overflow: ellipsis;
1588
+ }
1574
1589
 
1575
- &[data-has-translate='true'] {
1590
+ .charcoal-tag-item__label__text[data-has-translate='true'] {
1576
1591
  --charcoal-tag-item-text-font-size: 10px;
1577
1592
  --charcoal-tag-item-text-line-height: 14px;
1578
1593
  font-weight: normal;
1579
1594
  }
1580
- }
1581
1595
 
1582
1596
  /* Kept flat: different class name from .charcoal-tag-item__label__text (note: "labe" typo in original) */
1583
1597
  .charcoal-tag-item__labe__text[data-has-translate='true']::after {
1584
1598
  display: none;
1585
1599
  }
1586
-
1587
1600
  .charcoal-hint-text {
1588
1601
  background-color: var(--charcoal-surface3);
1589
1602
  border-radius: 8px;
1590
1603
  padding: 12px 16px;
1591
1604
  display: flex;
1592
1605
  align-items: flex-start;
1606
+ }
1593
1607
 
1594
- &[data-context='page'] {
1608
+ .charcoal-hint-text[data-context='page'] {
1595
1609
  justify-content: center;
1610
+ }
1596
1611
 
1597
- @media (min-width: 744px) {
1598
- padding: 20px 40px;
1599
- }
1612
+ @media (min-width: 744px) {
1613
+
1614
+ .charcoal-hint-text[data-context='page'] {
1615
+ padding: 20px 40px
1600
1616
  }
1601
- }
1617
+ }
1602
1618
 
1603
1619
  .charcoal-hint-text-icon {
1604
1620
  display: flex;
@@ -1617,55 +1633,57 @@
1617
1633
  min-width: 0;
1618
1634
  overflow-wrap: break-word;
1619
1635
  }
1620
-
1621
1636
  .charcoal-text-ellipsis {
1622
1637
  overflow: hidden;
1623
1638
  overflow-wrap: break-word;
1624
1639
  display: -webkit-box;
1625
1640
  -webkit-box-orient: vertical;
1626
1641
  -webkit-line-clamp: var(--charcoal-text-ellipsis-line-limit);
1642
+ }
1627
1643
 
1628
- &[data-has-line-height='true'] {
1644
+ .charcoal-text-ellipsis[data-has-line-height='true'] {
1629
1645
  line-height: var(--charcoal-text-ellipsis-line-height);
1630
1646
  }
1631
1647
 
1632
- &[data-has-line-height='false'] {
1648
+ .charcoal-text-ellipsis[data-has-line-height='false'] {
1633
1649
  line-height: inherit;
1634
1650
  }
1635
1651
 
1636
- &[data-line-limit='1'][data-use-nowrap='true'] {
1652
+ .charcoal-text-ellipsis[data-line-limit='1'][data-use-nowrap='true'] {
1637
1653
  text-overflow: ellipsis;
1638
1654
  white-space: nowrap;
1639
1655
  }
1640
- }
1641
-
1642
1656
  .charcoal-pagination {
1643
1657
  display: flex;
1644
1658
  justify-content: center;
1645
1659
  align-items: center;
1660
+ }
1646
1661
 
1647
- &[data-size='S'] .charcoal-pagination-button {
1662
+ .charcoal-pagination[data-size='S'] .charcoal-pagination-button {
1648
1663
  min-width: 32px;
1649
1664
  min-height: 32px;
1650
1665
  }
1651
1666
 
1652
- &[data-size='M'] .charcoal-pagination-button {
1667
+ .charcoal-pagination[data-size='M'] .charcoal-pagination-button {
1653
1668
  min-width: 40px;
1654
1669
  min-height: 40px;
1655
1670
  }
1656
- }
1657
1671
 
1658
1672
  /* stylelint-disable no-descending-specificity */
1659
1673
  .charcoal-pagination-button {
1660
1674
  cursor: pointer;
1661
- appearance: none;
1675
+ -webkit-appearance: none;
1676
+ -moz-appearance: none;
1677
+ appearance: none;
1662
1678
  padding: 0;
1663
1679
  border-style: none;
1664
1680
  outline: none;
1665
1681
  text-decoration: none;
1666
1682
  font: inherit;
1667
1683
  margin: 0;
1668
- user-select: none;
1684
+ -webkit-user-select: none;
1685
+ -moz-user-select: none;
1686
+ user-select: none;
1669
1687
 
1670
1688
  display: flex;
1671
1689
  align-items: center;
@@ -1687,61 +1705,51 @@
1687
1705
  transition:
1688
1706
  0.2s background-color,
1689
1707
  0.2s box-shadow;
1690
-
1691
- &:focus {
1708
+ }
1709
+ .charcoal-pagination-button:focus {
1692
1710
  outline: none;
1693
1711
  }
1694
-
1695
- &::-moz-focus-inner {
1712
+ .charcoal-pagination-button::-moz-focus-inner {
1696
1713
  border-style: none;
1697
1714
  padding: 0;
1698
1715
  }
1699
-
1700
- &[hidden] {
1716
+ .charcoal-pagination-button[hidden] {
1701
1717
  visibility: hidden;
1702
1718
  display: block;
1703
1719
  }
1704
-
1705
- &:not(:disabled):not([aria-disabled]):hover,
1706
- &[aria-disabled='false']:hover {
1720
+ .charcoal-pagination-button:not(:disabled):not([aria-disabled]):hover,
1721
+ .charcoal-pagination-button[aria-disabled='false']:hover {
1707
1722
  color: var(--charcoal-text3);
1708
1723
  background-color: var(--charcoal-surface3);
1709
1724
  }
1710
-
1711
- &:not(:disabled):not([aria-disabled]):active,
1712
- &[aria-disabled='false']:active {
1725
+ .charcoal-pagination-button:not(:disabled):not([aria-disabled]):active,
1726
+ .charcoal-pagination-button[aria-disabled='false']:active {
1713
1727
  color: var(--charcoal-text3);
1714
1728
  background-color: var(--charcoal-surface10);
1715
1729
  }
1716
-
1717
- &:not(:disabled):not([aria-disabled]):focus,
1718
- &[aria-disabled='false']:focus {
1730
+ .charcoal-pagination-button:not(:disabled):not([aria-disabled]):focus,
1731
+ .charcoal-pagination-button[aria-disabled='false']:focus {
1719
1732
  outline: none;
1720
1733
  box-shadow: 0 0 0 4px rgba(0, 150, 250, 0.32);
1721
1734
  }
1722
-
1723
- &:not(:disabled):not([aria-disabled]):focus-visible,
1724
- &[aria-disabled='false']:focus-visible {
1735
+ .charcoal-pagination-button:not(:disabled):not([aria-disabled]):focus-visible,
1736
+ .charcoal-pagination-button[aria-disabled='false']:focus-visible {
1725
1737
  box-shadow: 0 0 0 4px rgba(0, 150, 250, 0.32);
1726
1738
  }
1727
-
1728
- &:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
1729
- &[aria-disabled='false']:focus:not(:focus-visible) {
1739
+ .charcoal-pagination-button:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
1740
+ .charcoal-pagination-button[aria-disabled='false']:focus:not(:focus-visible) {
1730
1741
  box-shadow: none;
1731
1742
  }
1732
-
1733
- &[aria-current] {
1743
+ .charcoal-pagination-button[aria-current] {
1734
1744
  cursor: default;
1735
1745
  background-color: var(--charcoal-surface6);
1736
1746
  color: var(--charcoal-text5);
1737
-
1738
- &:not(:disabled):not([aria-disabled]):hover,
1739
- &:not(:disabled):not([aria-disabled]):active {
1747
+ }
1748
+ .charcoal-pagination-button[aria-current]:not(:disabled):not([aria-disabled]):hover,
1749
+ .charcoal-pagination-button[aria-current]:not(:disabled):not([aria-disabled]):active {
1740
1750
  background-color: var(--charcoal-surface6);
1741
1751
  color: var(--charcoal-text5);
1742
1752
  }
1743
- }
1744
- }
1745
1753
  /* stylelint-enable no-descending-specificity */
1746
1754
 
1747
1755
  /* Kept flat: different root class from .charcoal-pagination-button */
@@ -1750,19 +1758,14 @@
1750
1758
  display: block;
1751
1759
  }
1752
1760
 
1753
- .charcoal-pagination-spacer {
1754
- &,
1755
- &:hover,
1756
- &:active {
1761
+ .charcoal-pagination-spacer,
1762
+ .charcoal-pagination-spacer:hover,
1763
+ .charcoal-pagination-spacer:active {
1757
1764
  cursor: default;
1758
1765
  color: var(--charcoal-text3);
1759
1766
  background: none;
1760
1767
  }
1761
1768
 
1762
- &.charcoal-icon-button:disabled {
1769
+ .charcoal-pagination-spacer.charcoal-icon-button:disabled {
1763
1770
  opacity: 1;
1764
1771
  }
1765
- }
1766
-
1767
-
1768
- /*# sourceMappingURL=index.css.map*/