@charcoal-ui/react 5.8.0 → 5.9.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/dist/components/DropdownSelector/DropdownMenuItem/index.d.ts +1 -0
  2. package/dist/components/DropdownSelector/DropdownMenuItem/index.d.ts.map +1 -1
  3. package/dist/index.cjs +1 -1
  4. package/dist/index.cjs.map +1 -1
  5. package/dist/index.css +570 -586
  6. package/dist/index.css.map +1 -1
  7. package/dist/index.js +1 -1
  8. package/dist/index.js.map +1 -1
  9. package/dist/layered.css +570 -586
  10. package/dist/layered.css.map +1 -1
  11. package/package.json +5 -6
  12. package/src/components/Button/index.css +105 -120
  13. package/src/components/Checkbox/index.css +7 -7
  14. package/src/components/Clickable/index.css +11 -11
  15. package/src/components/DropdownSelector/DropdownMenuItem/index.css +4 -0
  16. package/src/components/DropdownSelector/DropdownMenuItem/index.tsx +12 -3
  17. package/src/components/DropdownSelector/index.css +33 -33
  18. package/src/components/FieldLabel/index.css +6 -6
  19. package/src/components/HintText/index.css +5 -7
  20. package/src/components/IconButton/index.css +87 -89
  21. package/src/components/LoadingSpinner/index.css +11 -9
  22. package/src/components/Modal/index.css +5 -5
  23. package/src/components/MultiSelect/__snapshots__/index.css.snap +3 -3
  24. package/src/components/MultiSelect/index.css +74 -82
  25. package/src/components/Pagination/__snapshots__/index.css.snap +15 -10
  26. package/src/components/Pagination/index.css +79 -80
  27. package/src/components/Radio/index.css +4 -4
  28. package/src/components/SegmentedControl/index.css +23 -25
  29. package/src/components/Switch/index.css +7 -7
  30. package/src/components/TagItem/__snapshots__/index.css.snap +2 -0
  31. package/src/components/TagItem/index.css +80 -71
  32. package/src/components/TextArea/index.css +24 -23
  33. package/src/components/TextEllipsis/index.css +10 -10
  34. package/src/components/TextField/index.css +19 -21
@@ -31,125 +31,110 @@
31
31
  0.2s background-color,
32
32
  0.2s box-shadow;
33
33
  height: 40px;
34
- }
35
-
36
- .charcoal-button:disabled,
37
- .charcoal-button[aria-disabled]:not([aria-disabled='false']) {
38
- cursor: default;
39
- opacity: 0.32;
40
- }
41
-
42
- .charcoal-button:not(:disabled):not([aria-disabled]):focus-visible,
43
- .charcoal-button[aria-disabled='false']:focus-visible {
44
- outline: none;
45
- box-shadow: 0 0 0 4px rgba(0, 150, 250, 0.32);
46
- }
47
-
48
- .charcoal-button:not(:disabled):not([aria-disabled]):hover,
49
- .charcoal-button[aria-disabled='false']:hover {
50
- color: var(--charcoal-text2-hover);
51
- background-color: var(--charcoal-surface3-hover);
52
- }
53
-
54
- .charcoal-button:not(:disabled):not([aria-disabled]):active,
55
- .charcoal-button[aria-disabled='false']:active,
56
- .charcoal-button[data-active='true'] {
57
- color: var(--charcoal-text2-press);
58
- background-color: var(--charcoal-surface3-press);
59
- }
60
-
61
- .charcoal-button[data-variant='Primary'] {
62
- color: var(--charcoal-text5);
63
- background-color: var(--charcoal-brand);
64
- }
65
-
66
- .charcoal-button[data-variant='Primary']:hover:not(:disabled):not(
67
- [aria-disabled]
68
- ),
69
- .charcoal-button[data-variant='Primary']:hover[aria-disabled='false'] {
70
- color: var(--charcoal-text5-hover);
71
- background-color: var(--charcoal-brand-hover);
72
- }
73
-
74
- .charcoal-button[data-variant='Primary']:active:not(:disabled):not(
75
- [aria-disabled]
76
- ),
77
- .charcoal-button[data-variant='Primary']:active[aria-disabled='false'],
78
- .charcoal-button[data-variant='Primary'][data-active='true'] {
79
- color: var(--charcoal-text5-press);
80
- background-color: var(--charcoal-brand-press);
81
- }
82
-
83
- .charcoal-button[data-variant='Overlay'] {
84
- color: var(--charcoal-text5);
85
- background-color: var(--charcoal-surface4);
86
- }
87
-
88
- .charcoal-button[data-variant='Overlay']:hover:not(:disabled):not(
89
- [aria-disabled]
90
- ),
91
- .charcoal-button[data-variant='Overlay']:hover[aria-disabled='false'] {
92
- color: var(--charcoal-text5-hover);
93
- background-color: var(--charcoal-surface4-hover);
94
- }
95
-
96
- .charcoal-button[data-variant='Overlay']:active:not(:disabled):not(
97
- [aria-disabled]
98
- ),
99
- .charcoal-button[data-variant='Overlay']:active[aria-disabled='false'],
100
- .charcoal-button[data-variant='Overlay'][data-active='true'] {
101
- color: var(--charcoal-text5-press);
102
- background-color: var(--charcoal-surface4-press);
103
- }
104
-
105
- .charcoal-button[data-variant='Navigation'] {
106
- color: var(--charcoal-text5);
107
- background-color: var(--charcoal-surface6);
108
- }
109
-
110
- .charcoal-button[data-variant='Navigation']:hover:not(:disabled):not(
111
- [aria-disabled]
112
- ),
113
- .charcoal-button[data-variant='Navigation']:hover[aria-disabled='false'] {
114
- color: var(--charcoal-text5-hover);
115
- background-color: var(--charcoal-surface6-hover);
116
- }
117
-
118
- .charcoal-button[data-variant='Navigation']:active:not(:disabled):not(
119
- [aria-disabled]
120
- ),
121
- .charcoal-button[data-variant='Navigation']:active[aria-disabled='false'],
122
- .charcoal-button[data-variant='Navigation'][data-active='true'] {
123
- color: var(--charcoal-text5-press);
124
- background-color: var(--charcoal-surface6-press);
125
- }
126
-
127
- .charcoal-button[data-variant='Danger'] {
128
- color: var(--charcoal-text5);
129
- background-color: var(--charcoal-assertive);
130
- }
131
- .charcoal-button[data-variant='Danger']:hover:not(:disabled):not(
132
- [aria-disabled]
133
- ),
134
- .charcoal-button[data-variant='Danger']:hover[aria-disabled='false'] {
135
- color: var(--charcoal-text5-hover);
136
- background-color: var(--charcoal-assertive-hover);
137
- }
138
-
139
- .charcoal-button[data-variant='Danger']:active:not(:disabled):not(
140
- [aria-disabled]
141
- ),
142
- .charcoal-button[data-variant='Danger']:active[aria-disabled='false'],
143
- .charcoal-button[data-variant='Danger'][data-active='true'] {
144
- color: var(--charcoal-text5-press);
145
- background-color: var(--charcoal-assertive-press);
146
- }
147
-
148
- .charcoal-button[data-size='S'] {
149
- padding: 0 16px;
150
- height: 32px;
151
- }
152
34
 
153
- .charcoal-button[data-full-width='true'] {
154
- width: 100%;
35
+ &:disabled,
36
+ &[aria-disabled]:not([aria-disabled='false']) {
37
+ cursor: default;
38
+ opacity: 0.32;
39
+ }
40
+
41
+ &:not(:disabled):not([aria-disabled]):focus-visible,
42
+ &[aria-disabled='false']:focus-visible {
43
+ outline: none;
44
+ box-shadow: 0 0 0 4px rgba(0, 150, 250, 0.32);
45
+ }
46
+
47
+ &:not(:disabled):not([aria-disabled]):hover,
48
+ &[aria-disabled='false']:hover {
49
+ color: var(--charcoal-text2-hover);
50
+ background-color: var(--charcoal-surface3-hover);
51
+ }
52
+
53
+ &:not(:disabled):not([aria-disabled]):active,
54
+ &[aria-disabled='false']:active,
55
+ &[data-active='true'] {
56
+ color: var(--charcoal-text2-press);
57
+ background-color: var(--charcoal-surface3-press);
58
+ }
59
+
60
+ &[data-variant='Primary'] {
61
+ color: var(--charcoal-text5);
62
+ background-color: var(--charcoal-brand);
63
+
64
+ &:hover:not(:disabled):not([aria-disabled]),
65
+ &:hover[aria-disabled='false'] {
66
+ color: var(--charcoal-text5-hover);
67
+ background-color: var(--charcoal-brand-hover);
68
+ }
69
+
70
+ &:active:not(:disabled):not([aria-disabled]),
71
+ &:active[aria-disabled='false'],
72
+ &[data-active='true'] {
73
+ color: var(--charcoal-text5-press);
74
+ background-color: var(--charcoal-brand-press);
75
+ }
76
+ }
77
+
78
+ &[data-variant='Overlay'] {
79
+ color: var(--charcoal-text5);
80
+ background-color: var(--charcoal-surface4);
81
+
82
+ &:hover:not(:disabled):not([aria-disabled]),
83
+ &:hover[aria-disabled='false'] {
84
+ color: var(--charcoal-text5-hover);
85
+ background-color: var(--charcoal-surface4-hover);
86
+ }
87
+
88
+ &:active:not(:disabled):not([aria-disabled]),
89
+ &:active[aria-disabled='false'],
90
+ &[data-active='true'] {
91
+ color: var(--charcoal-text5-press);
92
+ background-color: var(--charcoal-surface4-press);
93
+ }
94
+ }
95
+
96
+ &[data-variant='Navigation'] {
97
+ color: var(--charcoal-text5);
98
+ background-color: var(--charcoal-surface6);
99
+
100
+ &:hover:not(:disabled):not([aria-disabled]),
101
+ &:hover[aria-disabled='false'] {
102
+ color: var(--charcoal-text5-hover);
103
+ background-color: var(--charcoal-surface6-hover);
104
+ }
105
+
106
+ &:active:not(:disabled):not([aria-disabled]),
107
+ &:active[aria-disabled='false'],
108
+ &[data-active='true'] {
109
+ color: var(--charcoal-text5-press);
110
+ background-color: var(--charcoal-surface6-press);
111
+ }
112
+ }
113
+
114
+ &[data-variant='Danger'] {
115
+ color: var(--charcoal-text5);
116
+ background-color: var(--charcoal-assertive);
117
+
118
+ &:hover:not(:disabled):not([aria-disabled]),
119
+ &:hover[aria-disabled='false'] {
120
+ color: var(--charcoal-text5-hover);
121
+ background-color: var(--charcoal-assertive-hover);
122
+ }
123
+
124
+ &:active:not(:disabled):not([aria-disabled]),
125
+ &:active[aria-disabled='false'],
126
+ &[data-active='true'] {
127
+ color: var(--charcoal-text5-press);
128
+ background-color: var(--charcoal-assertive-press);
129
+ }
130
+ }
131
+
132
+ &[data-size='S'] {
133
+ padding: 0 16px;
134
+ height: 32px;
135
+ }
136
+
137
+ &[data-full-width='true'] {
138
+ width: 100%;
139
+ }
155
140
  }
@@ -3,15 +3,15 @@
3
3
  cursor: pointer;
4
4
  display: flex;
5
5
  gap: 4px;
6
- }
7
6
 
8
- .charcoal-checkbox__label[aria-disabled='true'] {
9
- cursor: default;
10
- opacity: 0.32;
11
- }
7
+ &[aria-disabled='true'] {
8
+ cursor: default;
9
+ opacity: 0.32;
12
10
 
13
- .charcoal-checkbox__label[aria-disabled='true'] > input {
14
- opacity: 1;
11
+ & > input {
12
+ opacity: 1;
13
+ }
14
+ }
15
15
  }
16
16
 
17
17
  .charcoal-checkbox__label_div {
@@ -24,18 +24,18 @@
24
24
 
25
25
  /* Remove the inheritance of text transform in Firefox. */
26
26
  text-transform: none;
27
- }
28
27
 
29
- .charcoal-clickable:disabled,
30
- .charcoal-clickable[aria-disabled]:not([aria-disabled='false']) {
31
- cursor: default;
32
- }
28
+ &:disabled,
29
+ &[aria-disabled]:not([aria-disabled='false']) {
30
+ cursor: default;
31
+ }
33
32
 
34
- .charcoal-clickable:focus {
35
- outline: none;
36
- }
33
+ &:focus {
34
+ outline: none;
35
+ }
37
36
 
38
- .charcoal-clickable::-moz-focus-inner {
39
- border-style: none;
40
- padding: 0;
37
+ &::-moz-focus-inner {
38
+ border-style: none;
39
+ padding: 0;
40
+ }
41
41
  }
@@ -34,3 +34,7 @@
34
34
  align-items: center;
35
35
  margin-left: 20px;
36
36
  }
37
+
38
+ .charcoal-dropdown-selector-menu-fullwidth {
39
+ width: 100%;
40
+ }
@@ -7,6 +7,7 @@ import Icon from '../../Icon'
7
7
 
8
8
  export type DropdownMenuItemProps = Omit<MenuItemProps, 'as'> & {
9
9
  secondary?: ReactNode
10
+ contentFullWidth?: boolean
10
11
  }
11
12
 
12
13
  /**
@@ -17,10 +18,18 @@ export default function DropdownMenuItem(props: DropdownMenuItemProps) {
17
18
  const isSelected = props.value === ctxValue
18
19
  const { children, secondary, ...rest } = props
19
20
 
21
+ const fullWidthClassName = props.contentFullWidth
22
+ ? 'charcoal-dropdown-selector-menu-fullwidth'
23
+ : ''
24
+
20
25
  return (
21
26
  <MenuItem {...rest} aria-selected={isSelected}>
22
- <div>
23
- <div className="charcoal-dropdown-selector-menu-item-container">
27
+ <div className={fullWidthClassName}>
28
+ <div
29
+ className={`charcoal-dropdown-selector-menu-item-container ${
30
+ fullWidthClassName
31
+ }`}
32
+ >
24
33
  {isSelected && (
25
34
  <Icon
26
35
  className="charcoal-dropdown-selector-menu-item-icon"
@@ -28,7 +37,7 @@ export default function DropdownMenuItem(props: DropdownMenuItemProps) {
28
37
  />
29
38
  )}
30
39
  <span
31
- className="charcoal-dropdown-selector-menu-item"
40
+ className={`charcoal-dropdown-selector-menu-item ${fullWidthClassName}`}
32
41
  data-selected={isSelected}
33
42
  >
34
43
  {children}
@@ -3,11 +3,11 @@
3
3
  grid-template-columns: 1fr;
4
4
  grid-gap: 4px;
5
5
  width: 100%;
6
- }
7
6
 
8
- .charcoal-dropdown-selector-root[aria-disabled='true'] {
9
- cursor: default;
10
- opacity: 0.32;
7
+ &[aria-disabled='true'] {
8
+ cursor: default;
9
+ opacity: 0.32;
10
+ }
11
11
  }
12
12
 
13
13
  .charcoal-dropdown-selector-button {
@@ -31,39 +31,39 @@
31
31
  transition:
32
32
  0.2s box-shadow,
33
33
  0.2s background-color;
34
- }
35
34
 
36
- .charcoal-dropdown-selector-button:disabled {
37
- cursor: default;
38
- }
35
+ &:disabled {
36
+ cursor: default;
37
+ }
39
38
 
40
- .charcoal-dropdown-selector-button:not(:disabled):focus {
41
- outline: none;
42
- box-shadow: 0 0 0 4px rgba(0, 150, 250, 0.32);
43
- }
39
+ &:not(:disabled) {
40
+ &:focus {
41
+ outline: none;
42
+ box-shadow: 0 0 0 4px rgba(0, 150, 250, 0.32);
43
+ }
44
44
 
45
- .charcoal-dropdown-selector-button:not(:disabled):focus-visible {
46
- box-shadow: 0 0 0 4px rgba(0, 150, 250, 0.32);
47
- }
45
+ &:focus-visible {
46
+ box-shadow: 0 0 0 4px rgba(0, 150, 250, 0.32);
47
+ }
48
48
 
49
- .charcoal-dropdown-selector-button:not(:disabled)[data-active='true'],
50
- .charcoal-dropdown-selector-button:not(:disabled):active {
51
- background-color: var(--charcoal-surface3-press);
52
- }
49
+ &[data-active='true'],
50
+ &:active {
51
+ background-color: var(--charcoal-surface3-press);
52
+ }
53
53
 
54
- .charcoal-dropdown-selector-button:not(:disabled):hover {
55
- background-color: var(--charcoal-surface3-hover);
56
- }
54
+ &:hover {
55
+ background-color: var(--charcoal-surface3-hover);
56
+ }
57
57
 
58
- .charcoal-dropdown-selector-button:not(:disabled):focus:not(:focus-visible) {
59
- box-shadow: none;
60
- }
58
+ &:focus:not(:focus-visible) {
59
+ box-shadow: none;
60
+ }
61
+ }
61
62
 
62
- .charcoal-dropdown-selector-button[aria-invalid='true'],
63
- .charcoal-dropdown-selector-button:not(
64
- :disabled
65
- )[aria-invalid='true']:focus:not(:focus-visible) {
66
- box-shadow: 0 0 0 4px rgba(255, 43, 0, 0.32);
63
+ &[aria-invalid='true'],
64
+ &:not(:disabled)[aria-invalid='true']:focus:not(:focus-visible) {
65
+ box-shadow: 0 0 0 4px rgba(255, 43, 0, 0.32);
66
+ }
67
67
  }
68
68
 
69
69
  .charcoal-ui-dropdown-selector-text {
@@ -75,10 +75,10 @@
75
75
  overflow: hidden;
76
76
  text-overflow: ellipsis;
77
77
  white-space: nowrap;
78
- }
79
78
 
80
- .charcoal-ui-dropdown-selector-text[data-placeholder='true'] {
81
- color: var(--charcoal-text3);
79
+ &[data-placeholder='true'] {
80
+ color: var(--charcoal-text3);
81
+ }
82
82
  }
83
83
 
84
84
  .charcoal-ui-dropdown-selector-icon {
@@ -26,12 +26,12 @@
26
26
  .charcoal-field-label-root {
27
27
  display: inline-flex;
28
28
  align-items: center;
29
- }
30
29
 
31
- .charcoal-field-label-root > .charcoal-field-label-required-text {
32
- margin-left: 4px;
33
- }
30
+ & > .charcoal-field-label-required-text {
31
+ margin-left: 4px;
32
+ }
34
33
 
35
- .charcoal-field-label-root > .charcoal-field-label-sub-label {
36
- margin-left: auto;
34
+ & > .charcoal-field-label-sub-label {
35
+ margin-left: auto;
36
+ }
37
37
  }
@@ -4,15 +4,13 @@
4
4
  padding: 12px 16px;
5
5
  display: flex;
6
6
  align-items: flex-start;
7
- }
8
7
 
9
- .charcoal-hint-text[data-context='page'] {
10
- justify-content: center;
11
- }
8
+ &[data-context='page'] {
9
+ justify-content: center;
12
10
 
13
- @media (min-width: 744px) {
14
- .charcoal-hint-text[data-context='page'] {
15
- padding: 20px 40px;
11
+ @media (min-width: 744px) {
12
+ padding: 20px 40px;
13
+ }
16
14
  }
17
15
  }
18
16
 
@@ -23,98 +23,96 @@
23
23
  transition:
24
24
  0.2s background-color,
25
25
  0.2s box-shadow;
26
- }
27
26
 
28
- .charcoal-icon-button:disabled,
29
- .charcoal-icon-button[aria-disabled]:not([aria-disabled='false']) {
30
- cursor: default;
31
- opacity: 0.32;
32
- }
33
- .charcoal-icon-button:focus {
34
- outline: none;
35
- }
36
- .charcoal-icon-button::-moz-focus-inner {
37
- border-style: none;
38
- padding: 0;
39
- }
27
+ &:disabled,
28
+ &[aria-disabled]:not([aria-disabled='false']) {
29
+ cursor: default;
30
+ opacity: 0.32;
31
+ }
40
32
 
41
- .charcoal-icon-button[data-size='XS'] {
42
- width: 20px;
43
- height: 20px;
44
- }
45
- .charcoal-icon-button[data-size='S'] {
46
- width: 32px;
47
- height: 32px;
48
- }
49
- .charcoal-icon-button[data-size='M'] {
50
- width: 40px;
51
- height: 40px;
52
- }
33
+ &:focus {
34
+ outline: none;
35
+ }
53
36
 
54
- .charcoal-icon-button[data-variant='Default'] {
55
- color: var(--charcoal-text3);
56
- background-color: var(--charcoal-transparent);
57
- }
58
- .charcoal-icon-button[data-variant='Default'][data-active='true']:not(
59
- :disabled
60
- ):not([aria-disabled]),
61
- .charcoal-icon-button[data-variant='Default'][data-active='true'][aria-disabled='false'] {
62
- color: var(--charcoal-text3-press);
63
- background-color: var(--charcoal-transparent-press);
64
- }
65
- .charcoal-icon-button[data-variant='Default'][data-active='false']:not(
66
- :disabled
67
- ):not([aria-disabled]):hover,
68
- .charcoal-icon-button[data-variant='Default'][data-active='false'][aria-disabled='false']:hover {
69
- color: var(--charcoal-text3-hover);
70
- background-color: var(--charcoal-transparent-hover);
71
- }
72
- .charcoal-icon-button[data-variant='Default'][data-active='false']:not(
73
- :disabled
74
- ):not([aria-disabled]):active,
75
- .charcoal-icon-button[data-variant='Default'][data-active='false'][aria-disabled='false']:active {
76
- color: var(--charcoal-text3-press);
77
- background-color: var(--charcoal-transparent-press);
78
- }
37
+ &::-moz-focus-inner {
38
+ border-style: none;
39
+ padding: 0;
40
+ }
79
41
 
80
- .charcoal-icon-button[data-variant='Overlay'] {
81
- color: var(--charcoal-text5);
82
- background-color: var(--charcoal-surface4);
83
- }
84
- .charcoal-icon-button[data-variant='Overlay'][data-active='true']:not(
85
- :disabled
86
- ):not([aria-disabled]),
87
- .charcoal-icon-button[data-variant='Overlay'][data-active='true'][aria-disabled='false'] {
88
- color: var(--charcoal-text5-press);
89
- background-color: var(--charcoal-surface4-press);
90
- }
91
- .charcoal-icon-button[data-variant='Overlay'][data-active='false']:not(
92
- :disabled
93
- ):not([aria-disabled]):hover,
94
- .charcoal-icon-button[data-variant='Overlay'][data-active='false'][aria-disabled='false']:hover {
95
- color: var(--charcoal-text5-hover);
96
- background-color: var(--charcoal-surface4-hover);
97
- }
98
- .charcoal-icon-button[data-variant='Overlay'][data-active='false']:not(
99
- :disabled
100
- ):not([aria-disabled]):active,
101
- .charcoal-icon-button[data-variant='Overlay'][data-active='false'][aria-disabled='false']:active {
102
- color: var(--charcoal-text5-press);
103
- background-color: var(--charcoal-surface4-press);
104
- }
42
+ &[data-size='XS'] {
43
+ width: 20px;
44
+ height: 20px;
45
+ }
105
46
 
106
- .charcoal-icon-button:not(:disabled):not([aria-disabled]):focus,
107
- .charcoal-icon-button[aria-disabled='false']:focus {
108
- outline: none;
109
- box-shadow: 0 0 0 4px rgba(0, 150, 250, 0.32);
110
- }
111
- .charcoal-icon-button:not(:disabled):not([aria-disabled]):focus-visible,
112
- .charcoal-icon-button[aria-disabled='false']:focus-visible {
113
- box-shadow: 0 0 0 4px rgba(0, 150, 250, 0.32);
114
- }
115
- .charcoal-icon-button:not(:disabled):not([aria-disabled]):focus:not(
116
- :focus-visible
117
- ),
118
- .charcoal-icon-button[aria-disabled='false']:focus:not(:focus-visible) {
119
- box-shadow: none;
47
+ &[data-size='S'] {
48
+ width: 32px;
49
+ height: 32px;
50
+ }
51
+
52
+ &[data-size='M'] {
53
+ width: 40px;
54
+ height: 40px;
55
+ }
56
+
57
+ &[data-variant='Default'] {
58
+ color: var(--charcoal-text3);
59
+ background-color: var(--charcoal-transparent);
60
+
61
+ &[data-active='true']:not(:disabled):not([aria-disabled]),
62
+ &[data-active='true'][aria-disabled='false'] {
63
+ color: var(--charcoal-text3-press);
64
+ background-color: var(--charcoal-transparent-press);
65
+ }
66
+
67
+ &[data-active='false']:not(:disabled):not([aria-disabled]):hover,
68
+ &[data-active='false'][aria-disabled='false']:hover {
69
+ color: var(--charcoal-text3-hover);
70
+ background-color: var(--charcoal-transparent-hover);
71
+ }
72
+
73
+ &[data-active='false']:not(:disabled):not([aria-disabled]):active,
74
+ &[data-active='false'][aria-disabled='false']:active {
75
+ color: var(--charcoal-text3-press);
76
+ background-color: var(--charcoal-transparent-press);
77
+ }
78
+ }
79
+
80
+ &[data-variant='Overlay'] {
81
+ color: var(--charcoal-text5);
82
+ background-color: var(--charcoal-surface4);
83
+
84
+ &[data-active='true']:not(:disabled):not([aria-disabled]),
85
+ &[data-active='true'][aria-disabled='false'] {
86
+ color: var(--charcoal-text5-press);
87
+ background-color: var(--charcoal-surface4-press);
88
+ }
89
+
90
+ &[data-active='false']:not(:disabled):not([aria-disabled]):hover,
91
+ &[data-active='false'][aria-disabled='false']:hover {
92
+ color: var(--charcoal-text5-hover);
93
+ background-color: var(--charcoal-surface4-hover);
94
+ }
95
+
96
+ &[data-active='false']:not(:disabled):not([aria-disabled]):active,
97
+ &[data-active='false'][aria-disabled='false']:active {
98
+ color: var(--charcoal-text5-press);
99
+ background-color: var(--charcoal-surface4-press);
100
+ }
101
+ }
102
+
103
+ &:not(:disabled):not([aria-disabled]):focus,
104
+ &[aria-disabled='false']:focus {
105
+ outline: none;
106
+ box-shadow: 0 0 0 4px rgba(0, 150, 250, 0.32);
107
+ }
108
+
109
+ &:not(:disabled):not([aria-disabled]):focus-visible,
110
+ &[aria-disabled='false']:focus-visible {
111
+ box-shadow: 0 0 0 4px rgba(0, 150, 250, 0.32);
112
+ }
113
+
114
+ &:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
115
+ &[aria-disabled='false']:focus:not(:focus-visible) {
116
+ box-shadow: none;
117
+ }
120
118
  }
@@ -9,9 +9,10 @@
9
9
  opacity: 0.84;
10
10
  color: var(--charcoal-text4);
11
11
  background-color: var(--charcoal-background1);
12
- }
13
- .charcoal-loading-spinner[data-transparent='true'] {
14
- background-color: var(--charcoal-transparent);
12
+
13
+ &[data-transparent='true'] {
14
+ background-color: var(--charcoal-transparent);
15
+ }
15
16
  }
16
17
 
17
18
  @keyframes charcoal-loading-spinner-icon-scale-out {
@@ -32,11 +33,12 @@
32
33
  background-color: currentColor;
33
34
  animation: charcoal-loading-spinner-icon-scale-out 1s both ease-out;
34
35
  animation-iteration-count: infinite;
35
- }
36
36
 
37
- .charcoal-loading-spinner-icon[data-reset-animation] {
38
- animation: none;
39
- }
40
- .charcoal-loading-spinner-icon[data-once='true'] {
41
- animation-iteration-count: 1;
37
+ &[data-reset-animation] {
38
+ animation: none;
39
+ }
40
+
41
+ &[data-once='true'] {
42
+ animation-iteration-count: 1;
43
+ }
42
44
  }