@carbon/styles 1.64.0 → 1.65.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/css/styles.css +57 -27
- package/css/styles.min.css +1 -1
- package/package.json +10 -10
- package/scss/__tests__/__snapshots__/type-test.js.snap +1334 -1562
- package/scss/components/accordion/_accordion.scss +38 -26
- package/scss/components/checkbox/_checkbox.scss +1 -1
- package/scss/components/code-snippet/_code-snippet.scss +1 -0
- package/scss/components/inline-loading/_inline-loading.scss +1 -1
- package/scss/components/modal/_modal.scss +1 -1
- package/scss/components/multiselect/_multiselect.scss +37 -0
- package/scss/components/slider/_slider.scss +0 -1
|
@@ -50,9 +50,11 @@ $content-padding: 0 0 0 $spacing-05 !default;
|
|
|
50
50
|
@include layout.use('density', $default: 'normal');
|
|
51
51
|
|
|
52
52
|
@include component-reset.reset;
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
53
|
+
/* stylelint-disable-next-line scss/selector-no-redundant-nesting-selector, no-duplicate-selectors */
|
|
54
|
+
& {
|
|
55
|
+
inline-size: 100%;
|
|
56
|
+
list-style: none;
|
|
57
|
+
}
|
|
56
58
|
}
|
|
57
59
|
|
|
58
60
|
.#{$prefix}--accordion__item {
|
|
@@ -81,20 +83,23 @@ $content-padding: 0 0 0 $spacing-05 !default;
|
|
|
81
83
|
}
|
|
82
84
|
|
|
83
85
|
.#{$prefix}--accordion__heading {
|
|
86
|
+
transition: background-color motion(standard, productive) $duration-fast-02;
|
|
84
87
|
@include button-reset.reset;
|
|
85
88
|
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
89
|
+
/* stylelint-disable-next-line scss/selector-no-redundant-nesting-selector, no-duplicate-selectors */
|
|
90
|
+
& {
|
|
91
|
+
position: relative;
|
|
92
|
+
display: flex;
|
|
93
|
+
flex-direction: $flex-direction;
|
|
94
|
+
align-items: center;
|
|
95
|
+
justify-content: $justify-content;
|
|
96
|
+
margin: 0;
|
|
97
|
+
color: $text-primary;
|
|
98
|
+
cursor: pointer;
|
|
99
|
+
inline-size: 100%;
|
|
100
|
+
min-block-size: layout.size('height');
|
|
101
|
+
padding-inline-end: layout.density('padding-inline');
|
|
102
|
+
}
|
|
98
103
|
|
|
99
104
|
&:hover {
|
|
100
105
|
background-color: $layer-hover;
|
|
@@ -143,23 +148,30 @@ $content-padding: 0 0 0 $spacing-05 !default;
|
|
|
143
148
|
.#{$prefix}--accordion__arrow {
|
|
144
149
|
@include focus-outline('reset');
|
|
145
150
|
|
|
146
|
-
flex: 0 0 1rem;
|
|
147
|
-
block-size: 1rem;
|
|
148
|
-
fill: $icon-primary;
|
|
149
|
-
inline-size: 1rem;
|
|
150
|
-
// Without flex basis and flex shrink being set here, our icon width can go
|
|
151
|
-
// <16px and cause the icon to render in the incorrect artboard size
|
|
152
|
-
transform: rotate(-270deg) #{'/*rtl:ignore*/'};
|
|
153
151
|
transition: all $duration-fast-02 motion(standard, productive);
|
|
152
|
+
|
|
153
|
+
/* stylelint-disable-next-line scss/selector-no-redundant-nesting-selector, no-duplicate-selectors */
|
|
154
|
+
& {
|
|
155
|
+
flex: 0 0 1rem;
|
|
156
|
+
block-size: 1rem;
|
|
157
|
+
fill: $icon-primary;
|
|
158
|
+
inline-size: 1rem;
|
|
159
|
+
// Without flex basis and flex shrink being set here, our icon width can go
|
|
160
|
+
// <16px and cause the icon to render in the incorrect artboard size
|
|
161
|
+
transform: rotate(-270deg) #{'/*rtl:ignore*/'};
|
|
162
|
+
}
|
|
154
163
|
}
|
|
155
164
|
|
|
156
165
|
.#{$prefix}--accordion__title {
|
|
157
166
|
@include type-style('body-01');
|
|
158
167
|
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
168
|
+
/* stylelint-disable-next-line scss/selector-no-redundant-nesting-selector, no-duplicate-selectors */
|
|
169
|
+
& {
|
|
170
|
+
z-index: 1;
|
|
171
|
+
inline-size: 100%;
|
|
172
|
+
padding-inline-start: $spacing-05;
|
|
173
|
+
text-align: start;
|
|
174
|
+
}
|
|
163
175
|
}
|
|
164
176
|
|
|
165
177
|
.#{$prefix}--accordion__wrapper {
|
|
@@ -42,6 +42,26 @@
|
|
|
42
42
|
min-inline-size: auto;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
+
// When select all is turned on, the first item in the listbox
|
|
46
|
+
// is always the "Select all" option and gets special border
|
|
47
|
+
// treatment
|
|
48
|
+
.#{$prefix}--multi-select.#{$prefix}--multi-select--selectall
|
|
49
|
+
.#{$prefix}--list-box__menu-item:first-child
|
|
50
|
+
.#{$prefix}--list-box__menu-item__option {
|
|
51
|
+
padding: 0.6875rem $spacing-05;
|
|
52
|
+
margin: 0;
|
|
53
|
+
border-block-end: 1px solid $border-subtle-01;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
// When select all is turned on, the second item in the list
|
|
57
|
+
// has special treatment to look correct against the "Select all"
|
|
58
|
+
// border treatment
|
|
59
|
+
.#{$prefix}--multi-select.#{$prefix}--multi-select--selectall
|
|
60
|
+
.#{$prefix}--list-box__menu-item:nth-child(2)
|
|
61
|
+
.#{$prefix}--list-box__menu-item__option {
|
|
62
|
+
border-block-start: none;
|
|
63
|
+
}
|
|
64
|
+
|
|
45
65
|
.#{$prefix}--multi-select
|
|
46
66
|
.#{$prefix}--list-box__menu-item__option
|
|
47
67
|
.#{$prefix}--checkbox-wrapper {
|
|
@@ -62,6 +82,23 @@
|
|
|
62
82
|
white-space: nowrap;
|
|
63
83
|
}
|
|
64
84
|
|
|
85
|
+
.#{$prefix}--multi-select
|
|
86
|
+
.#{$prefix}--list-box__menu-item__option
|
|
87
|
+
.#{$prefix}--checkbox-label::before {
|
|
88
|
+
margin-block: 0;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.#{$prefix}--multi-select
|
|
92
|
+
.#{$prefix}--list-box__menu-item__option
|
|
93
|
+
.cds--checkbox:indeterminate
|
|
94
|
+
+ .cds--checkbox-label::after {
|
|
95
|
+
inset-block-start: convert.to-rem(9px);
|
|
96
|
+
}
|
|
97
|
+
.#{$prefix}--multi-select
|
|
98
|
+
.#{$prefix}--list-box__menu-item__option
|
|
99
|
+
.cds--checkbox-label::after {
|
|
100
|
+
inset-block-start: convert.to-rem(5px);
|
|
101
|
+
}
|
|
65
102
|
.#{$prefix}--multi-select
|
|
66
103
|
.#{$prefix}--list-box__menu-item__option
|
|
67
104
|
> .#{$prefix}--form-item {
|
|
@@ -224,7 +224,6 @@
|
|
|
224
224
|
.#{$prefix}--slider__thumb--lower,
|
|
225
225
|
.#{$prefix}--slider__thumb--upper {
|
|
226
226
|
position: absolute;
|
|
227
|
-
/* stylelint-disable-next-line declaration-property-value-disallowed-list */
|
|
228
227
|
border-radius: unset;
|
|
229
228
|
background-color: transparent;
|
|
230
229
|
box-shadow: none;
|