@carbon/styles 1.96.0 → 1.98.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/css/styles.css +764 -347
- package/css/styles.min.css +1 -1
- package/package.json +9 -9
- package/scss/__tests__/theme-test.js +90 -0
- package/scss/components/button/_button.scss +93 -1
- package/scss/components/data-table/_data-table.scss +9 -0
- package/scss/components/file-uploader/_file-uploader.scss +2 -2
- package/scss/components/fluid-list-box/_fluid-list-box.scss +9 -1
- package/scss/components/fluid-text-input/_fluid-text-input.scss +6 -1
- package/scss/components/form/_form.scss +1 -1
- package/scss/components/link/_link.scss +2 -0
- package/scss/components/list-box/_list-box.scss +6 -3
- package/scss/components/multiselect/_multiselect.scss +4 -0
- package/scss/components/pagination/_pagination.scss +9 -0
- package/scss/components/text-input/_text-input.scss +2 -10
- package/scss/utilities/_button-reset.scss +2 -2
- package/scss/utilities/_tooltip.scss +2 -2
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.98.0-rc.0",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -40,13 +40,13 @@
|
|
|
40
40
|
}
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@carbon/colors": "^11.
|
|
43
|
+
"@carbon/colors": "^11.45.0-rc.0",
|
|
44
44
|
"@carbon/feature-flags": ">=0.32.0",
|
|
45
|
-
"@carbon/grid": "^11.
|
|
46
|
-
"@carbon/layout": "^11.
|
|
47
|
-
"@carbon/motion": "^11.
|
|
48
|
-
"@carbon/themes": "^11.
|
|
49
|
-
"@carbon/type": "^11.
|
|
45
|
+
"@carbon/grid": "^11.48.0-rc.0",
|
|
46
|
+
"@carbon/layout": "^11.46.0-rc.0",
|
|
47
|
+
"@carbon/motion": "^11.39.0",
|
|
48
|
+
"@carbon/themes": "^11.66.0-rc.0",
|
|
49
|
+
"@carbon/type": "^11.52.0-rc.0",
|
|
50
50
|
"@ibm/plex": "6.0.0-next.6",
|
|
51
51
|
"@ibm/plex-mono": "1.1.0",
|
|
52
52
|
"@ibm/plex-sans": "1.1.0",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"@ibm/telemetry-js": "^1.5.0"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
|
-
"@carbon/test-utils": "^10.
|
|
62
|
+
"@carbon/test-utils": "^10.39.0-rc.0",
|
|
63
63
|
"autoprefixer": "^10.4.7",
|
|
64
64
|
"browserslist-config-carbon": "^11.2.0",
|
|
65
65
|
"css": "^3.0.0",
|
|
@@ -75,5 +75,5 @@
|
|
|
75
75
|
"scss/**/*.css",
|
|
76
76
|
"css/**/*.css"
|
|
77
77
|
],
|
|
78
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "8263c72357fc43c00e66c9030698f759ef7977ce"
|
|
79
79
|
}
|
|
@@ -131,6 +131,92 @@ describe('@carbon/styles/scss/theme', () => {
|
|
|
131
131
|
"support-caution-major",
|
|
132
132
|
"support-caution-minor",
|
|
133
133
|
"support-caution-undefined",
|
|
134
|
+
"syntax-comment",
|
|
135
|
+
"syntax-line-comment",
|
|
136
|
+
"syntax-block-comment",
|
|
137
|
+
"syntax-doc-comment",
|
|
138
|
+
"syntax-doc-string",
|
|
139
|
+
"syntax-keyword",
|
|
140
|
+
"syntax-operator-keyword",
|
|
141
|
+
"syntax-control-keyword",
|
|
142
|
+
"syntax-definition-keyword",
|
|
143
|
+
"syntax-module-keyword",
|
|
144
|
+
"syntax-variable",
|
|
145
|
+
"syntax-name",
|
|
146
|
+
"syntax-variable-name",
|
|
147
|
+
"syntax-label-name",
|
|
148
|
+
"syntax-attribute",
|
|
149
|
+
"syntax-attribute-name",
|
|
150
|
+
"syntax-property-name",
|
|
151
|
+
"syntax-tag",
|
|
152
|
+
"syntax-tag-name",
|
|
153
|
+
"syntax-type",
|
|
154
|
+
"syntax-type-name",
|
|
155
|
+
"syntax-class-name",
|
|
156
|
+
"syntax-namespace",
|
|
157
|
+
"syntax-macro-name",
|
|
158
|
+
"syntax-atom",
|
|
159
|
+
"syntax-literal",
|
|
160
|
+
"syntax-bool",
|
|
161
|
+
"syntax-null",
|
|
162
|
+
"syntax-self",
|
|
163
|
+
"syntax-number",
|
|
164
|
+
"syntax-integer",
|
|
165
|
+
"syntax-float",
|
|
166
|
+
"syntax-unit",
|
|
167
|
+
"syntax-string",
|
|
168
|
+
"syntax-character",
|
|
169
|
+
"syntax-attribute-value",
|
|
170
|
+
"syntax-special-string",
|
|
171
|
+
"syntax-regexp",
|
|
172
|
+
"syntax-escape",
|
|
173
|
+
"syntax-url",
|
|
174
|
+
"syntax-color",
|
|
175
|
+
"syntax-operator",
|
|
176
|
+
"syntax-deref-operator",
|
|
177
|
+
"syntax-arithmetic-operator",
|
|
178
|
+
"syntax-logic-operator",
|
|
179
|
+
"syntax-bitwise-operator",
|
|
180
|
+
"syntax-compare-operator",
|
|
181
|
+
"syntax-update-operator",
|
|
182
|
+
"syntax-definition-operator",
|
|
183
|
+
"syntax-type-operator",
|
|
184
|
+
"syntax-control-operator",
|
|
185
|
+
"syntax-modifier",
|
|
186
|
+
"syntax-punctuation",
|
|
187
|
+
"syntax-separator",
|
|
188
|
+
"syntax-bracket",
|
|
189
|
+
"syntax-angle-bracket",
|
|
190
|
+
"syntax-square-bracket",
|
|
191
|
+
"syntax-paren",
|
|
192
|
+
"syntax-brace",
|
|
193
|
+
"syntax-content",
|
|
194
|
+
"syntax-heading",
|
|
195
|
+
"syntax-heading-1",
|
|
196
|
+
"syntax-heading-2",
|
|
197
|
+
"syntax-heading-3",
|
|
198
|
+
"syntax-heading-4",
|
|
199
|
+
"syntax-heading-5",
|
|
200
|
+
"syntax-heading-6",
|
|
201
|
+
"syntax-content-separator",
|
|
202
|
+
"syntax-list",
|
|
203
|
+
"syntax-quote",
|
|
204
|
+
"syntax-emphasis",
|
|
205
|
+
"syntax-strong",
|
|
206
|
+
"syntax-monospace",
|
|
207
|
+
"syntax-link",
|
|
208
|
+
"syntax-strikethrough",
|
|
209
|
+
"syntax-invalid",
|
|
210
|
+
"syntax-meta",
|
|
211
|
+
"syntax-document-meta",
|
|
212
|
+
"syntax-annotation",
|
|
213
|
+
"syntax-processing-instruction",
|
|
214
|
+
"syntax-definition",
|
|
215
|
+
"syntax-constant",
|
|
216
|
+
"syntax-function",
|
|
217
|
+
"syntax-standard",
|
|
218
|
+
"syntax-local",
|
|
219
|
+
"syntax-special",
|
|
134
220
|
"ai-popover-background",
|
|
135
221
|
"ai-popover-shadow-outer-01",
|
|
136
222
|
"ai-popover-shadow-outer-02",
|
|
@@ -155,14 +241,18 @@ describe('@carbon/styles/scss/theme', () => {
|
|
|
155
241
|
"chat-prompt-background",
|
|
156
242
|
"chat-prompt-border-start",
|
|
157
243
|
"chat-prompt-border-end",
|
|
244
|
+
"chat-prompt-text",
|
|
158
245
|
"chat-bubble-user",
|
|
246
|
+
"chat-bubble-user-text",
|
|
159
247
|
"chat-bubble-agent",
|
|
248
|
+
"chat-bubble-agent-text",
|
|
160
249
|
"chat-bubble-border",
|
|
161
250
|
"chat-avatar-bot",
|
|
162
251
|
"chat-avatar-agent",
|
|
163
252
|
"chat-avatar-user",
|
|
164
253
|
"chat-shell-background",
|
|
165
254
|
"chat-header-background",
|
|
255
|
+
"chat-header-text",
|
|
166
256
|
"chat-button",
|
|
167
257
|
"chat-button-hover",
|
|
168
258
|
"chat-button-text-hover",
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
//
|
|
2
|
-
// Copyright IBM Corp. 2016,
|
|
2
|
+
// Copyright IBM Corp. 2016, 2024
|
|
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.
|
|
6
6
|
//
|
|
7
7
|
|
|
8
|
+
@use 'sass:math';
|
|
8
9
|
@use 'tokens' as *;
|
|
9
10
|
@use 'vars' as *;
|
|
10
11
|
@use 'mixins' as *;
|
|
@@ -21,6 +22,93 @@
|
|
|
21
22
|
@use '../../utilities/visually-hidden' as *;
|
|
22
23
|
@use '../../utilities/layout';
|
|
23
24
|
|
|
25
|
+
@function has-n-children($n) {
|
|
26
|
+
// Uses nth-child() to select the nth child, and :last-child to ensure that
|
|
27
|
+
// the selector only matches the last child of its parent.
|
|
28
|
+
@return ':has(:nth-child(#{$n}):last-child)';
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@mixin button-set-fluid-column() {
|
|
32
|
+
--flex-direction: column;
|
|
33
|
+
|
|
34
|
+
.#{$prefix}--btn {
|
|
35
|
+
flex: initial;
|
|
36
|
+
inline-size: 100%;
|
|
37
|
+
max-inline-size: none;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.#{$prefix}--btn--ghost {
|
|
41
|
+
padding-inline-start: $spacing-05;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
@mixin button-set-fluid-layout() {
|
|
46
|
+
container-type: inline-size;
|
|
47
|
+
|
|
48
|
+
.#{$prefix}--btn-set__fluid-inner {
|
|
49
|
+
--flex-direction: row;
|
|
50
|
+
|
|
51
|
+
display: flex;
|
|
52
|
+
flex-direction: var(--flex-direction);
|
|
53
|
+
align-items: stretch;
|
|
54
|
+
justify-content: flex-end;
|
|
55
|
+
inline-size: 100%;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
// NOTE: Container queries are based on this value which is based on IBM Products implementation
|
|
59
|
+
// Side panel has up to 3 buttons unstacked from size lg (640px). Min 160.33px/button
|
|
60
|
+
// Narrow Tearsheet 540px has 4 buttons unstacked buttons. Min 135px/button
|
|
61
|
+
// May need to be configurable as 3 * 135px is less than 640px.
|
|
62
|
+
// Current value 176px only supports up to 3 buttons at 540px.
|
|
63
|
+
$min-inline-button-size: convert.to-rem(176px);
|
|
64
|
+
|
|
65
|
+
.#{$prefix}--btn-set__fluid-inner .#{$prefix}--btn {
|
|
66
|
+
// default non-column layout
|
|
67
|
+
flex: 0 1 25%;
|
|
68
|
+
|
|
69
|
+
// This increased size comes from use in IBM Products Tearsheet and SidePanel
|
|
70
|
+
max-inline-size: convert.to-rem(232px);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.#{$prefix}--btn-set__fluid-inner--auto-stack .#{$prefix}--btn {
|
|
74
|
+
min-inline-size: $min-inline-button-size;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.#{$prefix}--btn-set__fluid-inner .#{$prefix}--btn--ghost,
|
|
78
|
+
.#{$prefix}--btn-set__fluid-inner .#{$prefix}--btn--danger--ghost {
|
|
79
|
+
// ghost buttons always grow to fill the container
|
|
80
|
+
flex: 1 1 25%;
|
|
81
|
+
max-inline-size: none;
|
|
82
|
+
padding-inline-start: $spacing-07; /* increased padding when inline */
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
$max-fluid-buttons: 4;
|
|
86
|
+
// this determines whether or not column is used
|
|
87
|
+
@for $i from 1 through $max-fluid-buttons {
|
|
88
|
+
@container (width <= #{$i * $min-inline-button-size}) {
|
|
89
|
+
.#{$prefix}--btn-set__fluid-inner--auto-stack#{has-n-children($i)} {
|
|
90
|
+
@include button-set-fluid-column();
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
@container (width <= #{4 * $min-inline-button-size}) {
|
|
96
|
+
.#{$prefix}--btn-set__fluid-inner#{has-n-children(2)} {
|
|
97
|
+
.#{$prefix}--btn {
|
|
98
|
+
flex-basis: 50%;
|
|
99
|
+
max-inline-size: none;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
@container (width <= #{3 * $min-inline-button-size}) {
|
|
105
|
+
.#{$prefix}--btn-set__fluid-inner#{has-n-children(1)} .#{$prefix}--btn {
|
|
106
|
+
flex: 1 1 100%;
|
|
107
|
+
max-inline-size: none;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
24
112
|
@mixin button {
|
|
25
113
|
.#{$prefix}--btn {
|
|
26
114
|
@include layout.use('size', $min: 'xs', $default: 'lg', $max: '2xl');
|
|
@@ -426,4 +514,8 @@
|
|
|
426
514
|
[dir='rtl'] .#{$prefix}--btn-set .#{$prefix}--btn:not(:focus) {
|
|
427
515
|
box-shadow: convert.to-rem(1px) 0 0 0 $button-separator;
|
|
428
516
|
}
|
|
517
|
+
|
|
518
|
+
.#{$prefix}--btn-set--fluid {
|
|
519
|
+
@include button-set-fluid-layout();
|
|
520
|
+
}
|
|
429
521
|
}
|
|
@@ -91,6 +91,15 @@
|
|
|
91
91
|
padding-inline: $spacing-05;
|
|
92
92
|
}
|
|
93
93
|
|
|
94
|
+
.#{$prefix}--data-table-header.#{$prefix}--data-table-header__with-decorator {
|
|
95
|
+
display: flex;
|
|
96
|
+
justify-content: space-between;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.#{$prefix}--data-table-header.#{$prefix}--data-table-header__with-decorator.#{$prefix}--data-table-header__with-decorator--standalone {
|
|
100
|
+
justify-content: flex-end;
|
|
101
|
+
}
|
|
102
|
+
|
|
94
103
|
.#{$prefix}--data-table-header__title {
|
|
95
104
|
@include type-style('heading-03');
|
|
96
105
|
|
|
@@ -290,7 +290,7 @@
|
|
|
290
290
|
.#{$prefix}--form-requirement__title,
|
|
291
291
|
.#{$prefix}--file__selected-file--invalid
|
|
292
292
|
.#{$prefix}--form-requirement__supplement {
|
|
293
|
-
@include type-style('
|
|
293
|
+
@include type-style('helper-text-01');
|
|
294
294
|
|
|
295
295
|
padding: 0 $spacing-05;
|
|
296
296
|
}
|
|
@@ -307,7 +307,7 @@
|
|
|
307
307
|
|
|
308
308
|
// TODO: deprecate
|
|
309
309
|
.#{$prefix}--file__selected-file--invalid + .#{$prefix}--form-requirement {
|
|
310
|
-
@include type-style('
|
|
310
|
+
@include type-style('helper-text-01');
|
|
311
311
|
|
|
312
312
|
display: block;
|
|
313
313
|
overflow: visible;
|
|
@@ -186,6 +186,14 @@
|
|
|
186
186
|
border-block-end: 1px solid $border-strong;
|
|
187
187
|
}
|
|
188
188
|
|
|
189
|
+
.#{$prefix}--list-box__wrapper--fluid.#{$prefix}--list-box__wrapper--fluid--invalid
|
|
190
|
+
.#{$prefix}--form-requirement:empty,
|
|
191
|
+
.#{$prefix}--list-box__wrapper--fluid
|
|
192
|
+
.#{$prefix}--list-box--warning
|
|
193
|
+
~ .#{$prefix}--form-requirement:empty {
|
|
194
|
+
block-size: convert.to-rem(32px);
|
|
195
|
+
}
|
|
196
|
+
|
|
189
197
|
.#{$prefix}--list-box__wrapper--fluid.#{$prefix}--list-box__wrapper--fluid--invalid
|
|
190
198
|
.#{$prefix}--list-box[data-invalid]
|
|
191
199
|
.#{$prefix}--list-box__invalid-icon,
|
|
@@ -428,7 +436,7 @@
|
|
|
428
436
|
|
|
429
437
|
.#{$prefix}--list-box__wrapper--fluid:has(.#{$prefix}--dropdown)
|
|
430
438
|
.#{$prefix}--list-box__menu-icon {
|
|
431
|
-
inset-inline-end: $spacing-
|
|
439
|
+
inset-inline-end: $spacing-05;
|
|
432
440
|
}
|
|
433
441
|
|
|
434
442
|
// remove ai-label divider when element is invalid and fluid
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//
|
|
2
|
-
// Copyright IBM Corp. 2018,
|
|
2
|
+
// Copyright IBM Corp. 2018, 2025
|
|
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.
|
|
@@ -49,6 +49,11 @@
|
|
|
49
49
|
inset-inline-start: auto;
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
|
+
.#{$prefix}--text-input--fluid.#{$prefix}--text-input-wrapper--readonly
|
|
53
|
+
.#{$prefix}--text-input__field-wrapper
|
|
54
|
+
.#{$prefix}--text-input {
|
|
55
|
+
color: $text-secondary;
|
|
56
|
+
}
|
|
52
57
|
|
|
53
58
|
.#{$prefix}--text-input--fluid .#{$prefix}--label::-webkit-scrollbar,
|
|
54
59
|
.#{$prefix}--text-input--fluid
|
|
@@ -84,10 +84,12 @@ $link-focus-text-color: custom-property.get-var(
|
|
|
84
84
|
text-decoration: none;
|
|
85
85
|
}
|
|
86
86
|
|
|
87
|
+
.#{$prefix}--link.#{$prefix}--link--visited,
|
|
87
88
|
.#{$prefix}--link.#{$prefix}--link--visited:visited {
|
|
88
89
|
color: $link-visited-text-color;
|
|
89
90
|
}
|
|
90
91
|
|
|
92
|
+
.#{$prefix}--link.#{$prefix}--link--visited:hover,
|
|
91
93
|
.#{$prefix}--link.#{$prefix}--link--visited:visited:hover {
|
|
92
94
|
color: $link-hover-text-color;
|
|
93
95
|
}
|
|
@@ -533,6 +533,11 @@ $list-box-menu-width: convert.to-rem(300px);
|
|
|
533
533
|
}
|
|
534
534
|
}
|
|
535
535
|
|
|
536
|
+
// Allow auto-alignment to control inline placement
|
|
537
|
+
.#{$prefix}--autoalign .#{$prefix}--list-box__menu {
|
|
538
|
+
inset-inline: auto;
|
|
539
|
+
}
|
|
540
|
+
|
|
536
541
|
.#{$prefix}--list-box .#{$prefix}--list-box__field[aria-expanded='false'] {
|
|
537
542
|
.#{$prefix}--list-box__menu {
|
|
538
543
|
display: none;
|
|
@@ -885,9 +890,7 @@ $list-box-menu-width: convert.to-rem(300px);
|
|
|
885
890
|
// When handling input, we need to target nodes that specifically opt-in to
|
|
886
891
|
// the type text in order to make sure the text input is styled
|
|
887
892
|
// correctly.
|
|
888
|
-
|
|
889
|
-
.#{$prefix}--list-box input[role='combobox'],
|
|
890
|
-
.#{$prefix}--list-box input[type='text'] {
|
|
893
|
+
.#{$prefix}--list-box .#{$prefix}--text-input {
|
|
891
894
|
background-color: inherit;
|
|
892
895
|
min-inline-size: 0;
|
|
893
896
|
text-overflow: ellipsis;
|
|
@@ -18,6 +18,10 @@
|
|
|
18
18
|
/// @access public
|
|
19
19
|
/// @group multi-select
|
|
20
20
|
@mixin multiselect {
|
|
21
|
+
.#{$prefix}--multi-select {
|
|
22
|
+
box-sizing: border-box;
|
|
23
|
+
}
|
|
24
|
+
|
|
21
25
|
.#{$prefix}--multi-select .#{$prefix}--list-box__field--wrapper {
|
|
22
26
|
display: inline-flex;
|
|
23
27
|
align-items: center;
|
|
@@ -303,4 +303,13 @@
|
|
|
303
303
|
[dir='rtl'] .#{$prefix}--pagination .#{$prefix}--select__arrow {
|
|
304
304
|
transform: translate(0.5rem, -50%);
|
|
305
305
|
}
|
|
306
|
+
// Override for disabled select inputs to maintain layer background color
|
|
307
|
+
.#{$prefix}--pagination
|
|
308
|
+
.#{$prefix}--select--inline
|
|
309
|
+
.#{$prefix}--select-input[disabled],
|
|
310
|
+
.#{$prefix}--pagination
|
|
311
|
+
.#{$prefix}--select--inline
|
|
312
|
+
.#{$prefix}--select-input[disabled]:hover {
|
|
313
|
+
background-color: $layer;
|
|
314
|
+
}
|
|
306
315
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//
|
|
2
|
-
// Copyright IBM Corp. 2016,
|
|
2
|
+
// Copyright IBM Corp. 2016, 2025
|
|
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.
|
|
@@ -152,21 +152,13 @@
|
|
|
152
152
|
|
|
153
153
|
.#{$prefix}--btn.#{$prefix}--text-input--password__visibility__toggle.#{$prefix}--tooltip__trigger
|
|
154
154
|
svg {
|
|
155
|
-
fill: $icon-
|
|
156
|
-
transition: fill $duration-fast-01 motion(standard, productive);
|
|
155
|
+
fill: $icon-primary;
|
|
157
156
|
}
|
|
158
157
|
|
|
159
158
|
.#{$prefix}--btn.#{$prefix}--text-input--password__visibility__toggle.#{$prefix}--tooltip__trigger:focus {
|
|
160
159
|
@include focus-outline('outline');
|
|
161
160
|
}
|
|
162
161
|
|
|
163
|
-
.#{$prefix}--btn.#{$prefix}--text-input--password__visibility__toggle.#{$prefix}--tooltip__trigger:hover
|
|
164
|
-
svg,
|
|
165
|
-
.#{$prefix}--btn.#{$prefix}--text-input--password__visibility__toggle.#{$prefix}--tooltip__trigger:focus
|
|
166
|
-
svg {
|
|
167
|
-
fill: $icon-primary;
|
|
168
|
-
}
|
|
169
|
-
|
|
170
162
|
.#{$prefix}--text-input--invalid,
|
|
171
163
|
.#{$prefix}--text-input--warning {
|
|
172
164
|
padding-inline-end: $spacing-08;
|
|
@@ -12,8 +12,6 @@
|
|
|
12
12
|
/// @example @include button-reset($width: false);
|
|
13
13
|
/// @group utilities
|
|
14
14
|
@mixin reset($width: true) {
|
|
15
|
-
@include component-reset.reset;
|
|
16
|
-
|
|
17
15
|
display: inline-block;
|
|
18
16
|
padding: 0;
|
|
19
17
|
border: 0;
|
|
@@ -26,6 +24,8 @@
|
|
|
26
24
|
inline-size: 100%;
|
|
27
25
|
}
|
|
28
26
|
|
|
27
|
+
@include component-reset.reset;
|
|
28
|
+
|
|
29
29
|
&::-moz-focus-inner {
|
|
30
30
|
border: 0;
|
|
31
31
|
}
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
|
|
38
38
|
z-index: z('floating');
|
|
39
39
|
padding: if(
|
|
40
|
-
$tooltip-type == 'definition',
|
|
40
|
+
sass($tooltip-type == 'definition'),
|
|
41
41
|
convert.to-rem(8px) convert.to-rem(16px),
|
|
42
42
|
convert.to-rem(3px) convert.to-rem(16px)
|
|
43
43
|
);
|
|
@@ -234,7 +234,7 @@
|
|
|
234
234
|
) {
|
|
235
235
|
// position and alignment
|
|
236
236
|
$caret-spacing: if(
|
|
237
|
-
$tooltip-type == 'definition',
|
|
237
|
+
sass($tooltip-type == 'definition'),
|
|
238
238
|
convert.to-rem(4px),
|
|
239
239
|
convert.to-rem(8px)
|
|
240
240
|
);
|