@carbon/styles 1.52.0 → 1.53.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/README.md +9 -0
- package/css/styles.css +481 -206
- package/css/styles.min.css +1 -1
- package/package.json +15 -12
- package/scss/__tests__/theme-test.js +14 -23
- package/scss/_feature-flags.scss +1 -0
- package/scss/components/chat-button/_chat-button.scss +20 -6
- package/scss/components/checkbox/_checkbox.scss +4 -0
- package/scss/components/code-snippet/_code-snippet.scss +0 -1
- package/scss/components/data-table/_data-table.scss +4 -0
- package/scss/components/fluid-list-box/_fluid-list-box.scss +28 -0
- package/scss/components/fluid-search/_fluid-search.scss +1 -10
- package/scss/components/link/_link.scss +13 -10
- package/scss/components/list-box/_list-box.scss +84 -14
- package/scss/components/modal/_modal.scss +4 -3
- package/scss/components/popover/_popover.scss +12 -0
- package/scss/components/radio-button/_radio-button.scss +4 -0
- package/scss/components/slug/_slug.scss +8 -8
- package/scss/components/tag/_mixins.scss +14 -2
- package/scss/components/tag/_tag.scss +147 -39
- package/scss/components/tag/_tokens.scss +265 -0
- package/scss/components/tile/_tile.scss +17 -6
- package/scss/components/toggletip/_toggletip.scss +4 -0
- package/scss/utilities/_ai-gradient.scss +2 -2
- package/telemetry.yml +7 -0
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.
|
|
4
|
+
"version": "1.53.0",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -19,7 +19,8 @@
|
|
|
19
19
|
"files": [
|
|
20
20
|
"css",
|
|
21
21
|
"scss",
|
|
22
|
-
"index.scss"
|
|
22
|
+
"index.scss",
|
|
23
|
+
"telemetry.yml"
|
|
23
24
|
],
|
|
24
25
|
"publishConfig": {
|
|
25
26
|
"access": "public",
|
|
@@ -27,7 +28,8 @@
|
|
|
27
28
|
},
|
|
28
29
|
"scripts": {
|
|
29
30
|
"build": "yarn clean && node tasks/build-css.js",
|
|
30
|
-
"clean": "rimraf css"
|
|
31
|
+
"clean": "rimraf css",
|
|
32
|
+
"postinstall": "ibmtelemetry --config=telemetry.yml"
|
|
31
33
|
},
|
|
32
34
|
"peerDependencies": {
|
|
33
35
|
"sass": "^1.33.0"
|
|
@@ -38,14 +40,15 @@
|
|
|
38
40
|
}
|
|
39
41
|
},
|
|
40
42
|
"dependencies": {
|
|
41
|
-
"@carbon/colors": "^11.
|
|
42
|
-
"@carbon/feature-flags": "^0.
|
|
43
|
-
"@carbon/grid": "^11.
|
|
44
|
-
"@carbon/layout": "^11.
|
|
45
|
-
"@carbon/motion": "^11.
|
|
46
|
-
"@carbon/themes": "^11.
|
|
47
|
-
"@carbon/type": "^11.
|
|
48
|
-
"@ibm/plex": "6.0.0-next.6"
|
|
43
|
+
"@carbon/colors": "^11.21.0",
|
|
44
|
+
"@carbon/feature-flags": "^0.18.0",
|
|
45
|
+
"@carbon/grid": "^11.22.0",
|
|
46
|
+
"@carbon/layout": "^11.21.0",
|
|
47
|
+
"@carbon/motion": "^11.17.0",
|
|
48
|
+
"@carbon/themes": "^11.33.0",
|
|
49
|
+
"@carbon/type": "^11.26.0",
|
|
50
|
+
"@ibm/plex": "6.0.0-next.6",
|
|
51
|
+
"@ibm/telemetry-js": "^1.2.1"
|
|
49
52
|
},
|
|
50
53
|
"devDependencies": {
|
|
51
54
|
"@carbon/test-utils": "^10.30.0",
|
|
@@ -65,5 +68,5 @@
|
|
|
65
68
|
"scss/**/*.css",
|
|
66
69
|
"css/**/*.css"
|
|
67
70
|
],
|
|
68
|
-
"gitHead": "
|
|
71
|
+
"gitHead": "7920f5261d5867837e0b7e6092c98a6597ac0771"
|
|
69
72
|
}
|
|
@@ -132,25 +132,8 @@ describe('@carbon/styles/scss/theme', () => {
|
|
|
132
132
|
"slug-background-hover",
|
|
133
133
|
"slug-gradient-hover",
|
|
134
134
|
"slug-hollow-hover",
|
|
135
|
-
"
|
|
136
|
-
"
|
|
137
|
-
"slug-callout-aura-start",
|
|
138
|
-
"slug-callout-aura-end",
|
|
139
|
-
"slug-callout-gradient-top-hover",
|
|
140
|
-
"slug-callout-gradient-bottom-hover",
|
|
141
|
-
"slug-callout-aura-start-hover-01",
|
|
142
|
-
"slug-callout-aura-start-hover-02",
|
|
143
|
-
"slug-callout-aura-end-hover-01",
|
|
144
|
-
"slug-callout-aura-end-hover-02",
|
|
145
|
-
"slug-callout-gradient-top-selected",
|
|
146
|
-
"slug-callout-gradient-bottom-selected",
|
|
147
|
-
"slug-callout-aura-start-selected",
|
|
148
|
-
"slug-callout-aura-end-selected",
|
|
149
|
-
"ai-gradient-start-01",
|
|
150
|
-
"ai-gradient-start-02",
|
|
151
|
-
"ai-gradient-end",
|
|
152
|
-
"slug-callout-shadow-outer-01",
|
|
153
|
-
"slug-callout-shadow-outer-02",
|
|
135
|
+
"ai-popover-shadow-outer-01",
|
|
136
|
+
"ai-popover-shadow-outer-02",
|
|
154
137
|
"ai-inner-shadow",
|
|
155
138
|
"ai-aura-start",
|
|
156
139
|
"ai-aura-start-table",
|
|
@@ -165,10 +148,10 @@ describe('@carbon/styles/scss/theme', () => {
|
|
|
165
148
|
"ai-skeleton-background",
|
|
166
149
|
"ai-skeleton-element-background",
|
|
167
150
|
"ai-overlay",
|
|
168
|
-
"
|
|
169
|
-
"
|
|
170
|
-
"
|
|
171
|
-
"
|
|
151
|
+
"ai-popover-caret-center",
|
|
152
|
+
"ai-popover-caret-bottom",
|
|
153
|
+
"ai-popover-caret-bottom-background",
|
|
154
|
+
"ai-popover-caret-bottom-background-actions",
|
|
172
155
|
"chat-prompt-background",
|
|
173
156
|
"chat-prompt-border-start",
|
|
174
157
|
"chat-prompt-border-end",
|
|
@@ -178,6 +161,14 @@ describe('@carbon/styles/scss/theme', () => {
|
|
|
178
161
|
"chat-avatar-bot",
|
|
179
162
|
"chat-avatar-agent",
|
|
180
163
|
"chat-avatar-user",
|
|
164
|
+
"chat-shell-background",
|
|
165
|
+
"chat-header-background",
|
|
166
|
+
"chat-button",
|
|
167
|
+
"chat-button-hover",
|
|
168
|
+
"chat-button-text-hover",
|
|
169
|
+
"chat-button-active",
|
|
170
|
+
"chat-button-selected",
|
|
171
|
+
"chat-button-text-selected",
|
|
181
172
|
"highlight",
|
|
182
173
|
"overlay",
|
|
183
174
|
"toggle-off",
|
package/scss/_feature-flags.scss
CHANGED
|
@@ -31,12 +31,21 @@
|
|
|
31
31
|
// Quick action button
|
|
32
32
|
.#{$prefix}--chat-btn--quick-action {
|
|
33
33
|
align-items: center;
|
|
34
|
-
border: 1px solid $
|
|
34
|
+
border: 1px solid $chat-button;
|
|
35
|
+
background: transparent;
|
|
36
|
+
color: $chat-button;
|
|
35
37
|
}
|
|
36
38
|
|
|
37
39
|
.#{$prefix}--chat-btn--quick-action:hover:not(:active):not([disabled]) {
|
|
38
40
|
border-color: transparent;
|
|
39
|
-
background: $
|
|
41
|
+
background: $chat-button-hover;
|
|
42
|
+
color: $chat-button-text-hover;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.#{$prefix}--chat-btn--quick-action:active {
|
|
46
|
+
border-color: transparent;
|
|
47
|
+
background: $chat-button-active;
|
|
48
|
+
color: $chat-button-text-hover;
|
|
40
49
|
}
|
|
41
50
|
|
|
42
51
|
.#{$prefix}--chat-btn--quick-action.#{$prefix}--btn--ghost:focus {
|
|
@@ -59,12 +68,17 @@
|
|
|
59
68
|
.#{$prefix}--chat-btn--quick-action--selected[disabled],
|
|
60
69
|
.#{$prefix}--chat-btn--quick-action--selected[disabled]:hover {
|
|
61
70
|
border-color: transparent;
|
|
62
|
-
background: $
|
|
63
|
-
color: $text-
|
|
71
|
+
background: $chat-button-selected;
|
|
72
|
+
color: $chat-button-text-selected;
|
|
64
73
|
}
|
|
65
74
|
|
|
66
|
-
.#{$prefix}--chat-btn--quick-action--selected:
|
|
67
|
-
|
|
75
|
+
.#{$prefix}--chat-btn--quick-action.#{$prefix}--chat-btn--quick-action--selected:not(
|
|
76
|
+
[disabled]
|
|
77
|
+
):hover,
|
|
78
|
+
.#{$prefix}--chat-btn--quick-action.#{$prefix}--chat-btn--quick-action--selected:not(
|
|
79
|
+
[disabled]
|
|
80
|
+
):active {
|
|
81
|
+
color: $chat-button-text-selected;
|
|
68
82
|
}
|
|
69
83
|
|
|
70
84
|
.#{$prefix}--chat-btn.#{$prefix}--skeleton {
|
|
@@ -1002,6 +1002,8 @@
|
|
|
1002
1002
|
tr.#{$prefix}--expandable-row--hover.#{$prefix}--data-table--slug-row,
|
|
1003
1003
|
tr.#{$prefix}--data-table--selected.#{$prefix}--parent-row.#{$prefix}--expandable-row--hover.#{$prefix}--data-table--slug-row {
|
|
1004
1004
|
@include ai-table-gradient('hover');
|
|
1005
|
+
|
|
1006
|
+
background-attachment: fixed;
|
|
1005
1007
|
}
|
|
1006
1008
|
|
|
1007
1009
|
tr.#{$prefix}--parent-row.cds--data-table--selected.#{$prefix}--data-table--slug-row,
|
|
@@ -1009,6 +1011,8 @@
|
|
|
1009
1011
|
tr.#{$prefix}--data-table--selected.#{$prefix}--data-table--slug-row
|
|
1010
1012
|
+ .#{$prefix}--expandable-row {
|
|
1011
1013
|
@include ai-table-gradient('selected');
|
|
1014
|
+
|
|
1015
|
+
background-attachment: fixed;
|
|
1012
1016
|
}
|
|
1013
1017
|
|
|
1014
1018
|
tr.#{$prefix}--data-table--slug-row.#{$prefix}--data-table--selected td,
|
|
@@ -330,4 +330,32 @@
|
|
|
330
330
|
.#{$prefix}--text-input:not(.#{$prefix}--text-input--empty) {
|
|
331
331
|
padding-inline-end: $spacing-12;
|
|
332
332
|
}
|
|
333
|
+
|
|
334
|
+
.#{$prefix}--list-box__wrapper--fluid .#{$prefix}--list-box__selection {
|
|
335
|
+
inset-inline-end: convert.to-rem(41px);
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
.#{$prefix}--list-box__wrapper--fluid .#{$prefix}--list-box--warning,
|
|
339
|
+
.#{$prefix}--list-box__wrapper--fluid
|
|
340
|
+
.#{$prefix}--list-box--invalid[data-invalid] {
|
|
341
|
+
.#{$prefix}--list-box__field:has(.#{$prefix}--list-box__menu-icon)
|
|
342
|
+
.#{$prefix}--list-box__selection::before {
|
|
343
|
+
position: absolute;
|
|
344
|
+
background-color: transparent;
|
|
345
|
+
block-size: convert.to-rem(16px);
|
|
346
|
+
content: '';
|
|
347
|
+
inline-size: convert.to-rem(1px);
|
|
348
|
+
margin-inline-end: convert.to-rem(33px);
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
.#{$prefix}--list-box__wrapper--fluid:has(.#{$prefix}--multi-select)
|
|
353
|
+
.#{$prefix}--list-box__menu-icon {
|
|
354
|
+
inset-inline-end: calc($spacing-04);
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
.#{$prefix}--list-box__wrapper--fluid:has(.#{$prefix}--dropdown)
|
|
358
|
+
.#{$prefix}--list-box__menu-icon {
|
|
359
|
+
inset-inline-end: calc($spacing-04);
|
|
360
|
+
}
|
|
333
361
|
}
|
|
@@ -59,6 +59,7 @@
|
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
.#{$prefix}--search--fluid .#{$prefix}--search-magnifier-icon {
|
|
62
|
+
color: $icon-primary;
|
|
62
63
|
inset: auto 1rem convert.to-rem(13px) auto;
|
|
63
64
|
transform: none;
|
|
64
65
|
}
|
|
@@ -71,16 +72,6 @@
|
|
|
71
72
|
transition: background-color $duration-fast-01 motion(standard, productive);
|
|
72
73
|
}
|
|
73
74
|
|
|
74
|
-
.#{$prefix}--search--fluid .#{$prefix}--search-close::before {
|
|
75
|
-
position: absolute;
|
|
76
|
-
display: block;
|
|
77
|
-
background: $border-subtle;
|
|
78
|
-
block-size: 1rem;
|
|
79
|
-
content: '';
|
|
80
|
-
inline-size: convert.to-rem(1px);
|
|
81
|
-
inset: auto convert.to-rem(-1px) convert.to-rem(14px) auto;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
75
|
.#{$prefix}--search--fluid
|
|
85
76
|
.#{$prefix}--search-input:focus
|
|
86
77
|
~ .#{$prefix}--search-close:hover {
|
|
@@ -19,6 +19,10 @@ $link-hover-text-color: custom-property.get-var(
|
|
|
19
19
|
'link-hover-text-color',
|
|
20
20
|
$link-primary-hover
|
|
21
21
|
);
|
|
22
|
+
$link-visited-text-color: custom-property.get-var(
|
|
23
|
+
'link-visited-text-color',
|
|
24
|
+
$link-visited
|
|
25
|
+
);
|
|
22
26
|
$link-focus-text-color: custom-property.get-var(
|
|
23
27
|
'link-focus-text-color',
|
|
24
28
|
$focus
|
|
@@ -46,7 +50,10 @@ $link-focus-text-color: custom-property.get-var(
|
|
|
46
50
|
&:active,
|
|
47
51
|
&:active:visited,
|
|
48
52
|
&:active:visited:hover {
|
|
49
|
-
|
|
53
|
+
@include focus-outline;
|
|
54
|
+
|
|
55
|
+
color: $link-text-color;
|
|
56
|
+
outline-color: $link-focus-text-color;
|
|
50
57
|
text-decoration: underline;
|
|
51
58
|
}
|
|
52
59
|
|
|
@@ -54,14 +61,15 @@ $link-focus-text-color: custom-property.get-var(
|
|
|
54
61
|
@include focus-outline;
|
|
55
62
|
|
|
56
63
|
outline-color: $link-focus-text-color;
|
|
64
|
+
text-decoration: underline;
|
|
57
65
|
}
|
|
58
66
|
|
|
59
67
|
&:visited {
|
|
60
|
-
color: $link-
|
|
68
|
+
color: $link-visited-text-color;
|
|
61
69
|
}
|
|
62
70
|
|
|
63
71
|
&:visited:hover {
|
|
64
|
-
color: $link-
|
|
72
|
+
color: $link-visited-text-color;
|
|
65
73
|
}
|
|
66
74
|
}
|
|
67
75
|
|
|
@@ -77,21 +85,16 @@ $link-focus-text-color: custom-property.get-var(
|
|
|
77
85
|
}
|
|
78
86
|
|
|
79
87
|
.#{$prefix}--link.#{$prefix}--link--visited:visited {
|
|
80
|
-
color: $link-visited;
|
|
88
|
+
color: $link-visited-text-color;
|
|
81
89
|
}
|
|
82
90
|
|
|
83
91
|
.#{$prefix}--link.#{$prefix}--link--visited:visited:hover {
|
|
84
|
-
color: $link-
|
|
92
|
+
color: $link-hover-text-color;
|
|
85
93
|
}
|
|
86
94
|
|
|
87
95
|
.#{$prefix}--link.#{$prefix}--link--inline {
|
|
88
96
|
display: inline;
|
|
89
97
|
text-decoration: underline;
|
|
90
|
-
|
|
91
|
-
&:focus,
|
|
92
|
-
&:visited {
|
|
93
|
-
text-decoration: none;
|
|
94
|
-
}
|
|
95
98
|
}
|
|
96
99
|
|
|
97
100
|
.#{$prefix}--link--disabled.#{$prefix}--link--inline {
|
|
@@ -331,7 +331,7 @@ $list-box-menu-width: convert.to-rem(300px);
|
|
|
331
331
|
|
|
332
332
|
// populated input field
|
|
333
333
|
.#{$prefix}--list-box__field .#{$prefix}--text-input {
|
|
334
|
-
padding-inline-end: convert.to-rem(
|
|
334
|
+
padding-inline-end: convert.to-rem(80px);
|
|
335
335
|
}
|
|
336
336
|
|
|
337
337
|
// invalid && populated input field
|
|
@@ -342,7 +342,7 @@ $list-box-menu-width: convert.to-rem(300px);
|
|
|
342
342
|
.#{$prefix}--list-box__field
|
|
343
343
|
.#{$prefix}--text-input {
|
|
344
344
|
// to account for clear input button outline
|
|
345
|
-
padding-inline-end: convert.to-rem(
|
|
345
|
+
padding-inline-end: convert.to-rem(105px);
|
|
346
346
|
}
|
|
347
347
|
|
|
348
348
|
.#{$prefix}--list-box[data-invalid]
|
|
@@ -354,7 +354,7 @@ $list-box-menu-width: convert.to-rem(300px);
|
|
|
354
354
|
.#{$prefix}--text-input
|
|
355
355
|
+ .#{$prefix}--list-box__invalid-icon {
|
|
356
356
|
// to account for clear input button outline
|
|
357
|
-
inset-inline-end: convert.to-rem(
|
|
357
|
+
inset-inline-end: convert.to-rem(82px);
|
|
358
358
|
}
|
|
359
359
|
|
|
360
360
|
// empty input field
|
|
@@ -434,7 +434,7 @@ $list-box-menu-width: convert.to-rem(300px);
|
|
|
434
434
|
inline-size: convert.to-rem(24px);
|
|
435
435
|
inset-block-start: 50%;
|
|
436
436
|
/* to preserve .5rem space between icons according to spec top/transform used to center the combobox clear selection icon in IE11 */
|
|
437
|
-
inset-inline-end: convert.to-rem(
|
|
437
|
+
inset-inline-end: convert.to-rem(45px);
|
|
438
438
|
transform: translateY(-50%);
|
|
439
439
|
transition: background-color $duration-fast-01 motion(standard, productive);
|
|
440
440
|
user-select: none;
|
|
@@ -893,10 +893,30 @@ $list-box-menu-width: convert.to-rem(300px);
|
|
|
893
893
|
.#{$prefix}--list-box__wrapper--slug .#{$prefix}--slug {
|
|
894
894
|
position: absolute;
|
|
895
895
|
inset-block-start: 50%;
|
|
896
|
-
inset-inline-end: $spacing-08;
|
|
896
|
+
inset-inline-end: calc($spacing-08 + 9px);
|
|
897
|
+
margin-block-start: convert.to-rem(0.5px);
|
|
897
898
|
transform: translateY(-50%);
|
|
898
899
|
}
|
|
899
900
|
|
|
901
|
+
.#{$prefix}--list-box__wrapper--slug .#{$prefix}--slug::after,
|
|
902
|
+
.#{$prefix}--list-box__wrapper--slug .#{$prefix}--slug::before {
|
|
903
|
+
position: absolute;
|
|
904
|
+
background-color: $border-subtle-01;
|
|
905
|
+
block-size: convert.to-rem(16px);
|
|
906
|
+
content: '';
|
|
907
|
+
inline-size: convert.to-rem(1px);
|
|
908
|
+
}
|
|
909
|
+
|
|
910
|
+
.#{$prefix}--list-box__wrapper--slug .#{$prefix}--slug::before {
|
|
911
|
+
display: none;
|
|
912
|
+
inset-inline-start: convert.to-rem(-9px);
|
|
913
|
+
}
|
|
914
|
+
|
|
915
|
+
.#{$prefix}--list-box__wrapper--slug .#{$prefix}--slug::after {
|
|
916
|
+
display: block;
|
|
917
|
+
inset-inline-end: convert.to-rem(-9px);
|
|
918
|
+
}
|
|
919
|
+
|
|
900
920
|
.#{$prefix}--list-box__wrapper--slug
|
|
901
921
|
.#{$prefix}--list-box:not(:has(.#{$prefix}--slug--revert)) {
|
|
902
922
|
@include ai-gradient;
|
|
@@ -939,33 +959,50 @@ $list-box-menu-width: convert.to-rem(300px);
|
|
|
939
959
|
.#{$prefix}--list-box__wrapper--slug
|
|
940
960
|
.#{$prefix}--list-box--warning
|
|
941
961
|
.#{$prefix}--text-input:not(.#{$prefix}--text-input--empty) {
|
|
942
|
-
padding-inline-end: convert.to-rem(
|
|
962
|
+
padding-inline-end: convert.to-rem(141px);
|
|
943
963
|
}
|
|
944
964
|
|
|
945
965
|
.#{$prefix}--list-box__wrapper--slug
|
|
946
|
-
.#{$prefix}--list-box--invalid
|
|
947
|
-
.#{$prefix}--
|
|
966
|
+
.#{$prefix}--list-box--invalid[data-invalid]
|
|
967
|
+
.#{$prefix}--text-input--empty
|
|
968
|
+
+ .#{$prefix}--list-box__invalid-icon,
|
|
969
|
+
.#{$prefix}--list-box__wrapper--slug
|
|
970
|
+
.#{$prefix}--list-box--invalid[data-invalid]
|
|
971
|
+
.#{$prefix}--list-box__invalid-icon,
|
|
972
|
+
.#{$prefix}--list-box__wrapper--slug
|
|
973
|
+
.#{$prefix}--list-box--warning
|
|
974
|
+
.#{$prefix}--list-box__invalid-icon.#{$prefix}--list-box__invalid-icon--warning {
|
|
975
|
+
inset-inline-end: convert.to-rem(83px);
|
|
976
|
+
}
|
|
977
|
+
|
|
978
|
+
.#{$prefix}--list-box__wrapper--slug
|
|
979
|
+
.#{$prefix}--list-box--invalid[data-invalid]
|
|
980
|
+
.#{$prefix}--slug::before,
|
|
948
981
|
.#{$prefix}--list-box__wrapper--slug
|
|
949
982
|
.#{$prefix}--list-box--warning
|
|
950
|
-
.#{$prefix}--slug {
|
|
951
|
-
|
|
983
|
+
.#{$prefix}--slug::before {
|
|
984
|
+
display: block;
|
|
952
985
|
}
|
|
953
986
|
|
|
954
987
|
.#{$prefix}--list-box__wrapper--slug
|
|
988
|
+
.#{$prefix}--list-box__field:has(.#{$prefix}--list-box__selection)
|
|
989
|
+
~ .#{$prefix}--slug,
|
|
990
|
+
.#{$prefix}--list-box__wrapper--slug
|
|
991
|
+
.#{$prefix}--list-box--warning
|
|
955
992
|
.#{$prefix}--list-box__field:has(.#{$prefix}--list-box__selection)
|
|
956
993
|
~ .#{$prefix}--slug {
|
|
957
|
-
inset-inline-end: $spacing-10;
|
|
994
|
+
inset-inline-end: calc($spacing-10 + 18px);
|
|
958
995
|
}
|
|
959
996
|
|
|
960
997
|
.#{$prefix}--list-box__wrapper--slug
|
|
961
998
|
.#{$prefix}--list-box--invalid
|
|
962
999
|
.#{$prefix}--list-box__field:has(.#{$prefix}--list-box__selection)
|
|
963
|
-
|
|
1000
|
+
.#{$prefix}--list-box__invalid-icon,
|
|
964
1001
|
.#{$prefix}--list-box__wrapper--slug
|
|
965
1002
|
.#{$prefix}--list-box--warning
|
|
966
1003
|
.#{$prefix}--list-box__field:has(.#{$prefix}--list-box__selection)
|
|
967
|
-
|
|
968
|
-
inset-inline-end: convert.to-rem(
|
|
1004
|
+
.#{$prefix}--list-box__invalid-icon {
|
|
1005
|
+
inset-inline-end: convert.to-rem(116px);
|
|
969
1006
|
}
|
|
970
1007
|
|
|
971
1008
|
// Windows HCM fix
|
|
@@ -987,4 +1024,37 @@ $list-box-menu-width: convert.to-rem(300px);
|
|
|
987
1024
|
.#{$prefix}--list-box__selection--multi > svg {
|
|
988
1025
|
@include high-contrast-mode('icon-fill');
|
|
989
1026
|
}
|
|
1027
|
+
|
|
1028
|
+
.#{$prefix}--list-box__field:has(.#{$prefix}--list-box__menu-icon)
|
|
1029
|
+
.#{$prefix}--list-box__selection::after {
|
|
1030
|
+
position: absolute;
|
|
1031
|
+
background-color: $border-subtle-01;
|
|
1032
|
+
block-size: convert.to-rem(16px);
|
|
1033
|
+
content: '';
|
|
1034
|
+
inline-size: convert.to-rem(1px);
|
|
1035
|
+
margin-inline-start: convert.to-rem(33px);
|
|
1036
|
+
}
|
|
1037
|
+
|
|
1038
|
+
.#{$prefix}--list-box--warning,
|
|
1039
|
+
.#{$prefix}--list-box--invalid[data-invalid] {
|
|
1040
|
+
.#{$prefix}--list-box__field:has(.#{$prefix}--list-box__menu-icon)
|
|
1041
|
+
.#{$prefix}--list-box__selection::before {
|
|
1042
|
+
position: absolute;
|
|
1043
|
+
background-color: $border-subtle-01;
|
|
1044
|
+
block-size: convert.to-rem(16px);
|
|
1045
|
+
content: '';
|
|
1046
|
+
inline-size: convert.to-rem(1px);
|
|
1047
|
+
margin-inline-end: convert.to-rem(33px);
|
|
1048
|
+
}
|
|
1049
|
+
}
|
|
1050
|
+
|
|
1051
|
+
.#{$prefix}--list-box__wrapper--slug:has(.#{$prefix}--multi-select)
|
|
1052
|
+
.#{$prefix}--list-box__menu-icon {
|
|
1053
|
+
inset-inline-end: calc($spacing-04 - 4px);
|
|
1054
|
+
}
|
|
1055
|
+
|
|
1056
|
+
.#{$prefix}--list-box__wrapper--slug:has(.#{$prefix}--dropdown)
|
|
1057
|
+
.#{$prefix}--list-box__menu-icon {
|
|
1058
|
+
inset-inline-end: calc($spacing-04 - 4px);
|
|
1059
|
+
}
|
|
990
1060
|
}
|
|
@@ -439,7 +439,8 @@
|
|
|
439
439
|
.#{$prefix}--body--with-modal-open .#{$prefix}--modal .#{$prefix}--tooltip,
|
|
440
440
|
.#{$prefix}--body--with-modal-open
|
|
441
441
|
.#{$prefix}--modal
|
|
442
|
-
.#{$prefix}--overflow-menu-options
|
|
442
|
+
.#{$prefix}--overflow-menu-options,
|
|
443
|
+
.#{$prefix}--body--with-modal-open .#{$prefix}--overflow-menu-options {
|
|
443
444
|
z-index: z('modal');
|
|
444
445
|
}
|
|
445
446
|
|
|
@@ -455,7 +456,7 @@
|
|
|
455
456
|
}
|
|
456
457
|
|
|
457
458
|
.#{$prefix}--modal--slug .#{$prefix}--modal-container {
|
|
458
|
-
@include
|
|
459
|
+
@include ai-popover-gradient('default', 0, 'layer');
|
|
459
460
|
|
|
460
461
|
border: 1px solid transparent;
|
|
461
462
|
background-color: $layer;
|
|
@@ -465,7 +466,7 @@
|
|
|
465
466
|
|
|
466
467
|
.#{$prefix}--modal--slug
|
|
467
468
|
.#{$prefix}--modal-container:has(.#{$prefix}--modal-footer) {
|
|
468
|
-
@include
|
|
469
|
+
@include ai-popover-gradient('default', 64px, 'layer');
|
|
469
470
|
|
|
470
471
|
box-shadow: inset 0 -80px 0 -16px $layer,
|
|
471
472
|
inset 0 -160px 70px -65px $ai-inner-shadow, 0 4px 10px 2px $ai-drop-shadow;
|
|
@@ -125,6 +125,18 @@ $popover-caret-height: custom-property.get-var(
|
|
|
125
125
|
|
|
126
126
|
// Popover content
|
|
127
127
|
.#{$prefix}--popover-content {
|
|
128
|
+
// The layout.redefine-tokens is been included here because it is been redifined in _tag.scss
|
|
129
|
+
@include layout.redefine-tokens(
|
|
130
|
+
(
|
|
131
|
+
size: (
|
|
132
|
+
height: (
|
|
133
|
+
sm: convert.to-rem(32px),
|
|
134
|
+
md: convert.to-rem(40px),
|
|
135
|
+
lg: convert.to-rem(48px),
|
|
136
|
+
),
|
|
137
|
+
),
|
|
138
|
+
)
|
|
139
|
+
);
|
|
128
140
|
@include component-reset.reset;
|
|
129
141
|
|
|
130
142
|
position: absolute;
|
|
@@ -327,14 +327,14 @@ $sizes: (
|
|
|
327
327
|
|
|
328
328
|
// Slug callout styles
|
|
329
329
|
.#{$prefix}--slug.#{$prefix}--slug--enabled .#{$prefix}--slug-content {
|
|
330
|
-
@include
|
|
330
|
+
@include ai-popover-gradient();
|
|
331
331
|
|
|
332
332
|
border: 1px solid transparent;
|
|
333
333
|
border-radius: convert.to-rem(8px);
|
|
334
334
|
// Need to make tokens
|
|
335
335
|
box-shadow: inset 0 -80px 70px -65px $ai-inner-shadow,
|
|
336
|
-
-40px 30px 100px -25px $
|
|
337
|
-
-60px 80px 60px -45px $
|
|
336
|
+
-40px 30px 100px -25px $ai-popover-shadow-outer-01,
|
|
337
|
+
-60px 80px 60px -45px $ai-popover-shadow-outer-02;
|
|
338
338
|
color: $text-primary;
|
|
339
339
|
min-inline-size: convert.to-rem(280px);
|
|
340
340
|
}
|
|
@@ -417,7 +417,7 @@ $sizes: (
|
|
|
417
417
|
}
|
|
418
418
|
|
|
419
419
|
&::after {
|
|
420
|
-
background: $
|
|
420
|
+
background: $ai-popover-caret-bottom-background;
|
|
421
421
|
block-size: convert.to-rem(2px);
|
|
422
422
|
border-end-end-radius: 50%;
|
|
423
423
|
border-end-start-radius: 50%;
|
|
@@ -530,8 +530,8 @@ $sizes: (
|
|
|
530
530
|
> .#{$prefix}--popover
|
|
531
531
|
> .#{$prefix}--popover-caret {
|
|
532
532
|
&::before {
|
|
533
|
-
border-color: $
|
|
534
|
-
background: $
|
|
533
|
+
border-color: $ai-popover-caret-bottom;
|
|
534
|
+
background: $ai-popover-caret-bottom-background;
|
|
535
535
|
}
|
|
536
536
|
}
|
|
537
537
|
|
|
@@ -547,7 +547,7 @@ $sizes: (
|
|
|
547
547
|
> .#{$prefix}--popover:has(.#{$prefix}--slug-content--with-actions)
|
|
548
548
|
> .#{$prefix}--popover-caret {
|
|
549
549
|
&::before {
|
|
550
|
-
background: $
|
|
550
|
+
background: $ai-popover-caret-bottom-background-actions;
|
|
551
551
|
}
|
|
552
552
|
}
|
|
553
553
|
|
|
@@ -560,7 +560,7 @@ $sizes: (
|
|
|
560
560
|
> .#{$prefix}--popover
|
|
561
561
|
> .#{$prefix}--popover-caret {
|
|
562
562
|
&::before {
|
|
563
|
-
border-color: $
|
|
563
|
+
border-color: $ai-popover-caret-center;
|
|
564
564
|
}
|
|
565
565
|
}
|
|
566
566
|
|
|
@@ -8,11 +8,23 @@
|
|
|
8
8
|
|
|
9
9
|
/// @access private
|
|
10
10
|
/// @group tag
|
|
11
|
-
@mixin tag-theme(
|
|
11
|
+
@mixin tag-theme(
|
|
12
|
+
$bg-color,
|
|
13
|
+
$text-color,
|
|
14
|
+
$filter-hover-color: $bg-color,
|
|
15
|
+
$border-color: $bg-color
|
|
16
|
+
) {
|
|
12
17
|
background-color: $bg-color;
|
|
13
18
|
color: $text-color;
|
|
14
19
|
|
|
15
|
-
&.#{$prefix}--tag--
|
|
20
|
+
&.#{$prefix}--tag--operational {
|
|
21
|
+
border: 1px solid $border-color;
|
|
22
|
+
|
|
23
|
+
&:hover {
|
|
24
|
+
background-color: $filter-hover-color;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
16
28
|
.#{$prefix}--tag__close-icon {
|
|
17
29
|
&:hover {
|
|
18
30
|
background-color: $filter-hover-color;
|