@carbon/styles 1.64.0-rc.0 → 1.65.0-rc.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.
@@ -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
- inline-size: 100%;
55
- list-style: none;
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
- position: relative;
87
- display: flex;
88
- flex-direction: $flex-direction;
89
- align-items: center;
90
- justify-content: $justify-content;
91
- margin: 0;
92
- color: $text-primary;
93
- cursor: pointer;
94
- inline-size: 100%;
95
- min-block-size: layout.size('height');
96
- padding-inline-end: layout.density('padding-inline');
97
- transition: background-color motion(standard, productive) $duration-fast-02;
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
- z-index: 1;
160
- inline-size: 100%;
161
- padding-inline-start: $spacing-05;
162
- text-align: start;
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 {
@@ -62,7 +62,7 @@
62
62
  display: flex;
63
63
  cursor: pointer;
64
64
  min-block-size: convert.to-rem(20px);
65
- padding-block-start: convert.to-rem(2px);
65
+ padding-block-start: convert.to-rem(1px);
66
66
  padding-inline-start: convert.to-rem(20px);
67
67
  user-select: none;
68
68
  }
@@ -300,6 +300,7 @@ $copy-btn-feedback: $background-inverse !default;
300
300
  .#{$prefix}--snippet--inline.#{$prefix}--btn {
301
301
  block-size: 1.25rem;
302
302
  inline-size: initial;
303
+ max-inline-size: unset;
303
304
  min-block-size: 1.25rem;
304
305
  padding-inline: 0;
305
306
  }
@@ -121,16 +121,16 @@
121
121
  }
122
122
 
123
123
  .#{$prefix}--data-table
124
- tr
125
- + :not(.#{$prefix}--popover-container):hover
126
- .#{$prefix}--link {
124
+ tr:hover
125
+ .#{$prefix}--link:not(.#{$prefix}--popover-container .#{$prefix}--link) {
127
126
  color: $link-secondary;
128
127
  }
129
128
 
130
129
  .#{$prefix}--data-table
131
- tr
132
- + :not(.#{$prefix}--popover-container):hover
133
- .#{$prefix}--link--disabled {
130
+ tr:hover
131
+ .#{$prefix}--link--disabled:not(
132
+ .#{$prefix}--popover-container .#{$prefix}--link
133
+ ) {
134
134
  color: $text-disabled;
135
135
  }
136
136
 
@@ -30,7 +30,7 @@ $-loading-gap-small: 110;
30
30
  }
31
31
 
32
32
  .#{$prefix}--inline-loading__text {
33
- @include type-style('label-01');
33
+ @include type-style('label-02');
34
34
 
35
35
  color: $text-secondary;
36
36
  }
@@ -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;