@carbon/styles 1.45.0-rc.0 → 1.46.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.45.0-rc.0",
4
+ "version": "1.46.0-rc.0",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
7
7
  "type": "git",
@@ -65,5 +65,5 @@
65
65
  "scss/**/*.css",
66
66
  "css/**/*.css"
67
67
  ],
68
- "gitHead": "451ce652bb9e0fcd30fc28a41ddee1a1daedfd34"
68
+ "gitHead": "89fe49b63bf2b4b5902d30f3bfeff2face55897e"
69
69
  }
@@ -200,6 +200,7 @@ $content-padding: 0 0 0 $spacing-05 !default;
200
200
 
201
201
  .#{$prefix}--accordion__wrapper {
202
202
  // Properties for when the accordion opens
203
+ max-block-size: fit-content;
203
204
  opacity: 1;
204
205
  padding-block: $spacing-03;
205
206
  padding-block-end: $spacing-06;
@@ -12,6 +12,7 @@
12
12
  @use '../../spacing' as *;
13
13
  @use '../../theme' as *;
14
14
  @use '../../type' as *;
15
+ @use '../../utilities/ai-gradient' as *;
15
16
  @use '../../utilities/convert';
16
17
  @use '../../utilities/component-reset';
17
18
  @use '../../utilities/focus-outline' as *;
@@ -155,7 +156,6 @@
155
156
  .#{$prefix}--modal-container {
156
157
  position: fixed;
157
158
  display: grid;
158
- overflow: hidden;
159
159
  background-color: $layer;
160
160
  block-size: 100%;
161
161
  grid-template-columns: 100%;
@@ -485,6 +485,38 @@
485
485
  margin: 0;
486
486
  }
487
487
 
488
+ // Slug styles
489
+ .#{$prefix}--modal--slug .#{$prefix}--modal-container {
490
+ @include callout-gradient('default');
491
+
492
+ background-color: $layer;
493
+ }
494
+
495
+ // Start the gradient 64px from bottom only when two buttons are present
496
+ .#{$prefix}--modal--slug
497
+ .#{$prefix}--modal-container:has(
498
+ .#{$prefix}--btn-set:not(.#{$prefix}--modal-footer--three-button)
499
+ > button:not(:only-child)
500
+ ) {
501
+ @include callout-gradient('default', 64px);
502
+
503
+ background-color: $layer;
504
+ }
505
+
506
+ .#{$prefix}--modal--slug .#{$prefix}--slug {
507
+ position: absolute;
508
+ inset-block-start: 0;
509
+ inset-inline-end: 0;
510
+ }
511
+
512
+ .#{$prefix}--modal-header > .#{$prefix}--slug:has(+ .#{$prefix}--modal-close),
513
+ .#{$prefix}--modal-header > .#{$prefix}--modal-close ~ .#{$prefix}--slug,
514
+ .#{$prefix}--modal--slug
515
+ .#{$prefix}--modal-container-body
516
+ > .#{$prefix}--slug {
517
+ inset-inline-end: convert.to-rem(48px);
518
+ }
519
+
488
520
  // Windows HCM fix
489
521
  /* stylelint-disable */
490
522
  .#{$prefix}--modal-close__icon {
@@ -6,6 +6,7 @@
6
6
  @use '../../type' as *;
7
7
  @use '../../utilities/ai-gradient' as *;
8
8
  @use '../../utilities/convert';
9
+ @use '../toggletip';
9
10
 
10
11
  $sizes: (
11
12
  mini: (
@@ -268,6 +268,23 @@
268
268
  }
269
269
  }
270
270
 
271
+ // Slug styles
272
+ .#{$prefix}--tag .#{$prefix}--slug .#{$prefix}--slug__button--inline {
273
+ color: currentColor;
274
+ margin-inline-start: convert.to-rem(1px);
275
+ }
276
+
277
+ .#{$prefix}--tag
278
+ .#{$prefix}--slug
279
+ .#{$prefix}--slug__button--inline
280
+ .#{$prefix}--slug__text::before {
281
+ background-color: currentColor;
282
+ }
283
+
284
+ .#{$prefix}--tag .#{$prefix}--slug .#{$prefix}--slug__button--inline:hover {
285
+ border-color: currentColor;
286
+ }
287
+
271
288
  // Windows HCM fix
272
289
  /* stylelint-disable */
273
290
  .#{$prefix}--tag {
@@ -470,6 +470,10 @@ $-icon-container-size: calc(#{layout.density('padding-inline')} * 2 + 1rem);
470
470
  border-radius: $spacing-05;
471
471
  }
472
472
 
473
+ .#{$prefix}--tile--slug-rounded .#{$prefix}--tile__chevron {
474
+ border-end-end-radius: $spacing-05;
475
+ }
476
+
473
477
  // Windows HCM fix
474
478
  .#{$prefix}--tile__chevron svg,
475
479
  .#{$prefix}--tile__checkmark svg,
@@ -45,50 +45,56 @@
45
45
  /// @access private
46
46
  /// @example @include callout-gradient();
47
47
  /// @param {String} $type - Type of gradient, either 'default', 'selected' or 'hover'
48
+ /// @param {Number} $type - specify a pixel offset the callout should start from the bottom
48
49
  /// @group utilities
49
- @mixin callout-gradient($type: 'default') {
50
+ @mixin callout-gradient($type: 'default', $offset: 0) {
51
+ $start: 0%;
52
+ @if $offset != 0 {
53
+ $start: calc(0% + #{$offset});
54
+ }
55
+
50
56
  @if $type == 'hover' {
51
57
  background: linear-gradient(
52
58
  0deg,
53
- theme.$slug-callout-aura-start-hover-01 0%,
59
+ theme.$slug-callout-aura-start-hover-01 $start,
54
60
  theme.$slug-callout-aura-end-hover-01 50%,
55
61
  transparent 50%
56
62
  ),
57
63
  linear-gradient(
58
64
  0deg,
59
- theme.$slug-callout-aura-start-hover-02 0%,
65
+ theme.$slug-callout-aura-start-hover-02 $start,
60
66
  theme.$slug-callout-aura-end-hover-02 50%,
61
67
  transparent 50%
62
68
  ),
63
69
  linear-gradient(
64
70
  180deg,
65
- theme.$slug-callout-gradient-top-hover 0%,
71
+ theme.$slug-callout-gradient-top-hover $start,
66
72
  theme.$slug-callout-gradient-bottom-hover 100%
67
73
  )
68
74
  rgba(0, 0, 0, 0.01);
69
75
  } @else if $type == 'selected' {
70
76
  background: linear-gradient(
71
77
  0deg,
72
- theme.$slug-callout-aura-start-selected 0%,
78
+ theme.$slug-callout-aura-start-selected $start,
73
79
  theme.$slug-callout-aura-end-selected 50%,
74
80
  transparent 50%
75
81
  ),
76
82
  linear-gradient(
77
83
  180deg,
78
- theme.$slug-callout-gradient-top-selected 0%,
84
+ theme.$slug-callout-gradient-top-selected $start,
79
85
  theme.$slug-callout-gradient-bottom-selected 100%
80
86
  )
81
87
  rgba(0, 0, 0, 0.01);
82
88
  } @else {
83
89
  background: linear-gradient(
84
90
  0deg,
85
- theme.$slug-callout-aura-start 0%,
91
+ theme.$slug-callout-aura-start $start,
86
92
  theme.$slug-callout-aura-end 50%,
87
93
  transparent 50%
88
94
  ),
89
95
  linear-gradient(
90
96
  180deg,
91
- theme.$slug-callout-gradient-top 0%,
97
+ theme.$slug-callout-gradient-top $start,
92
98
  theme.$slug-callout-gradient-bottom 100%
93
99
  )
94
100
  rgba(0, 0, 0, 0.01);