@carbon/styles 1.19.0-rc.0 → 1.20.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 (38) hide show
  1. package/css/styles.css +3751 -3348
  2. package/css/styles.min.css +1 -1
  3. package/package.json +9 -9
  4. package/scss/__tests__/theme-test.js +4 -0
  5. package/scss/_feature-flags.scss +1 -0
  6. package/scss/components/__tests__/fluid-combo-box-test.js +27 -0
  7. package/scss/components/__tests__/fluid-date-picker-test.js +27 -0
  8. package/scss/components/__tests__/fluid-dropdown-test.js +27 -0
  9. package/scss/components/__tests__/fluid-list-box-test.js +27 -0
  10. package/scss/components/__tests__/fluid-multiselect-test.js +27 -0
  11. package/scss/components/__tests__/fluid-number-input-test.js +27 -0
  12. package/scss/components/__tests__/fluid-search-test.js +27 -0
  13. package/scss/components/__tests__/fluid-select-test.js +27 -0
  14. package/scss/components/__tests__/fluid-text-area-test.js +27 -0
  15. package/scss/components/__tests__/fluid-text-input-test.js +27 -0
  16. package/scss/components/__tests__/fluid-time-picker-test.js +27 -0
  17. package/scss/components/_index.scss +2 -0
  18. package/scss/components/contained-list/_contained-list.scss +8 -2
  19. package/scss/components/data-table/sort/_data-table-sort.scss +5 -0
  20. package/scss/components/file-uploader/_file-uploader.scss +4 -0
  21. package/scss/components/fluid-date-picker/_fluid-date-picker.scss +19 -0
  22. package/scss/components/fluid-list-box/_fluid-list-box.scss +19 -0
  23. package/scss/components/fluid-multiselect/_fluid-multiselect.scss +1 -1
  24. package/scss/components/fluid-number-input/_fluid-number-input.scss +273 -0
  25. package/scss/components/fluid-number-input/_index.scss +11 -0
  26. package/scss/components/fluid-search/_fluid-search.scss +141 -0
  27. package/scss/components/fluid-search/_index.scss +11 -0
  28. package/scss/components/fluid-select/_fluid-select.scss +17 -0
  29. package/scss/components/fluid-text-area/_fluid-text-area.scss +19 -0
  30. package/scss/components/fluid-text-input/_fluid-text-input.scss +14 -4
  31. package/scss/components/form/_form.scss +1 -1
  32. package/scss/components/modal/_modal.scss +4 -4
  33. package/scss/components/number-input/_number-input.scss +2 -2
  34. package/scss/components/popover/_popover.scss +1 -0
  35. package/scss/components/slider/_slider.scss +4 -0
  36. package/scss/components/tile/_tile.scss +23 -1
  37. package/scss/layer/_layer-sets.scss +5 -0
  38. package/scss/theme/_theme.scss +1 -0
@@ -0,0 +1,273 @@
1
+ //
2
+ // Copyright IBM Corp. 2022
3
+ //
4
+ // This source code is licensed under the Apache-2.0 license found in the
5
+ // LICENSE file in the root directory of this source tree.
6
+ //
7
+
8
+ //-----------------------------
9
+ // Fluid Number Input
10
+ //-----------------------------
11
+ @use '../../config' as *;
12
+ @use '../../motion' as *;
13
+ @use '../../spacing' as *;
14
+ @use '../../theme' as *;
15
+ @use '../../utilities/convert' as *;
16
+ @use '../../utilities/focus-outline' as *;
17
+ @use '../number-input';
18
+
19
+ @mixin fluid-number-input {
20
+ .#{$prefix}--number-input--fluid {
21
+ position: relative;
22
+ height: 100%;
23
+ background: $field;
24
+ }
25
+
26
+ .#{$prefix}--number-input--fluid .#{$prefix}--label {
27
+ position: absolute;
28
+ z-index: 1;
29
+ top: rem(13px);
30
+ left: $spacing-05;
31
+ display: flex;
32
+ width: calc(100% - 2rem);
33
+ height: rem(16px);
34
+ align-items: center;
35
+ margin: 0;
36
+ }
37
+
38
+ .#{$prefix}--number-input--fluid .#{$prefix}--label::-webkit-scrollbar,
39
+ .#{$prefix}--number-input--fluid
40
+ .#{$prefix}--label
41
+ .#{$prefix}--toggletip-label::-webkit-scrollbar {
42
+ display: none;
43
+ }
44
+
45
+ .#{$prefix}--number-input--fluid
46
+ .#{$prefix}--label:not(:has(.#{$prefix}--toggletip-label)),
47
+ .#{$prefix}--number-input--fluid
48
+ .#{$prefix}--label
49
+ .#{$prefix}--toggletip-label {
50
+ -ms-overflow-style: none;
51
+ overflow-x: scroll;
52
+ scrollbar-width: none;
53
+ white-space: nowrap;
54
+ }
55
+
56
+ .#{$prefix}--number-input--fluid input[type='number'] {
57
+ min-height: rem(64px);
58
+ padding: rem(32px) rem(80px) rem(13px) $spacing-05;
59
+ background: transparent;
60
+ outline: none;
61
+ }
62
+
63
+ .#{$prefix}--number-input--fluid .#{$prefix}--number__controls {
64
+ top: rem(23px);
65
+ height: rem(40px);
66
+ transform: translate(0);
67
+ }
68
+
69
+ .#{$prefix}--number-input--fluid .#{$prefix}--number__control-btn,
70
+ .#{$prefix}--number-input--fluid
71
+ input[type='number']:focus
72
+ ~ .#{$prefix}--number__controls
73
+ .#{$prefix}--number__control-btn {
74
+ border-bottom: 1px solid transparent;
75
+ }
76
+
77
+ // Focus Overrides
78
+ .#{$prefix}--number-input--fluid.#{$prefix}--number-input--fluid--focus
79
+ .#{$prefix}--number {
80
+ @include focus-outline('outline');
81
+ }
82
+
83
+ // Weird overrides (needed to override focus borders on stepper buttons when hovered while input has focus)
84
+ .#{$prefix}--number-input--fluid:not(.#{$prefix}--number-input--fluid--invalid)
85
+ .#{$prefix}--number
86
+ .#{$prefix}--number__input-wrapper:not(.#{$prefix}--number__input-wrapper--warning)
87
+ input[type='number']:focus
88
+ ~ .#{$prefix}--number__controls
89
+ .#{$prefix}--number__control-btn:hover {
90
+ outline: 2px solid transparent;
91
+ }
92
+
93
+ .#{$prefix}--number-input--fluid:not(.#{$prefix}--number-input--fluid--invalid)
94
+ .#{$prefix}--number
95
+ .#{$prefix}--number__input-wrapper:not(.#{$prefix}--number__input-wrapper--warning)
96
+ input[type='number']:focus
97
+ ~ .#{$prefix}--number__controls
98
+ .#{$prefix}--number__control-btn:hover::before {
99
+ top: auto;
100
+ bottom: 0;
101
+ left: 0;
102
+ width: 100%;
103
+ height: 1px;
104
+ background: $focus;
105
+ }
106
+ // End weirdness
107
+
108
+ .#{$prefix}--number-input--fluid:not(.#{$prefix}--number-input--fluid--invalid)
109
+ .#{$prefix}--number-input-wrapper:not(.#{$prefix}--number-input-wrapper__warning)
110
+ input[type='number']:focus
111
+ ~ .#{$prefix}--number__controls
112
+ .#{$prefix}--number__control-btn:hover {
113
+ border-bottom: 1px solid $focus;
114
+ outline: none;
115
+ }
116
+
117
+ .#{$prefix}--number-input--fluid
118
+ input[type='number']
119
+ ~ .#{$prefix}--number__controls
120
+ .#{$prefix}--number__control-btn::after {
121
+ top: 0;
122
+ height: calc(100% - rem(1px));
123
+ }
124
+
125
+ .#{$prefix}--number-input--fluid.#{$prefix}--number-input--fluid--focus
126
+ input[type='number']
127
+ ~ .#{$prefix}--number__controls
128
+ .#{$prefix}--number__control-btn.up-icon::after {
129
+ background: $focus;
130
+ }
131
+
132
+ .#{$prefix}--number-input--fluid
133
+ input[type='number']
134
+ ~ .#{$prefix}--number__controls
135
+ .#{$prefix}--number__control-btn.up-icon::after {
136
+ height: calc(100%);
137
+ }
138
+
139
+ .#{$prefix}--number-input--fluid.#{$prefix}--number-input--fluid--focus
140
+ input[type='number']
141
+ ~ .#{$prefix}--number__controls
142
+ .#{$prefix}--number__control-btn.up-icon:hover::after {
143
+ height: calc(100%);
144
+ background-color: $focus;
145
+ }
146
+
147
+ .#{$prefix}--number-input--fluid--invalid
148
+ input[type='number'][data-invalid]
149
+ ~ .#{$prefix}--number__controls
150
+ .#{$prefix}--number__control-btn:focus,
151
+ .#{$prefix}--number-input--fluid--invalid
152
+ .#{$prefix}--number
153
+ input[type='number'][data-invalid]
154
+ ~ .#{$prefix}--number__controls
155
+ .#{$prefix}--number__control-btn:focus:hover {
156
+ @include focus-outline('outline');
157
+ }
158
+
159
+ // Invalid styles
160
+ .#{$prefix}--number-input--fluid .#{$prefix}--number-input__divider {
161
+ display: none;
162
+ }
163
+
164
+ .#{$prefix}--number-input--fluid .#{$prefix}--number__invalid {
165
+ top: rem(73px);
166
+ right: $spacing-05;
167
+ pointer-events: none;
168
+ }
169
+
170
+ .#{$prefix}--number-input--fluid
171
+ .#{$prefix}--number__controls
172
+ .#{$prefix}--number__rule-divider:first-of-type {
173
+ display: none;
174
+ }
175
+
176
+ .#{$prefix}--number-input--fluid
177
+ .#{$prefix}--number__input-wrapper--warning
178
+ input[type='number'] {
179
+ border-bottom: 1px solid transparent;
180
+ }
181
+
182
+ .#{$prefix}--number-input--fluid
183
+ .#{$prefix}--number__input-wrapper--warning
184
+ input[type='number']:focus {
185
+ outline: none;
186
+ }
187
+
188
+ .#{$prefix}--number-input--fluid.#{$prefix}--number-input--fluid--invalid
189
+ .#{$prefix}--number-input__divider,
190
+ .#{$prefix}--number-input--fluid
191
+ .#{$prefix}--number__input-wrapper--warning
192
+ + .#{$prefix}--number-input__divider {
193
+ position: absolute;
194
+ top: rem(63px);
195
+ display: block;
196
+ width: calc(100% - 2rem);
197
+ height: rem(1px);
198
+ border: none;
199
+ border-bottom: 1px solid $border-subtle;
200
+ margin: 0 1rem;
201
+ }
202
+
203
+ .#{$prefix}--number-input--fluid .#{$prefix}--form-requirement {
204
+ padding: $spacing-03 rem(40px) $spacing-03 $spacing-05;
205
+ margin: 0;
206
+ }
207
+
208
+ .#{$prefix}--number-input--fluid.#{$prefix}--number-input--fluid--invalid:not(.#{$prefix}--number-input--fluid--focus)
209
+ .#{$prefix}--number {
210
+ @include focus-outline('invalid');
211
+ }
212
+
213
+ .#{$prefix}--number-input--fluid--invalid
214
+ .#{$prefix}--number[data-invalid]
215
+ input[type='number'] {
216
+ border-bottom: 1px solid transparent;
217
+ }
218
+
219
+ .#{$prefix}--number-input--fluid--invalid
220
+ .#{$prefix}--number[data-invalid]
221
+ input[type='number'],
222
+ .#{$prefix}--number-input--fluid--invalid
223
+ .#{$prefix}--number
224
+ input[type='number'][data-invalid]
225
+ ~ .#{$prefix}--number__controls
226
+ .#{$prefix}--number__control-btn:hover,
227
+ .#{$prefix}--number-input--fluid
228
+ .#{$prefix}--number__input-wrapper--warning
229
+ input[type='number']
230
+ ~ .#{$prefix}--number__controls
231
+ .#{$prefix}--number__control-btn:hover:not(:focus) {
232
+ outline: none;
233
+ }
234
+
235
+ .#{$prefix}--number-input--fluid.#{$prefix}--number-input--invalid
236
+ .#{$prefix}--number__input-wrapper
237
+ input[type='number']
238
+ ~ .#{$prefix}--number__controls
239
+ .#{$prefix}--number__control-btn,
240
+ .#{$prefix}--number-input--fluid
241
+ .#{$prefix}--number__input-wrapper--warning
242
+ input[type='number']
243
+ ~ .#{$prefix}--number__controls
244
+ .#{$prefix}--number__control-btn {
245
+ border-bottom: none;
246
+ }
247
+
248
+ .#{$prefix}--number-input--fluid--invalid
249
+ .#{$prefix}--number
250
+ input[type='number'][data-invalid]
251
+ ~ .#{$prefix}--number__controls
252
+ .#{$prefix}--number__control-btn,
253
+ .#{$prefix}--number-input--fluid
254
+ .#{$prefix}--number
255
+ input[type='number']
256
+ ~ .#{$prefix}--number__controls
257
+ .#{$prefix}--number__control-btn {
258
+ border: initial;
259
+ border-bottom-width: rem(1px);
260
+ }
261
+
262
+ // Disabled states
263
+ .#{$prefix}--number-input--fluid--disabled:not(.#{$prefix}--number-input--fluid--invalid)
264
+ .#{$prefix}--number {
265
+ border-bottom: 1px solid $border-subtle;
266
+ }
267
+
268
+ .#{$prefix}--number-input--fluid--disabled.#{$prefix}--number-input--fluid--invalid
269
+ .#{$prefix}--number
270
+ input[type='number']:disabled {
271
+ background-color: transparent;
272
+ }
273
+ }
@@ -0,0 +1,11 @@
1
+ //
2
+ // Copyright IBM Corp. 2022
3
+ //
4
+ // This source code is licensed under the Apache-2.0 license found in the
5
+ // LICENSE file in the root directory of this source tree.
6
+ //
7
+
8
+ @forward 'fluid-number-input';
9
+ @use 'fluid-number-input';
10
+
11
+ @include fluid-number-input.fluid-number-input;
@@ -0,0 +1,141 @@
1
+ //
2
+ // Copyright IBM Corp. 2022
3
+ //
4
+ // This source code is licensed under the Apache-2.0 license found in the
5
+ // LICENSE file in the root directory of this source tree.
6
+ //
7
+
8
+ //-----------------------------
9
+ // Fluid Search
10
+ //-----------------------------
11
+ @use '../../config' as *;
12
+ @use '../../motion' as *;
13
+ @use '../../spacing' as *;
14
+ @use '../../theme' as *;
15
+ @use '../../utilities/convert' as *;
16
+ @use '../../utilities/focus-outline' as *;
17
+ @use '../search';
18
+
19
+ @mixin fluid-search {
20
+ .#{$prefix}--search--fluid {
21
+ height: rem(64px);
22
+ }
23
+
24
+ .#{$prefix}--search--fluid .#{$prefix}--label {
25
+ position: absolute;
26
+ z-index: 1;
27
+ top: rem(13px);
28
+ left: $spacing-05;
29
+ display: flex;
30
+ overflow: initial;
31
+ width: calc(100% - 2rem);
32
+ height: rem(16px);
33
+ align-items: center;
34
+ margin: 0;
35
+ clip: initial;
36
+ white-space: initial;
37
+ }
38
+
39
+ .#{$prefix}--search--fluid .#{$prefix}--label::-webkit-scrollbar,
40
+ .#{$prefix}--search--fluid
41
+ .#{$prefix}--label
42
+ .#{$prefix}--toggletip-label::-webkit-scrollbar {
43
+ display: none;
44
+ }
45
+
46
+ .#{$prefix}--search--fluid
47
+ .#{$prefix}--label:not(:has(.#{$prefix}--toggletip-label)),
48
+ .#{$prefix}--search--fluid .#{$prefix}--label .#{$prefix}--toggletip-label {
49
+ -ms-overflow-style: none;
50
+ overflow-x: scroll;
51
+ scrollbar-width: none;
52
+ white-space: nowrap;
53
+ }
54
+
55
+ .#{$prefix}--search--fluid .#{$prefix}--search-input {
56
+ height: 100%;
57
+ padding: rem(32px) rem(88px) rem(13px) $spacing-05;
58
+ }
59
+
60
+ .#{$prefix}--search--fluid .#{$prefix}--search-magnifier-icon {
61
+ top: auto;
62
+ right: 1rem;
63
+ bottom: rem(13px);
64
+ left: auto;
65
+ transform: none;
66
+ }
67
+
68
+ .#{$prefix}--search--fluid .#{$prefix}--search-close {
69
+ top: auto;
70
+ right: rem(48px);
71
+ bottom: 0;
72
+ left: auto;
73
+ width: rem(40px);
74
+ height: rem(40px);
75
+ border: none;
76
+ transition: background-color $duration-fast-01 motion(standard, productive);
77
+ }
78
+
79
+ .#{$prefix}--search--fluid .#{$prefix}--search-close::before {
80
+ position: absolute;
81
+ top: auto;
82
+ right: rem(-1px);
83
+ bottom: rem(14px);
84
+ left: auto;
85
+ display: block;
86
+ width: rem(1px);
87
+ height: 1rem;
88
+ background: $border-subtle;
89
+ content: '';
90
+ }
91
+
92
+ .#{$prefix}--search--fluid
93
+ .#{$prefix}--search-input:focus
94
+ ~ .#{$prefix}--search-close:hover {
95
+ outline: none;
96
+ }
97
+
98
+ .#{$prefix}--search--fluid .#{$prefix}--search-close::after {
99
+ position: absolute;
100
+ bottom: 0;
101
+ left: 0;
102
+ display: block;
103
+ width: 100%;
104
+ height: rem(2px);
105
+ content: '';
106
+ }
107
+
108
+ .#{$prefix}--search--fluid
109
+ .#{$prefix}--search-input:focus
110
+ ~ .#{$prefix}--search-close::after {
111
+ background: $focus;
112
+ }
113
+
114
+ .#{$prefix}--search--fluid
115
+ .#{$prefix}--search-input:not(:focus)
116
+ ~ .#{$prefix}--search-close:not([disabled])::after {
117
+ height: rem(1px);
118
+ background: $border-strong;
119
+ }
120
+
121
+ .#{$prefix}--search--fluid .#{$prefix}--search-close svg {
122
+ margin-bottom: rem(2px);
123
+ }
124
+
125
+ // Disabled styles
126
+ .#{$prefix}--search--fluid
127
+ .#{$prefix}--search-input:disabled
128
+ ~ .#{$prefix}--search-close:hover::before {
129
+ background: $border-subtle;
130
+ }
131
+
132
+ .#{$prefix}--search--fluid.#{$prefix}--search--disabled .#{$prefix}--label {
133
+ color: $text-disabled;
134
+ cursor: not-allowed;
135
+ }
136
+
137
+ .#{$prefix}--search--fluid.#{$prefix}--search--disabled
138
+ .#{$prefix}--search-input[disabled] {
139
+ border-bottom: 1px solid $border-subtle;
140
+ }
141
+ }
@@ -0,0 +1,11 @@
1
+ //
2
+ // Copyright IBM Corp. 2022
3
+ //
4
+ // This source code is licensed under the Apache-2.0 license found in the
5
+ // LICENSE file in the root directory of this source tree.
6
+ //
7
+
8
+ @forward 'fluid-search';
9
+ @use 'fluid-search';
10
+
11
+ @include fluid-search.fluid-search;
@@ -31,11 +31,28 @@
31
31
  top: rem(13px);
32
32
  left: $spacing-05;
33
33
  display: flex;
34
+ width: calc(100% - 2rem);
34
35
  height: rem(16px);
35
36
  align-items: center;
36
37
  margin: 0;
37
38
  }
38
39
 
40
+ .#{$prefix}--select--fluid .#{$prefix}--label::-webkit-scrollbar,
41
+ .#{$prefix}--select--fluid
42
+ .#{$prefix}--label
43
+ .#{$prefix}--toggletip-label::-webkit-scrollbar {
44
+ display: none;
45
+ }
46
+
47
+ .#{$prefix}--select--fluid
48
+ .#{$prefix}--label:not(:has(.#{$prefix}--toggletip-label)),
49
+ .#{$prefix}--select--fluid .#{$prefix}--label .#{$prefix}--toggletip-label {
50
+ -ms-overflow-style: none;
51
+ overflow-x: scroll;
52
+ scrollbar-width: none;
53
+ white-space: nowrap;
54
+ }
55
+
39
56
  .#{$prefix}--select--fluid .#{$prefix}--select-input {
40
57
  min-height: rem(64px);
41
58
  padding: rem(32px) rem(32px) rem(13px) $spacing-05;
@@ -39,11 +39,30 @@
39
39
  top: rem(13px);
40
40
  left: $spacing-05;
41
41
  display: flex;
42
+ width: calc(100% - 2rem);
42
43
  height: rem(16px);
43
44
  align-items: center;
44
45
  margin: 0;
45
46
  }
46
47
 
48
+ .#{$prefix}--text-area--fluid .#{$prefix}--label::-webkit-scrollbar,
49
+ .#{$prefix}--text-area--fluid
50
+ .#{$prefix}--label
51
+ .#{$prefix}--toggletip-label::-webkit-scrollbar {
52
+ display: none;
53
+ }
54
+
55
+ .#{$prefix}--text-area--fluid
56
+ .#{$prefix}--label:not(:has(.#{$prefix}--toggletip-label)),
57
+ .#{$prefix}--text-area--fluid
58
+ .#{$prefix}--label
59
+ .#{$prefix}--toggletip-label {
60
+ -ms-overflow-style: none;
61
+ overflow-x: scroll;
62
+ scrollbar-width: none;
63
+ white-space: nowrap;
64
+ }
65
+
47
66
  //counter
48
67
  .#{$prefix}--text-area--fluid div.#{$prefix}--label {
49
68
  right: 1rem;
@@ -35,16 +35,26 @@
35
35
  height: rem(16px);
36
36
  align-items: center;
37
37
  margin: 0;
38
+ }
39
+
40
+ .#{$prefix}--text-input--fluid .#{$prefix}--label::-webkit-scrollbar,
41
+ .#{$prefix}--text-input--fluid
42
+ .#{$prefix}--label
43
+ .#{$prefix}--toggletip-label::-webkit-scrollbar {
44
+ display: none;
45
+ }
46
+
47
+ .#{$prefix}--text-input--fluid
48
+ .#{$prefix}--label:not(:has(.#{$prefix}--toggletip-label)),
49
+ .#{$prefix}--text-input--fluid
50
+ .#{$prefix}--label
51
+ .#{$prefix}--toggletip-label {
38
52
  -ms-overflow-style: none;
39
53
  overflow-x: scroll;
40
54
  scrollbar-width: none;
41
55
  white-space: nowrap;
42
56
  }
43
57
 
44
- .#{$prefix}--text-input--fluid .#{$prefix}--label::-webkit-scrollbar {
45
- display: none;
46
- }
47
-
48
58
  .#{$prefix}--text-input--fluid .#{$prefix}--form__helper-text {
49
59
  display: none;
50
60
  }
@@ -110,7 +110,7 @@ $input-label-weight: 400 !default;
110
110
  }
111
111
 
112
112
  input[type='number'] {
113
- font-family: carbon--font-family('mono');
113
+ font-family: font-family('sans');
114
114
  }
115
115
 
116
116
  input[data-invalid]:not(:focus),
@@ -146,7 +146,7 @@
146
146
 
147
147
  //TO-DO: remove .#{$prefix}--modal-content__regular-content in v11 since hasForm has been deprecated
148
148
  // text/p gets 20% right padding
149
- .#{$prefix}--modal-content p,
149
+ .#{$prefix}--modal-content > p,
150
150
  .#{$prefix}--modal-content__regular-content {
151
151
  @include type-style('body-01');
152
152
  // padding should take into account the left and right padding of modal container
@@ -193,7 +193,7 @@
193
193
  padding-right: $spacing-05;
194
194
  }
195
195
 
196
- .#{$prefix}--modal-content p {
196
+ .#{$prefix}--modal-content > p {
197
197
  //.#{$prefix}--modal-content already has 16px padding so this doesn't need any
198
198
  padding-right: 0;
199
199
  }
@@ -221,7 +221,7 @@
221
221
  padding-right: $spacing-05;
222
222
  }
223
223
 
224
- .#{$prefix}--modal-content p {
224
+ .#{$prefix}--modal-content > p {
225
225
  //.#{$prefix}--modal-content already has 16px padding so this doesn't need any
226
226
  padding-right: 0;
227
227
  }
@@ -234,7 +234,7 @@
234
234
  width: 42%;
235
235
  max-height: 72%;
236
236
 
237
- .#{$prefix}--modal-content p,
237
+ .#{$prefix}--modal-content > p,
238
238
  .#{$prefix}--modal-content__regular-content {
239
239
  padding-right: 20%;
240
240
  }
@@ -32,7 +32,7 @@
32
32
  }
33
33
 
34
34
  .#{$prefix}--number input[type='number'] {
35
- @include type-style('code-01');
35
+ @include type-style('body-compact-01');
36
36
  @include focus-outline('reset');
37
37
 
38
38
  display: inline-flex;
@@ -50,7 +50,7 @@
50
50
  background-color: $field;
51
51
  border-radius: 0;
52
52
  color: $text-primary;
53
- font-family: font-family('mono');
53
+ font-family: font-family('sans');
54
54
  font-weight: 400;
55
55
  transition: background-color $duration-fast-01 motion(standard, productive),
56
56
  outline $duration-fast-01 motion(standard, productive);
@@ -107,6 +107,7 @@ $popover-caret-height: custom-property.get-var(
107
107
  // Popover, this element contains both the caret and the popover content
108
108
  .#{$prefix}--popover {
109
109
  position: absolute;
110
+ z-index: z('floating');
110
111
  top: 0;
111
112
  right: 0;
112
113
  bottom: 0;
@@ -134,6 +134,10 @@
134
134
  }
135
135
  }
136
136
 
137
+ .#{$prefix}--slider-text-input--hidden {
138
+ display: none;
139
+ }
140
+
137
141
  .#{$prefix}--slider-text-input.#{$prefix}--text-input--invalid {
138
142
  padding-right: 1rem;
139
143
  }
@@ -6,6 +6,7 @@
6
6
  //
7
7
 
8
8
  @use '../../config' as *;
9
+ @use '../../feature-flags' as *;
9
10
  @use '../../motion' as *;
10
11
  @use '../../spacing' as *;
11
12
  @use '../../theme' as *;
@@ -19,7 +20,7 @@
19
20
  /// Tile styles
20
21
  /// @access public
21
22
  /// @group tile
22
- @mixin tile {
23
+ @mixin tile($local-enable-experimental-tile-contrast: false) {
23
24
  .#{$prefix}--tile-group {
24
25
  @include reset;
25
26
  }
@@ -62,6 +63,13 @@
62
63
  color: $text-primary;
63
64
  text-decoration: none;
64
65
 
66
+ @if (
67
+ enabled('enable-experimental-tile-contrast') or
68
+ $local-enable-experimental-tile-contrast
69
+ ) {
70
+ border: 1px solid $border-tile;
71
+ }
72
+
65
73
  &:focus {
66
74
  @include focus-outline('outline');
67
75
  }
@@ -99,6 +107,13 @@
99
107
  .#{$prefix}--tile--selectable {
100
108
  padding-right: $spacing-09;
101
109
  border: 1px solid transparent;
110
+
111
+ @if (
112
+ enabled('enable-experimental-tile-contrast') or
113
+ $local-enable-experimental-tile-contrast
114
+ ) {
115
+ border: 1px solid $border-tile;
116
+ }
102
117
  }
103
118
 
104
119
  .#{$prefix}--tile__checkmark {
@@ -190,6 +205,13 @@
190
205
 
191
206
  @include type-style('body-compact-01');
192
207
 
208
+ @if (
209
+ enabled('enable-experimental-tile-contrast') or
210
+ $local-enable-experimental-tile-contrast
211
+ ) {
212
+ border: 1px solid $border-tile;
213
+ }
214
+
193
215
  &:hover {
194
216
  background: $layer-hover;
195
217
  }
@@ -74,6 +74,11 @@ $-default-layer-sets: (
74
74
  theme.$border-strong-02,
75
75
  theme.$border-strong-03,
76
76
  ),
77
+ border-tile: (
78
+ theme.$border-tile-01,
79
+ theme.$border-tile-02,
80
+ theme.$border-tile-03,
81
+ ),
77
82
  );
78
83
 
79
84
  /// Define a map of layer sets, each set should have values for each layer in
@@ -38,3 +38,4 @@ $field-hover: custom-property.get-var('field-hover');
38
38
  $border-subtle: custom-property.get-var('border-subtle');
39
39
  $border-subtle-selected: custom-property.get-var('border-subtle-selected');
40
40
  $border-strong: custom-property.get-var('border-strong');
41
+ $border-tile: custom-property.get-var('border-tile');