@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.
- package/css/styles.css +53 -61
- package/css/styles.min.css +1 -1
- package/package.json +8 -8
- package/scss/__tests__/carousel-test.js +92 -0
- package/scss/_carbon-utilities.scss +8 -0
- package/scss/components/notification/_actionable-notification.scss +180 -103
- package/scss/components/notification/_inline-notification.scss +172 -97
- package/scss/components/notification/_toast-notification.scss +129 -66
- package/scss/components/popover/_popover.scss +47 -28
- package/scss/components/tabs/_tabs.scss +9 -4
- package/scss/components/toggletip/_toggletip.scss +2 -2
- package/scss/components/treeview/_treeview.scss +4 -1
- package/scss/utilities/_tooltip.scss +12 -10
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//
|
|
2
|
-
// Copyright IBM Corp. 2018,
|
|
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('
|
|
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}--
|
|
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
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
convert.to-rem(3px)
|
|
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:
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
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);
|