@charcoal-ui/react 5.8.0-beta.0 → 5.8.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/components/DropdownSelector/DropdownMenuItem/index.d.ts +1 -0
- package/dist/components/DropdownSelector/DropdownMenuItem/index.d.ts.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +613 -589
- package/dist/index.css.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/layered.css +613 -589
- package/dist/layered.css.map +1 -1
- package/package.json +5 -5
- package/src/components/Button/index.css +120 -105
- package/src/components/Checkbox/index.css +7 -7
- package/src/components/Clickable/index.css +11 -11
- package/src/components/DropdownSelector/DropdownMenuItem/index.css +4 -0
- package/src/components/DropdownSelector/DropdownMenuItem/index.tsx +12 -3
- package/src/components/DropdownSelector/index.css +33 -33
- package/src/components/FieldLabel/index.css +6 -6
- package/src/components/HintText/index.css +7 -5
- package/src/components/IconButton/index.css +89 -87
- package/src/components/LoadingSpinner/index.css +9 -11
- package/src/components/Modal/index.css +5 -5
- package/src/components/MultiSelect/__snapshots__/index.css.snap +3 -3
- package/src/components/MultiSelect/index.css +82 -74
- package/src/components/Pagination/__snapshots__/index.css.snap +10 -15
- package/src/components/Pagination/index.css +80 -79
- package/src/components/Radio/index.css +4 -4
- package/src/components/SegmentedControl/index.css +25 -23
- package/src/components/Switch/index.css +7 -7
- package/src/components/TagItem/__snapshots__/index.css.snap +0 -2
- package/src/components/TagItem/index.css +71 -80
- package/src/components/TextArea/index.css +23 -24
- package/src/components/TextEllipsis/index.css +10 -10
- package/src/components/TextField/index.css +21 -19
- package/src/index.ts +4 -0
|
@@ -11,12 +11,12 @@
|
|
|
11
11
|
box-sizing: border-box;
|
|
12
12
|
|
|
13
13
|
background-color: var(--charcoal-surface4);
|
|
14
|
+
}
|
|
14
15
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
16
|
+
@media (max-width: 743px) {
|
|
17
|
+
.charcoal-modal-background[data-bottom-sheet='true'],
|
|
18
|
+
.charcoal-modal-background[data-bottom-sheet='full'] {
|
|
19
|
+
padding: 0;
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
|
|
@@ -81,15 +81,15 @@
|
|
|
81
81
|
background-color: var(--charcoal-brand-press);
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
-
.charcoal-multi-select-input[
|
|
84
|
+
.charcoal-multi-select-input[aria-invalid='true'][data-overlay='false']:not(:disabled):not([aria-disabled]) {
|
|
85
85
|
box-shadow: 0 0 0 4px rgba(255, 43, 0, 0.32);
|
|
86
86
|
}
|
|
87
87
|
|
|
88
|
-
.charcoal-multi-select-input[
|
|
88
|
+
.charcoal-multi-select-input[aria-invalid='true'][data-overlay='false'][aria-disabled='false'] {
|
|
89
89
|
box-shadow: 0 0 0 4px rgba(255, 43, 0, 0.32);
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
-
.charcoal-multi-select-input[
|
|
92
|
+
.charcoal-multi-select-input[data-overlay='true'] {
|
|
93
93
|
background-color: var(--charcoal-surface4);
|
|
94
94
|
}
|
|
95
95
|
|
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
position: relative;
|
|
6
6
|
cursor: pointer;
|
|
7
7
|
gap: 4px;
|
|
8
|
+
}
|
|
8
9
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
10
|
+
.charcoal-multi-select:disabled,
|
|
11
|
+
.charcoal-multi-select[aria-disabled]:not([aria-disabled='false']) {
|
|
12
|
+
opacity: 0.32;
|
|
13
|
+
cursor: default;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
.charcoal-multi-select-label {
|
|
@@ -19,22 +19,22 @@
|
|
|
19
19
|
font-size: 14px;
|
|
20
20
|
line-height: 22px;
|
|
21
21
|
color: var(--charcoal-text2);
|
|
22
|
+
}
|
|
22
23
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
24
|
+
.charcoal-multi-select-label::before {
|
|
25
|
+
display: block;
|
|
26
|
+
width: 0;
|
|
27
|
+
height: 0;
|
|
28
|
+
content: '';
|
|
29
|
+
margin-top: -4px;
|
|
30
|
+
}
|
|
30
31
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
}
|
|
32
|
+
.charcoal-multi-select-label::after {
|
|
33
|
+
display: block;
|
|
34
|
+
width: 0;
|
|
35
|
+
height: 0;
|
|
36
|
+
content: '';
|
|
37
|
+
margin-bottom: -4px;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
.charcoal-multi-select-input[type='checkbox'] {
|
|
@@ -48,57 +48,65 @@
|
|
|
48
48
|
transition:
|
|
49
49
|
0.2s background-color,
|
|
50
50
|
0.2s box-shadow;
|
|
51
|
+
}
|
|
51
52
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
53
|
+
.charcoal-multi-select-input[type='checkbox']:checked {
|
|
54
|
+
background-color: var(--charcoal-brand);
|
|
55
|
+
}
|
|
55
56
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
57
|
+
.charcoal-multi-select-input[type='checkbox']:focus {
|
|
58
|
+
outline: none;
|
|
59
|
+
box-shadow: 0 0 0 4px rgba(0, 150, 250, 0.32);
|
|
60
|
+
}
|
|
60
61
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
62
|
+
.charcoal-multi-select-input[type='checkbox']:focus-visible {
|
|
63
|
+
box-shadow: 0 0 0 4px rgba(0, 150, 250, 0.32);
|
|
64
|
+
}
|
|
64
65
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
66
|
+
.charcoal-multi-select-input[type='checkbox']:focus:not(:focus-visible) {
|
|
67
|
+
box-shadow: none;
|
|
68
|
+
}
|
|
68
69
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
70
|
+
.charcoal-multi-select-input[type='checkbox']:hover:not(:disabled):not(
|
|
71
|
+
[aria-disabled]
|
|
72
|
+
),
|
|
73
|
+
.charcoal-multi-select-input[type='checkbox']:hover[aria-disabled='false'] {
|
|
74
|
+
background-color: var(--charcoal-text3-hover);
|
|
75
|
+
}
|
|
73
76
|
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
77
|
+
.charcoal-multi-select-input[type='checkbox']:active:not(:disabled):not(
|
|
78
|
+
[aria-disabled]
|
|
79
|
+
),
|
|
80
|
+
.charcoal-multi-select-input[type='checkbox']:active[aria-disabled='false'] {
|
|
81
|
+
background-color: var(--charcoal-text3-press);
|
|
82
|
+
}
|
|
78
83
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
84
|
+
.charcoal-multi-select-input[type='checkbox']:checked:hover:not(:disabled):not(
|
|
85
|
+
[aria-disabled]
|
|
86
|
+
),
|
|
87
|
+
.charcoal-multi-select-input[type='checkbox']:checked:hover[aria-disabled='false'] {
|
|
88
|
+
background-color: var(--charcoal-brand-hover);
|
|
89
|
+
}
|
|
83
90
|
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
91
|
+
.charcoal-multi-select-input[type='checkbox']:checked:active:not(:disabled):not(
|
|
92
|
+
[aria-disabled]
|
|
93
|
+
),
|
|
94
|
+
.charcoal-multi-select-input[type='checkbox']:checked:active[aria-disabled='false'] {
|
|
95
|
+
background-color: var(--charcoal-brand-press);
|
|
96
|
+
}
|
|
88
97
|
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
98
|
+
.charcoal-multi-select-input[aria-invalid='true'][data-overlay='false']:not(
|
|
99
|
+
:disabled
|
|
100
|
+
):not([aria-disabled]) {
|
|
101
|
+
box-shadow: 0 0 0 4px rgba(255, 43, 0, 0.32);
|
|
102
|
+
}
|
|
94
103
|
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
104
|
+
.charcoal-multi-select-input[aria-invalid='true'][data-overlay='false'][aria-disabled='false'] {
|
|
105
|
+
box-shadow: 0 0 0 4px rgba(255, 43, 0, 0.32);
|
|
106
|
+
}
|
|
98
107
|
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
}
|
|
108
|
+
.charcoal-multi-select-input[data-overlay='true'] {
|
|
109
|
+
background-color: var(--charcoal-surface4);
|
|
102
110
|
}
|
|
103
111
|
|
|
104
112
|
.charcoal-multi-select-overlay {
|
|
@@ -114,20 +122,20 @@
|
|
|
114
122
|
border-radius: 999999px;
|
|
115
123
|
color: var(--charcoal-text5);
|
|
116
124
|
transition: 0.2s box-shadow;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.charcoal-multi-select-overlay[aria-invalid='true'][data-overlay='true']:not(
|
|
128
|
+
:disabled
|
|
129
|
+
):not([aria-disabled]) {
|
|
130
|
+
box-shadow: 0 0 0 4px rgba(255, 43, 0, 0.32);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.charcoal-multi-select-overlay[aria-invalid='true'][data-overlay='true'][aria-disabled='false'] {
|
|
134
|
+
box-shadow: 0 0 0 4px rgba(255, 43, 0, 0.32);
|
|
135
|
+
}
|
|
117
136
|
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
&[aria-invalid='true'][data-overlay='true'][aria-disabled='false'] {
|
|
125
|
-
box-shadow: 0 0 0 4px rgba(255, 43, 0, 0.32);
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
&[data-overlay='true'] {
|
|
129
|
-
border-color: var(--charcoal-text5);
|
|
130
|
-
border-width: 2px;
|
|
131
|
-
border-style: solid;
|
|
132
|
-
}
|
|
137
|
+
.charcoal-multi-select-overlay[data-overlay='true'] {
|
|
138
|
+
border-color: var(--charcoal-text5);
|
|
139
|
+
border-width: 2px;
|
|
140
|
+
border-style: solid;
|
|
133
141
|
}
|
|
@@ -4,18 +4,6 @@
|
|
|
4
4
|
align-items: center;
|
|
5
5
|
}
|
|
6
6
|
|
|
7
|
-
.charcoal-pagination[data-size='S'] .charcoal-pagination-button {
|
|
8
|
-
min-width: 32px;
|
|
9
|
-
min-height: 32px;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.charcoal-pagination[data-size='M'] .charcoal-pagination-button {
|
|
13
|
-
min-width: 40px;
|
|
14
|
-
min-height: 40px;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
/* stylelint-disable no-descending-specificity */
|
|
18
|
-
|
|
19
7
|
.charcoal-pagination-button {
|
|
20
8
|
cursor: pointer;
|
|
21
9
|
appearance: none;
|
|
@@ -55,6 +43,16 @@
|
|
|
55
43
|
padding: 0;
|
|
56
44
|
}
|
|
57
45
|
|
|
46
|
+
.charcoal-pagination[data-size='S'] .charcoal-pagination-button {
|
|
47
|
+
min-width: 32px;
|
|
48
|
+
min-height: 32px;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.charcoal-pagination[data-size='M'] .charcoal-pagination-button {
|
|
52
|
+
min-width: 40px;
|
|
53
|
+
min-height: 40px;
|
|
54
|
+
}
|
|
55
|
+
|
|
58
56
|
.charcoal-pagination-button[hidden] {
|
|
59
57
|
visibility: hidden;
|
|
60
58
|
display: block;
|
|
@@ -93,9 +91,6 @@
|
|
|
93
91
|
background-color: var(--charcoal-surface6);
|
|
94
92
|
color: var(--charcoal-text5);
|
|
95
93
|
}
|
|
96
|
-
/* stylelint-enable no-descending-specificity */
|
|
97
|
-
|
|
98
|
-
/* Kept flat: different root class from .charcoal-pagination-button */
|
|
99
94
|
|
|
100
95
|
.charcoal-pagination-nav-button[hidden] {
|
|
101
96
|
visibility: hidden;
|
|
@@ -2,19 +2,8 @@
|
|
|
2
2
|
display: flex;
|
|
3
3
|
justify-content: center;
|
|
4
4
|
align-items: center;
|
|
5
|
-
|
|
6
|
-
&[data-size='S'] .charcoal-pagination-button {
|
|
7
|
-
min-width: 32px;
|
|
8
|
-
min-height: 32px;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
&[data-size='M'] .charcoal-pagination-button {
|
|
12
|
-
min-width: 40px;
|
|
13
|
-
min-height: 40px;
|
|
14
|
-
}
|
|
15
5
|
}
|
|
16
6
|
|
|
17
|
-
/* stylelint-disable no-descending-specificity */
|
|
18
7
|
.charcoal-pagination-button {
|
|
19
8
|
cursor: pointer;
|
|
20
9
|
appearance: none;
|
|
@@ -46,79 +35,91 @@
|
|
|
46
35
|
transition:
|
|
47
36
|
0.2s background-color,
|
|
48
37
|
0.2s box-shadow;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.charcoal-pagination-button:focus {
|
|
41
|
+
outline: none;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.charcoal-pagination-button::-moz-focus-inner {
|
|
45
|
+
border-style: none;
|
|
46
|
+
padding: 0;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.charcoal-pagination[data-size='S'] .charcoal-pagination-button {
|
|
50
|
+
min-width: 32px;
|
|
51
|
+
min-height: 32px;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.charcoal-pagination[data-size='M'] .charcoal-pagination-button {
|
|
55
|
+
min-width: 40px;
|
|
56
|
+
min-height: 40px;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.charcoal-pagination-button[hidden] {
|
|
60
|
+
visibility: hidden;
|
|
61
|
+
display: block;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.charcoal-pagination-button:not(:disabled):not([aria-disabled]):hover,
|
|
65
|
+
.charcoal-pagination-button[aria-disabled='false']:hover {
|
|
66
|
+
color: var(--charcoal-text3);
|
|
67
|
+
background-color: var(--charcoal-surface3);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.charcoal-pagination-button:not(:disabled):not([aria-disabled]):active,
|
|
71
|
+
.charcoal-pagination-button[aria-disabled='false']:active {
|
|
72
|
+
color: var(--charcoal-text3);
|
|
73
|
+
background-color: var(--charcoal-surface10);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.charcoal-pagination-button:not(:disabled):not([aria-disabled]):focus,
|
|
77
|
+
.charcoal-pagination-button[aria-disabled='false']:focus {
|
|
78
|
+
outline: none;
|
|
79
|
+
box-shadow: 0 0 0 4px rgba(0, 150, 250, 0.32);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.charcoal-pagination-button:not(:disabled):not([aria-disabled]):focus-visible,
|
|
83
|
+
.charcoal-pagination-button[aria-disabled='false']:focus-visible {
|
|
84
|
+
box-shadow: 0 0 0 4px rgba(0, 150, 250, 0.32);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.charcoal-pagination-button:not(:disabled):not([aria-disabled]):focus:not(
|
|
88
|
+
:focus-visible
|
|
89
|
+
),
|
|
90
|
+
.charcoal-pagination-button[aria-disabled='false']:focus:not(:focus-visible) {
|
|
91
|
+
box-shadow: none;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.charcoal-pagination-button[aria-current] {
|
|
95
|
+
cursor: default;
|
|
96
|
+
background-color: var(--charcoal-surface6);
|
|
97
|
+
color: var(--charcoal-text5);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.charcoal-pagination-button[aria-current]:not(:disabled):not(
|
|
101
|
+
[aria-disabled]
|
|
102
|
+
):hover,
|
|
103
|
+
.charcoal-pagination-button[aria-current]:not(:disabled):not(
|
|
104
|
+
[aria-disabled]
|
|
105
|
+
):active {
|
|
106
|
+
background-color: var(--charcoal-surface6);
|
|
107
|
+
color: var(--charcoal-text5);
|
|
108
|
+
}
|
|
49
109
|
|
|
50
|
-
&:focus {
|
|
51
|
-
outline: none;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
&::-moz-focus-inner {
|
|
55
|
-
border-style: none;
|
|
56
|
-
padding: 0;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
&[hidden] {
|
|
60
|
-
visibility: hidden;
|
|
61
|
-
display: block;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
&:not(:disabled):not([aria-disabled]):hover,
|
|
65
|
-
&[aria-disabled='false']:hover {
|
|
66
|
-
color: var(--charcoal-text3);
|
|
67
|
-
background-color: var(--charcoal-surface3);
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
&:not(:disabled):not([aria-disabled]):active,
|
|
71
|
-
&[aria-disabled='false']:active {
|
|
72
|
-
color: var(--charcoal-text3);
|
|
73
|
-
background-color: var(--charcoal-surface10);
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
&:not(:disabled):not([aria-disabled]):focus,
|
|
77
|
-
&[aria-disabled='false']:focus {
|
|
78
|
-
outline: none;
|
|
79
|
-
box-shadow: 0 0 0 4px rgba(0, 150, 250, 0.32);
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
&:not(:disabled):not([aria-disabled]):focus-visible,
|
|
83
|
-
&[aria-disabled='false']:focus-visible {
|
|
84
|
-
box-shadow: 0 0 0 4px rgba(0, 150, 250, 0.32);
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
&:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
|
|
88
|
-
&[aria-disabled='false']:focus:not(:focus-visible) {
|
|
89
|
-
box-shadow: none;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
&[aria-current] {
|
|
93
|
-
cursor: default;
|
|
94
|
-
background-color: var(--charcoal-surface6);
|
|
95
|
-
color: var(--charcoal-text5);
|
|
96
|
-
|
|
97
|
-
&:not(:disabled):not([aria-disabled]):hover,
|
|
98
|
-
&:not(:disabled):not([aria-disabled]):active {
|
|
99
|
-
background-color: var(--charcoal-surface6);
|
|
100
|
-
color: var(--charcoal-text5);
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
/* stylelint-enable no-descending-specificity */
|
|
105
|
-
|
|
106
|
-
/* Kept flat: different root class from .charcoal-pagination-button */
|
|
107
110
|
.charcoal-pagination-nav-button[hidden] {
|
|
108
111
|
visibility: hidden;
|
|
109
112
|
display: block;
|
|
110
113
|
}
|
|
111
114
|
|
|
112
|
-
.charcoal-pagination-spacer
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
}
|
|
115
|
+
.charcoal-pagination-spacer,
|
|
116
|
+
.charcoal-pagination-spacer:hover,
|
|
117
|
+
.charcoal-pagination-spacer:active {
|
|
118
|
+
cursor: default;
|
|
119
|
+
color: var(--charcoal-text3);
|
|
120
|
+
background: none;
|
|
121
|
+
}
|
|
120
122
|
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
}
|
|
123
|
+
.charcoal-pagination-spacer.charcoal-icon-button:disabled {
|
|
124
|
+
opacity: 1;
|
|
124
125
|
}
|
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
grid-gap: 4px;
|
|
5
5
|
align-items: center;
|
|
6
6
|
cursor: pointer;
|
|
7
|
+
}
|
|
7
8
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
9
|
+
.charcoal-radio__label[aria-disabled]:not([aria-disabled='false']) {
|
|
10
|
+
opacity: 0.32;
|
|
11
|
+
cursor: default;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
.charcoal-radio__label_div {
|
|
@@ -4,18 +4,18 @@
|
|
|
4
4
|
|
|
5
5
|
background-color: var(--charcoal-surface3);
|
|
6
6
|
border-radius: 16px;
|
|
7
|
+
}
|
|
7
8
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
9
|
+
.charcoal-segmented-control[data-uniform-segment-width='true'],
|
|
10
|
+
.charcoal-segmented-control[data-full-width='true'] {
|
|
11
|
+
display: inline-grid;
|
|
12
|
+
grid-auto-columns: minmax(80px, 1fr);
|
|
13
|
+
grid-auto-rows: 32px;
|
|
14
|
+
grid-auto-flow: column;
|
|
15
|
+
}
|
|
15
16
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}
|
|
17
|
+
.charcoal-segmented-control[data-full-width='true'] {
|
|
18
|
+
width: 100%;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
.charcoal-segmented-control-radio__label {
|
|
@@ -33,22 +33,24 @@
|
|
|
33
33
|
|
|
34
34
|
font-size: 14px;
|
|
35
35
|
line-height: 22px;
|
|
36
|
+
}
|
|
36
37
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
38
|
+
.charcoal-segmented-control-radio__label[aria-disabled]:not(
|
|
39
|
+
[aria-disabled='false']
|
|
40
|
+
) {
|
|
41
|
+
cursor: default;
|
|
42
|
+
opacity: 0.32;
|
|
43
|
+
}
|
|
41
44
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
45
|
+
.charcoal-segmented-control-radio__label[data-checked='true'] {
|
|
46
|
+
background-color: var(--charcoal-brand);
|
|
47
|
+
color: var(--charcoal-text5);
|
|
48
|
+
}
|
|
46
49
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
}
|
|
50
|
+
.charcoal-segmented-control-radio__label[data-uniform-segment-width='true'],
|
|
51
|
+
.charcoal-segmented-control-radio__label[data-full-width='true'] {
|
|
52
|
+
justify-content: center;
|
|
53
|
+
white-space: nowrap;
|
|
52
54
|
}
|
|
53
55
|
|
|
54
56
|
.charcoal-segmented-control-radio__input {
|
|
@@ -5,15 +5,15 @@
|
|
|
5
5
|
cursor: pointer;
|
|
6
6
|
outline: 0;
|
|
7
7
|
gap: 4px;
|
|
8
|
+
}
|
|
8
9
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
.charcoal-switch__label[aria-disabled='true'] {
|
|
11
|
+
opacity: 0.32;
|
|
12
|
+
cursor: default;
|
|
13
|
+
}
|
|
12
14
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
}
|
|
15
|
+
.charcoal-switch__label[aria-disabled='true'] > input {
|
|
16
|
+
opacity: 1;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
.charcoal-switch__label_div {
|