@carbon/styles 1.98.0 → 1.99.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.
@@ -1,5 +1,5 @@
1
1
  //
2
- // Copyright IBM Corp. 2018, 2023
2
+ // Copyright IBM Corp. 2018, 2026
3
3
  //
4
4
  // This source code is licensed under the Apache-2.0 license found in the
5
5
  // LICENSE file in the root directory of this source tree.
@@ -17,7 +17,7 @@
17
17
 
18
18
  @mixin toggletip() {
19
19
  .#{$prefix}--toggletip-label {
20
- @include type.type-style('body-01');
20
+ @include type.type-style('label-01');
21
21
 
22
22
  color: theme.$text-secondary;
23
23
  margin-inline-end: spacing.$spacing-03;
@@ -298,7 +298,10 @@
298
298
  .#{$prefix}--tree-node__label .#{$prefix}--popover-container {
299
299
  inline-size: 100%;
300
300
  }
301
- .#{$prefix}--tooltip-trigger__wrapper .#{$prefix}--btn--ghost:focus {
301
+ .#{$prefix}--tree
302
+ .#{$prefix}--tree-node__label
303
+ .#{$prefix}--tooltip-trigger__wrapper
304
+ .#{$prefix}--btn--ghost:focus {
302
305
  box-shadow: none;
303
306
  outline: 2px solid $focus;
304
307
  }
@@ -11,6 +11,7 @@
11
11
  @use 'z-index' as *;
12
12
  @use '../config' as *;
13
13
  @use '../motion' as *;
14
+ @use '../spacing' as *;
14
15
  @use '../theme' as *;
15
16
  @use '../type';
16
17
 
@@ -36,11 +37,12 @@
36
37
  @include box-shadow;
37
38
 
38
39
  z-index: z('floating');
39
- padding: if(
40
- sass($tooltip-type == 'definition'),
41
- convert.to-rem(8px) convert.to-rem(16px),
42
- convert.to-rem(3px) convert.to-rem(16px)
43
- );
40
+ @if $tooltip-type == 'definition' {
41
+ padding: $spacing-03 $spacing-05;
42
+ } @else {
43
+ padding: convert.to-rem(3px) $spacing-05;
44
+ }
45
+
44
46
  border-radius: convert.to-rem(2px);
45
47
  background-color: $background-inverse;
46
48
  block-size: auto;
@@ -233,11 +235,11 @@
233
235
  $align: 'center'
234
236
  ) {
235
237
  // position and alignment
236
- $caret-spacing: if(
237
- sass($tooltip-type == 'definition'),
238
- convert.to-rem(4px),
239
- convert.to-rem(8px)
240
- );
238
+ $caret-spacing: $spacing-03;
239
+
240
+ @if $tooltip-type == 'definition' {
241
+ $caret-spacing: $spacing-02;
242
+ }
241
243
 
242
244
  // space between caret and trigger button
243
245
  $caret-height: convert.to-rem(5px);