@carbon/styles 1.85.0 → 1.86.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.
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": "1.85.0",
4
+ "version": "1.86.0-rc.0",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
7
7
  "type": "git",
@@ -41,7 +41,7 @@
41
41
  },
42
42
  "dependencies": {
43
43
  "@carbon/colors": "^11.35.0",
44
- "@carbon/feature-flags": "^0.27.0",
44
+ "@carbon/feature-flags": "^0.28.0-rc.0",
45
45
  "@carbon/grid": "^11.38.0",
46
46
  "@carbon/layout": "^11.36.0",
47
47
  "@carbon/motion": "^11.30.0",
@@ -75,5 +75,5 @@
75
75
  "scss/**/*.css",
76
76
  "css/**/*.css"
77
77
  ],
78
- "gitHead": "62119bab35028f3935a28e7bb09d2c234f061302"
78
+ "gitHead": "ae3d208825a90cb5c4ee316fabaa3282679a0b59"
79
79
  }
@@ -14,6 +14,7 @@
14
14
  'enable-v12-tile-radio-icons': false,
15
15
  'enable-v12-structured-list-visible-icons': false,
16
16
  'enable-dialog-element': false,
17
+ 'enable-v12-toggle-reduced-label-spacing': false,
17
18
  )
18
19
  !default
19
20
  );
@@ -23,7 +23,7 @@
23
23
 
24
24
  @mixin button {
25
25
  .#{$prefix}--btn {
26
- @include layout.use('size', $min: 'sm', $default: 'lg', $max: '2xl');
26
+ @include layout.use('size', $min: 'xs', $default: 'lg', $max: '2xl');
27
27
  @include layout.use('density', $default: 'normal');
28
28
 
29
29
  @include button-base;
@@ -182,7 +182,13 @@
182
182
  }
183
183
  }
184
184
 
185
- // Adjust icon positioning in small, medium variants only
185
+ // Adjust text positioning in extra small variant only
186
+ .#{$prefix}--btn--xs:not(.#{$prefix}--btn--icon-only) {
187
+ padding-block-start: 1.5px;
188
+ }
189
+
190
+ // Adjust icon positioning in extra small, small, medium variants only
191
+ .#{$prefix}--btn--xs:not(.#{$prefix}--btn--icon-only) .#{$prefix}--btn__icon,
186
192
  .#{$prefix}--btn--sm:not(.#{$prefix}--btn--icon-only) .#{$prefix}--btn__icon,
187
193
  .#{$prefix}--btn--md:not(.#{$prefix}--btn--icon-only) .#{$prefix}--btn__icon {
188
194
  margin-block-start: 0;
@@ -475,6 +475,9 @@ $-icon-container-size: calc(#{layout.density('padding-inline')} * 2 + 1rem);
475
475
  .#{$prefix}--tile--decorator:has(
476
476
  .#{$prefix}--ai-label
477
477
  ).#{$prefix}--tile--clickable::before,
478
+ .#{$prefix}--tile--decorator:has(
479
+ .#{$prefix}--tile--ai-label-icon
480
+ ).#{$prefix}--tile--clickable::before,
478
481
  .#{$prefix}--tile--slug.#{$prefix}--tile--selectable::before,
479
482
  .#{$prefix}--tile--slug.#{$prefix}--tile--clickable::before {
480
483
  @include ai-popover-gradient('hover', 0, 'layer');
@@ -6,6 +6,7 @@
6
6
  //3
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
  /// Toggle styles
20
21
  /// @access public
21
22
  /// @group toggle
22
- @mixin toggle {
23
+ @mixin toggle($enable-v12-toggle-reduced-label-spacing: false) {
23
24
  .#{$prefix}--toggle {
24
25
  display: inline-block;
25
26
  user-select: none;
@@ -31,6 +32,12 @@
31
32
  display: block;
32
33
  color: $text-secondary;
33
34
  margin-block-end: $spacing-05;
35
+ @if (
36
+ enabled('enable-v12-toggle-reduced-label-spacing') or
37
+ $enable-v12-toggle-reduced-label-spacing
38
+ ) {
39
+ margin-block-end: $spacing-03;
40
+ }
34
41
  }
35
42
 
36
43
  .#{$prefix}--toggle__button {