@carbon/styles 0.13.0-rc.0 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
- package/scss/components/accordion/_accordion.scss +7 -3
- package/scss/components/button/_tokens.scss +16 -16
- package/scss/components/code-snippet/_code-snippet.scss +2 -2
- package/scss/components/data-table/action/_data-table-action.scss +6 -2
- package/scss/components/date-picker/_date-picker.scss +1 -1
- package/scss/components/list-box/_list-box.scss +1 -1
- package/scss/components/modal/_modal.scss +3 -6
- package/scss/components/number-input/_number-input.scss +1 -1
- package/scss/components/pagination/_pagination.scss +50 -7
- package/scss/components/select/_select.scss +2 -2
- package/scss/components/slider/_slider.scss +1 -1
- package/scss/components/tag/_tag.scss +1 -1
- package/scss/components/text-area/_text-area.scss +1 -1
- package/scss/components/text-input/_text-input.scss +1 -1
- package/scss/components/tile/_tile.scss +1 -1
- package/scss/components/toggle/_toggle.scss +2 -2
- package/scss/components/tooltip/_index.scss +1 -0
- package/scss/components/tooltip/_tooltip.scss +30 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@carbon/styles",
|
|
3
3
|
"description": "Styles for the Carbon Design System",
|
|
4
|
-
"version": "0.13.0
|
|
4
|
+
"version": "0.13.0",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"@carbon/grid": "^10.40.0",
|
|
26
26
|
"@carbon/layout": "^10.35.0",
|
|
27
27
|
"@carbon/motion": "^10.27.0",
|
|
28
|
-
"@carbon/themes": "^10.
|
|
28
|
+
"@carbon/themes": "^10.50.0",
|
|
29
29
|
"@carbon/type": "^10.40.0",
|
|
30
30
|
"@ibm/plex": "6.0.0-next.6"
|
|
31
31
|
},
|
|
@@ -33,5 +33,5 @@
|
|
|
33
33
|
"@carbon/test-utils": "^10.21.0",
|
|
34
34
|
"css": "^3.0.0"
|
|
35
35
|
},
|
|
36
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "e76c42ab78cbee043db643597b7b5d79bd387c9b"
|
|
37
37
|
}
|
|
@@ -87,7 +87,7 @@ $content-padding: 0 0 0 $spacing-05 !default;
|
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
&:hover::before {
|
|
90
|
-
background-color: $
|
|
90
|
+
background-color: $layer-hover;
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
&:focus {
|
|
@@ -125,11 +125,15 @@ $content-padding: 0 0 0 $spacing-05 !default;
|
|
|
125
125
|
|
|
126
126
|
.#{$prefix}--accordion__item--disabled,
|
|
127
127
|
.#{$prefix}--accordion__item--disabled + .#{$prefix}--accordion__item {
|
|
128
|
-
|
|
128
|
+
// v10 icon doesn't have 1:1 translation, keeping color same as enabled state
|
|
129
|
+
// https://github.com/carbon-design-system/carbon/issues/10373#issuecomment-1021638147
|
|
130
|
+
border-top: 1px solid $border-subtle;
|
|
129
131
|
}
|
|
130
132
|
|
|
131
133
|
li.#{$prefix}--accordion__item--disabled:last-of-type {
|
|
132
|
-
|
|
134
|
+
// v10 icon doesn't have 1:1 translation, keeping color same as enabled state
|
|
135
|
+
// https://github.com/carbon-design-system/carbon/issues/10373#issuecomment-1021638147
|
|
136
|
+
border-bottom: 1px solid $border-subtle;
|
|
133
137
|
}
|
|
134
138
|
|
|
135
139
|
.#{$prefix}--accordion__arrow {
|
|
@@ -230,15 +230,15 @@ $button-tertiary-active: (
|
|
|
230
230
|
) !default;
|
|
231
231
|
|
|
232
232
|
$button-danger-hover: (
|
|
233
|
-
fallback: #
|
|
233
|
+
fallback: #b81922,
|
|
234
234
|
values: (
|
|
235
235
|
(
|
|
236
236
|
theme: themes.$white,
|
|
237
|
-
value: #
|
|
237
|
+
value: #b81922,
|
|
238
238
|
),
|
|
239
239
|
(
|
|
240
240
|
theme: themes.$g10,
|
|
241
|
-
value: #
|
|
241
|
+
value: #b81922,
|
|
242
242
|
),
|
|
243
243
|
(
|
|
244
244
|
theme: themes.$g90,
|
|
@@ -252,59 +252,59 @@ $button-danger-hover: (
|
|
|
252
252
|
) !default;
|
|
253
253
|
|
|
254
254
|
$button-primary-hover: (
|
|
255
|
-
fallback: #
|
|
255
|
+
fallback: #0050e6,
|
|
256
256
|
values: (
|
|
257
257
|
(
|
|
258
258
|
theme: themes.$white,
|
|
259
|
-
value: #
|
|
259
|
+
value: #0050e6,
|
|
260
260
|
),
|
|
261
261
|
(
|
|
262
262
|
theme: themes.$g10,
|
|
263
|
-
value: #
|
|
263
|
+
value: #0050e6,
|
|
264
264
|
),
|
|
265
265
|
(
|
|
266
266
|
theme: themes.$g90,
|
|
267
|
-
value: #
|
|
267
|
+
value: #0050e6,
|
|
268
268
|
),
|
|
269
269
|
(
|
|
270
270
|
theme: themes.$g100,
|
|
271
|
-
value: #
|
|
271
|
+
value: #0050e6,
|
|
272
272
|
),
|
|
273
273
|
),
|
|
274
274
|
) !default;
|
|
275
275
|
|
|
276
276
|
$button-secondary-hover: (
|
|
277
|
-
fallback: #
|
|
277
|
+
fallback: #474747,
|
|
278
278
|
values: (
|
|
279
279
|
(
|
|
280
280
|
theme: themes.$white,
|
|
281
|
-
value: #
|
|
281
|
+
value: #474747,
|
|
282
282
|
),
|
|
283
283
|
(
|
|
284
284
|
theme: themes.$g10,
|
|
285
|
-
value: #
|
|
285
|
+
value: #474747,
|
|
286
286
|
),
|
|
287
287
|
(
|
|
288
288
|
theme: themes.$g90,
|
|
289
|
-
value: #
|
|
289
|
+
value: #5e5e5e,
|
|
290
290
|
),
|
|
291
291
|
(
|
|
292
292
|
theme: themes.$g100,
|
|
293
|
-
value: #
|
|
293
|
+
value: #5e5e5e,
|
|
294
294
|
),
|
|
295
295
|
),
|
|
296
296
|
) !default;
|
|
297
297
|
|
|
298
298
|
$button-tertiary-hover: (
|
|
299
|
-
fallback: #
|
|
299
|
+
fallback: #0050e6,
|
|
300
300
|
values: (
|
|
301
301
|
(
|
|
302
302
|
theme: themes.$white,
|
|
303
|
-
value: #
|
|
303
|
+
value: #0050e6,
|
|
304
304
|
),
|
|
305
305
|
(
|
|
306
306
|
theme: themes.$g10,
|
|
307
|
-
value: #
|
|
307
|
+
value: #0050e6,
|
|
308
308
|
),
|
|
309
309
|
(
|
|
310
310
|
theme: themes.$g90,
|
|
@@ -38,13 +38,13 @@ $copy-btn-feedback: $background-inverse !default;
|
|
|
38
38
|
.#{$prefix}--snippet--disabled,
|
|
39
39
|
.#{$prefix}--snippet--disabled
|
|
40
40
|
.#{$prefix}--btn.#{$prefix}--snippet-btn--expand {
|
|
41
|
-
background-color: $layer
|
|
41
|
+
background-color: $layer;
|
|
42
42
|
color: $text-disabled;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
.#{$prefix}--snippet--disabled .#{$prefix}--snippet-btn--expand:hover,
|
|
46
46
|
.#{$prefix}--snippet--disabled .#{$prefix}--copy-btn:hover {
|
|
47
|
-
background-color: $layer
|
|
47
|
+
background-color: $layer;
|
|
48
48
|
color: $text-disabled;
|
|
49
49
|
cursor: not-allowed;
|
|
50
50
|
}
|
|
@@ -80,11 +80,15 @@
|
|
|
80
80
|
|
|
81
81
|
.#{$prefix}--toolbar-search-container-expandable .#{$prefix}--search-input {
|
|
82
82
|
height: 100%;
|
|
83
|
-
padding: 0;
|
|
84
83
|
cursor: pointer;
|
|
85
84
|
opacity: 0;
|
|
86
85
|
}
|
|
87
86
|
|
|
87
|
+
.#{$prefix}--toolbar-search-container-expandable:not(.#{$prefix}--toolbar-search-container-active)
|
|
88
|
+
.#{$prefix}--search-input {
|
|
89
|
+
padding: 0;
|
|
90
|
+
}
|
|
91
|
+
|
|
88
92
|
.#{$prefix}--toolbar-search-container-expandable
|
|
89
93
|
.#{$prefix}--search-magnifier-icon {
|
|
90
94
|
left: 0;
|
|
@@ -95,7 +99,7 @@
|
|
|
95
99
|
|
|
96
100
|
.#{$prefix}--toolbar-search-container-expandable.#{$prefix}--search--disabled
|
|
97
101
|
.#{$prefix}--search-magnifier-icon {
|
|
98
|
-
background-color: $layer
|
|
102
|
+
background-color: $layer;
|
|
99
103
|
cursor: not-allowed;
|
|
100
104
|
transition: background-color none;
|
|
101
105
|
}
|
|
@@ -479,7 +479,7 @@ $list-box-menu-width: rem(300px);
|
|
|
479
479
|
}
|
|
480
480
|
|
|
481
481
|
.#{$prefix}--list-box--disabled .#{$prefix}--list-box__selection--multi {
|
|
482
|
-
@include tag-theme($text-disabled, $field
|
|
482
|
+
@include tag-theme($text-disabled, $field);
|
|
483
483
|
|
|
484
484
|
> svg {
|
|
485
485
|
fill: $icon-disabled;
|
|
@@ -91,8 +91,7 @@
|
|
|
91
91
|
height: auto;
|
|
92
92
|
max-height: 90%;
|
|
93
93
|
|
|
94
|
-
.#{$prefix}--modal-
|
|
95
|
-
.#{$prefix}--modal-content,
|
|
94
|
+
.#{$prefix}--modal-content p,
|
|
96
95
|
.#{$prefix}--modal-content__regular-content {
|
|
97
96
|
padding-right: 20%;
|
|
98
97
|
}
|
|
@@ -176,8 +175,7 @@
|
|
|
176
175
|
@include breakpoint(xlg) {
|
|
177
176
|
width: 36%;
|
|
178
177
|
|
|
179
|
-
.#{$prefix}--modal-
|
|
180
|
-
.#{$prefix}--modal-content,
|
|
178
|
+
.#{$prefix}--modal-content p,
|
|
181
179
|
.#{$prefix}--modal-content__regular-content {
|
|
182
180
|
padding-right: 20%;
|
|
183
181
|
}
|
|
@@ -203,8 +201,7 @@
|
|
|
203
201
|
@include breakpoint(md) {
|
|
204
202
|
width: 96%;
|
|
205
203
|
|
|
206
|
-
.#{$prefix}--modal-
|
|
207
|
-
.#{$prefix}--modal-content,
|
|
204
|
+
.#{$prefix}--modal-content p,
|
|
208
205
|
.#{$prefix}--modal-content__regular-content {
|
|
209
206
|
padding-right: 20%;
|
|
210
207
|
}
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
.#{$prefix}--number input[type='number']:disabled,
|
|
92
92
|
.#{$prefix}--number--readonly input[type='number'] {
|
|
93
93
|
border-bottom-color: transparent;
|
|
94
|
-
background-color: $field
|
|
94
|
+
background-color: $field;
|
|
95
95
|
color: $text-disabled;
|
|
96
96
|
cursor: not-allowed;
|
|
97
97
|
}
|
|
@@ -26,11 +26,11 @@
|
|
|
26
26
|
|
|
27
27
|
.#{$prefix}--pagination {
|
|
28
28
|
@include component-reset.reset;
|
|
29
|
-
@include type-style('body-
|
|
29
|
+
@include type-style('body-compact-01');
|
|
30
30
|
|
|
31
31
|
display: flex;
|
|
32
32
|
width: calc(100% - 1px);
|
|
33
|
-
min-height:
|
|
33
|
+
min-height: rem(40px);
|
|
34
34
|
align-items: center;
|
|
35
35
|
justify-content: space-between;
|
|
36
36
|
border-top: 1px solid $border-subtle;
|
|
@@ -62,6 +62,14 @@
|
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
+
.#{$prefix}--pagination--sm {
|
|
66
|
+
min-height: rem(32px);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.#{$prefix}--pagination--lg {
|
|
70
|
+
min-height: rem(48px);
|
|
71
|
+
}
|
|
72
|
+
|
|
65
73
|
.#{$prefix}--pagination .#{$prefix}--select {
|
|
66
74
|
height: 100%;
|
|
67
75
|
align-items: center;
|
|
@@ -75,7 +83,16 @@
|
|
|
75
83
|
.#{$prefix}--pagination .#{$prefix}--select-input {
|
|
76
84
|
width: auto;
|
|
77
85
|
min-width: auto;
|
|
78
|
-
height:
|
|
86
|
+
height: 100%;
|
|
87
|
+
line-height: rem(40px);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.#{$prefix}--pagination--sm .#{$prefix}--select-input {
|
|
91
|
+
line-height: rem(32px);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.#{$prefix}--pagination--lg .#{$prefix}--select-input {
|
|
95
|
+
line-height: rem(48px);
|
|
79
96
|
}
|
|
80
97
|
|
|
81
98
|
.#{$prefix}--pagination
|
|
@@ -85,7 +102,18 @@
|
|
|
85
102
|
}
|
|
86
103
|
|
|
87
104
|
.#{$prefix}--pagination .#{$prefix}--select-input:hover {
|
|
88
|
-
background: $
|
|
105
|
+
background: $layer-hover;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.#{$prefix}--pagination
|
|
109
|
+
.#{$prefix}--select--inline
|
|
110
|
+
.#{$prefix}--select-input:focus
|
|
111
|
+
option,
|
|
112
|
+
.#{$prefix}--pagination
|
|
113
|
+
.#{$prefix}--select--inline
|
|
114
|
+
.#{$prefix}--select-input:focus
|
|
115
|
+
optgroup {
|
|
116
|
+
background-color: $layer;
|
|
89
117
|
}
|
|
90
118
|
|
|
91
119
|
.#{$prefix}--pagination .#{$prefix}--select__arrow {
|
|
@@ -108,7 +136,7 @@
|
|
|
108
136
|
.#{$prefix}--pagination__left,
|
|
109
137
|
.#{$prefix}--pagination__right {
|
|
110
138
|
display: flex;
|
|
111
|
-
height:
|
|
139
|
+
height: 100%;
|
|
112
140
|
align-items: center;
|
|
113
141
|
}
|
|
114
142
|
|
|
@@ -155,8 +183,9 @@
|
|
|
155
183
|
@include component-reset.reset;
|
|
156
184
|
|
|
157
185
|
display: flex;
|
|
158
|
-
width:
|
|
159
|
-
height:
|
|
186
|
+
width: rem(40px);
|
|
187
|
+
height: rem(40px);
|
|
188
|
+
min-height: rem(32px);
|
|
160
189
|
align-items: center;
|
|
161
190
|
justify-content: center;
|
|
162
191
|
border: none;
|
|
@@ -169,6 +198,20 @@
|
|
|
169
198
|
background-color $duration-fast-02 motion(standard, productive);
|
|
170
199
|
}
|
|
171
200
|
|
|
201
|
+
.#{$prefix}--pagination--sm .#{$prefix}--pagination__button,
|
|
202
|
+
.#{$prefix}--pagination--sm
|
|
203
|
+
.#{$prefix}--btn--ghost.#{$prefix}--pagination__button {
|
|
204
|
+
width: rem(32px);
|
|
205
|
+
height: rem(32px);
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.#{$prefix}--pagination--lg .#{$prefix}--pagination__button,
|
|
209
|
+
.#{$prefix}--pagination--lg
|
|
210
|
+
.#{$prefix}--btn--ghost.#{$prefix}--pagination__button {
|
|
211
|
+
width: rem(48px);
|
|
212
|
+
height: rem(48px);
|
|
213
|
+
}
|
|
214
|
+
|
|
172
215
|
.#{$prefix}--pagination__button:focus,
|
|
173
216
|
.#{$prefix}--btn--ghost:focus.#{$prefix}--pagination__button {
|
|
174
217
|
@include focus-outline('outline');
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
&:disabled,
|
|
91
91
|
&:hover:disabled {
|
|
92
92
|
border-bottom-color: $border-disabled;
|
|
93
|
-
background-color: $field
|
|
93
|
+
background-color: $field;
|
|
94
94
|
color: $text-disabled;
|
|
95
95
|
cursor: not-allowed;
|
|
96
96
|
}
|
|
@@ -221,7 +221,7 @@
|
|
|
221
221
|
|
|
222
222
|
.#{$prefix}--select--inline .#{$prefix}--select-input[disabled],
|
|
223
223
|
.#{$prefix}--select--inline .#{$prefix}--select-input[disabled]:hover {
|
|
224
|
-
background-color: $field
|
|
224
|
+
background-color: $field;
|
|
225
225
|
}
|
|
226
226
|
|
|
227
227
|
.#{$prefix}--select--inline .#{$prefix}--select__arrow {
|
|
@@ -185,7 +185,7 @@
|
|
|
185
185
|
.#{$prefix}--slider-text-input,
|
|
186
186
|
.#{$prefix}--slider--disabled ~ .#{$prefix}--slider-text-input {
|
|
187
187
|
border: none;
|
|
188
|
-
background-color: $field
|
|
188
|
+
background-color: $field;
|
|
189
189
|
color: $text-disabled;
|
|
190
190
|
cursor: not-allowed;
|
|
191
191
|
transition: none;
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
.#{$prefix}--tag--disabled,
|
|
124
124
|
.#{$prefix}--tag--filter.#{$prefix}--tag--disabled,
|
|
125
125
|
.#{$prefix}--tag--interactive.#{$prefix}--tag--disabled {
|
|
126
|
-
@include tag-theme($layer
|
|
126
|
+
@include tag-theme($layer, $text-disabled);
|
|
127
127
|
|
|
128
128
|
&:hover {
|
|
129
129
|
cursor: not-allowed;
|
|
@@ -216,7 +216,7 @@
|
|
|
216
216
|
@include focus-outline('reset');
|
|
217
217
|
|
|
218
218
|
border-bottom: 1px solid transparent;
|
|
219
|
-
background-color: $field
|
|
219
|
+
background-color: $field;
|
|
220
220
|
color: $text-disabled;
|
|
221
221
|
cursor: not-allowed;
|
|
222
222
|
// Needed to fix disabled text in Safari #6673
|
|
@@ -302,7 +302,7 @@
|
|
|
302
302
|
+ .#{$prefix}--toggle__label
|
|
303
303
|
.#{$prefix}--toggle__appearance {
|
|
304
304
|
&::before {
|
|
305
|
-
background-color: $layer
|
|
305
|
+
background-color: $layer;
|
|
306
306
|
}
|
|
307
307
|
|
|
308
308
|
&::after {
|
|
@@ -581,7 +581,7 @@
|
|
|
581
581
|
.#{$prefix}--toggle-input--small:disabled:checked
|
|
582
582
|
+ .#{$prefix}--toggle-input__label
|
|
583
583
|
.#{$prefix}--toggle__check {
|
|
584
|
-
fill: $layer
|
|
584
|
+
fill: $layer;
|
|
585
585
|
}
|
|
586
586
|
|
|
587
587
|
//----------------------------------------------
|
|
@@ -11,6 +11,8 @@
|
|
|
11
11
|
@use '../../type';
|
|
12
12
|
@use '../../utilities/custom-property';
|
|
13
13
|
@use '../../utilities/convert';
|
|
14
|
+
@use '../../utilities/button-reset';
|
|
15
|
+
@use '../../utilities/focus-outline';
|
|
14
16
|
|
|
15
17
|
$tooltip-padding-block: custom-property.get-var(
|
|
16
18
|
'tooltip-padding-block',
|
|
@@ -37,6 +39,34 @@ $tooltip-padding-inline: custom-property.get-var(
|
|
|
37
39
|
}
|
|
38
40
|
}
|
|
39
41
|
|
|
42
|
+
@mixin definition-tooltip {
|
|
43
|
+
.#{$prefix}--definition-term {
|
|
44
|
+
@include button-reset.reset;
|
|
45
|
+
|
|
46
|
+
border-bottom: 1px dotted theme.$border-strong;
|
|
47
|
+
border-radius: 0;
|
|
48
|
+
|
|
49
|
+
color: theme.$text-primary;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.#{$prefix}--definition-term:focus {
|
|
53
|
+
@include focus-outline.focus-outline;
|
|
54
|
+
|
|
55
|
+
border-bottom-color: theme.$border-interactive;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.#{$prefix}--definition-term:hover {
|
|
59
|
+
border-bottom-color: theme.$border-interactive;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.#{$prefix}--definition-tooltip {
|
|
63
|
+
@include type.type-style('body-long-01');
|
|
64
|
+
|
|
65
|
+
max-width: convert.rem(176px);
|
|
66
|
+
padding: convert.rem(8px) convert.rem(16px);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
40
70
|
@mixin icon-tooltip {
|
|
41
71
|
.#{$prefix}--icon-tooltip {
|
|
42
72
|
@include custom-property.declaration(
|