@carbon/styles 0.8.0 → 0.10.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 +3 -3
- package/scss/components/button/_button.scss +2 -112
- package/scss/components/button/_tokens.scss +2 -2
- package/scss/components/checkbox/_checkbox.scss +3 -0
- package/scss/components/data-table/_data-table.scss +1 -0
- package/scss/components/form/_form.scss +7 -4
- package/scss/components/number-input/_number-input.scss +3 -3
- package/scss/components/overflow-menu/_overflow-menu.scss +5 -4
- package/scss/components/popover/_popover.scss +241 -199
- package/scss/components/radio-button/_radio-button.scss +11 -9
- package/scss/components/search/_search.scss +7 -7
- package/scss/components/structured-list/_structured-list.scss +3 -3
- package/scss/components/tabs/_tabs.scss +111 -551
- package/scss/components/tile/_tile.scss +4 -3
- package/scss/components/tooltip/_index.scss +1 -0
- package/scss/components/tooltip/_tooltip.scss +38 -725
- package/scss/components/treeview/_treeview.scss +17 -17
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": "0.
|
|
4
|
+
"version": "0.10.0",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"@carbon/grid": "^10.39.0",
|
|
26
26
|
"@carbon/layout": "^10.34.0",
|
|
27
27
|
"@carbon/motion": "^10.26.0",
|
|
28
|
-
"@carbon/themes": "^10.
|
|
28
|
+
"@carbon/themes": "^10.47.0",
|
|
29
29
|
"@carbon/type": "^10.38.0",
|
|
30
30
|
"@ibm/plex": "6.0.0-next.6"
|
|
31
31
|
},
|
|
@@ -33,5 +33,5 @@
|
|
|
33
33
|
"@carbon/test-utils": "^10.20.0",
|
|
34
34
|
"css": "^3.0.0"
|
|
35
35
|
},
|
|
36
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "505af1963e6f78a204212e4f322c247f4eb4f217"
|
|
37
37
|
}
|
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
@use '../../utilities/focus-outline';
|
|
16
16
|
@use '../../utilities/high-contrast-mode' as *;
|
|
17
17
|
@use '../../utilities/skeleton' as *;
|
|
18
|
-
@use '../../utilities/tooltip' as *;
|
|
19
18
|
@use '../../utilities/visually-hidden' as *;
|
|
20
19
|
@use 'tokens' as *;
|
|
21
20
|
|
|
@@ -145,118 +144,9 @@
|
|
|
145
144
|
&.#{$prefix}--btn--md {
|
|
146
145
|
padding: $button-padding-ghost-field;
|
|
147
146
|
}
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
.#{$prefix}--btn.#{$prefix}--btn--icon-only.#{$prefix}--tooltip__trigger {
|
|
151
|
-
@include tooltip--trigger('icon', 'bottom');
|
|
152
|
-
|
|
153
|
-
svg,
|
|
154
|
-
&:hover svg,
|
|
155
|
-
&:focus svg {
|
|
156
|
-
fill: currentColor;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
&.#{$prefix}--btn--disabled.#{$prefix}--tooltip--a11y::before,
|
|
160
|
-
&.#{$prefix}--btn--disabled.#{$prefix}--tooltip--a11y::after,
|
|
161
|
-
&.#{$prefix}--btn--disabled .#{$prefix}--assistive-text {
|
|
162
|
-
overflow: hidden;
|
|
163
|
-
margin: -1px;
|
|
164
|
-
clip: rect(0, 0, 0, 0);
|
|
165
|
-
opacity: 0;
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
// Allow pointer events on tooltip when tooltip is visible
|
|
170
|
-
.#{$prefix}--btn.#{$prefix}--btn--icon-only:not(.#{$prefix}--tooltip--hidden)
|
|
171
|
-
.#{$prefix}--assistive-text {
|
|
172
|
-
pointer-events: all;
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
.#{$prefix}--btn.#{$prefix}--btn--icon-only.#{$prefix}--tooltip__trigger:focus {
|
|
176
|
-
border-color: $focus;
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
.#{$prefix}--btn.#{$prefix}--btn--icon-only.#{$prefix}--tooltip__trigger:active:not([disabled]) {
|
|
180
|
-
border-color: transparent;
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
.#{$prefix}--btn.#{$prefix}--btn--icon-only.#{$prefix}--tooltip__trigger:focus
|
|
184
|
-
svg {
|
|
185
|
-
outline-color: transparent;
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
.#{$prefix}--btn.#{$prefix}--btn--icon-only.#{$prefix}--tooltip__trigger[disabled]:hover,
|
|
189
|
-
.#{$prefix}--btn.#{$prefix}--btn--icon-only.#{$prefix}--tooltip__trigger[disabled]:focus,
|
|
190
|
-
.#{$prefix}--btn.#{$prefix}--btn--icon-only.#{$prefix}--tooltip__trigger[disabled]:active {
|
|
191
|
-
cursor: not-allowed;
|
|
192
|
-
fill: $icon-on-color-disabled;
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
.#{$prefix}--tooltip__trigger.#{$prefix}--btn--icon-only--top {
|
|
196
|
-
@include tooltip--trigger('icon', 'top');
|
|
197
|
-
@include tooltip--placement('icon', 'top', 'center');
|
|
198
|
-
|
|
199
|
-
&.#{$prefix}--tooltip--align-start {
|
|
200
|
-
@include tooltip--placement('icon', 'top', 'start');
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
&.#{$prefix}--tooltip--align-center {
|
|
204
|
-
@include tooltip--placement('icon', 'top', 'center');
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
&.#{$prefix}--tooltip--align-end {
|
|
208
|
-
@include tooltip--placement('icon', 'top', 'end');
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
.#{$prefix}--tooltip__trigger.#{$prefix}--btn--icon-only--right {
|
|
213
|
-
@include tooltip--trigger('icon', 'right');
|
|
214
|
-
@include tooltip--placement('icon', 'right', 'center');
|
|
215
|
-
|
|
216
|
-
&.#{$prefix}--tooltip--align-start {
|
|
217
|
-
@include tooltip--placement('icon', 'right', 'start');
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
&.#{$prefix}--tooltip--align-center {
|
|
221
|
-
@include tooltip--placement('icon', 'right', 'center');
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
&.#{$prefix}--tooltip--align-end {
|
|
225
|
-
@include tooltip--placement('icon', 'right', 'end');
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
.#{$prefix}--tooltip__trigger.#{$prefix}--btn--icon-only--bottom {
|
|
230
|
-
@include tooltip--trigger('icon', 'bottom');
|
|
231
|
-
@include tooltip--placement('icon', 'bottom', 'center');
|
|
232
|
-
|
|
233
|
-
&.#{$prefix}--tooltip--align-start {
|
|
234
|
-
@include tooltip--placement('icon', 'bottom', 'start');
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
&.#{$prefix}--tooltip--align-center {
|
|
238
|
-
@include tooltip--placement('icon', 'bottom', 'center');
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
&.#{$prefix}--tooltip--align-end {
|
|
242
|
-
@include tooltip--placement('icon', 'bottom', 'end');
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
.#{$prefix}--tooltip__trigger.#{$prefix}--btn--icon-only--left {
|
|
247
|
-
@include tooltip--trigger('icon', 'left');
|
|
248
|
-
@include tooltip--placement('icon', 'left', 'center');
|
|
249
|
-
|
|
250
|
-
&.#{$prefix}--tooltip--align-start {
|
|
251
|
-
@include tooltip--placement('icon', 'left', 'start');
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
&.#{$prefix}--tooltip--align-center {
|
|
255
|
-
@include tooltip--placement('icon', 'left', 'center');
|
|
256
|
-
}
|
|
257
147
|
|
|
258
|
-
|
|
259
|
-
|
|
148
|
+
&:not([disabled]) svg {
|
|
149
|
+
fill: $icon-primary;
|
|
260
150
|
}
|
|
261
151
|
}
|
|
262
152
|
|
|
@@ -41,6 +41,9 @@
|
|
|
41
41
|
// to match the specs.
|
|
42
42
|
.#{$prefix}--checkbox {
|
|
43
43
|
@include visually-hidden;
|
|
44
|
+
//even though its hidden, positioning is for native validation to be aligned to checkbox
|
|
45
|
+
top: 1.25rem;
|
|
46
|
+
left: 0.7rem;
|
|
44
47
|
}
|
|
45
48
|
|
|
46
49
|
// The label corresponds to the content inside of the `label` tag. Since we're
|
|
@@ -341,6 +341,7 @@
|
|
|
341
341
|
|
|
342
342
|
.#{$prefix}--data-table thead th.#{$prefix}--table-column-checkbox,
|
|
343
343
|
.#{$prefix}--data-table tbody td.#{$prefix}--table-column-checkbox {
|
|
344
|
+
width: 2.5rem;
|
|
344
345
|
// spacing between checkbox / chevron and next cell should be 8px / 0.5rem
|
|
345
346
|
padding-right: rem(4px);
|
|
346
347
|
padding-left: 1rem;
|
|
@@ -50,16 +50,19 @@ $input-label-weight: 400 !default;
|
|
|
50
50
|
@include type-style('label-01');
|
|
51
51
|
|
|
52
52
|
display: inline-block;
|
|
53
|
-
|
|
54
|
-
margin-bottom: $spacing-03;
|
|
55
|
-
}
|
|
56
|
-
|
|
53
|
+
margin-bottom: $spacing-03;
|
|
57
54
|
color: $text-secondary;
|
|
58
55
|
font-weight: $input-label-weight;
|
|
59
56
|
line-height: 1rem;
|
|
60
57
|
vertical-align: baseline;
|
|
61
58
|
}
|
|
62
59
|
|
|
60
|
+
@if enabled('enable-v11-release') {
|
|
61
|
+
.#{$prefix}--label--no-margin {
|
|
62
|
+
margin-bottom: 0;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
63
66
|
.#{$prefix}--label .#{$prefix}--tooltip__trigger {
|
|
64
67
|
// When tooltip trigger is put in form label the trigger button should fit in the size of label
|
|
65
68
|
// https://github.com/IBM/carbon-components-react/issues/115
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
@use '../../config' as *;
|
|
10
10
|
@use '../../motion' as *;
|
|
11
11
|
@use '../../spacing' as *;
|
|
12
|
-
@use '../../
|
|
12
|
+
@use '../../theme' as *;
|
|
13
13
|
@use '../../type' as *;
|
|
14
14
|
@use '../../utilities/skeleton' as *;
|
|
15
15
|
@use '../../utilities/button-reset';
|
|
@@ -280,7 +280,7 @@
|
|
|
280
280
|
.#{$prefix}--number__invalid
|
|
281
281
|
+ .#{$prefix}--number__controls
|
|
282
282
|
.#{$prefix}--number__rule-divider:first-of-type {
|
|
283
|
-
background-color: $
|
|
283
|
+
background-color: $border-subtle-02;
|
|
284
284
|
}
|
|
285
285
|
|
|
286
286
|
.#{$prefix}--number
|
|
@@ -385,7 +385,7 @@
|
|
|
385
385
|
.#{$prefix}--number--light .#{$prefix}--number__control-btn:hover,
|
|
386
386
|
.#{$prefix}--number--light .#{$prefix}--number__control-btn:hover::before,
|
|
387
387
|
.#{$prefix}--number--light .#{$prefix}--number__control-btn:hover::after {
|
|
388
|
-
background-color: $hover-
|
|
388
|
+
background-color: $layer-hover-02;
|
|
389
389
|
}
|
|
390
390
|
|
|
391
391
|
.#{$prefix}--number--light .#{$prefix}--number__control-btn:focus::before,
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
@use '../../config' as *;
|
|
9
9
|
@use '../../motion' as *;
|
|
10
10
|
@use '../../spacing' as *;
|
|
11
|
-
@use '../../
|
|
11
|
+
@use '../../theme' as *;
|
|
12
12
|
@use '../../type' as *;
|
|
13
13
|
@use '../button/tokens' as button;
|
|
14
14
|
@use '../../utilities/box-shadow' as *;
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
@use '../../utilities/focus-outline' as *;
|
|
17
17
|
@use '../../utilities/high-contrast-mode' as *;
|
|
18
18
|
@use '../../utilities/convert' as *;
|
|
19
|
+
@use '../../utilities/z-index' as *;
|
|
19
20
|
|
|
20
21
|
/// Overflow menu styles
|
|
21
22
|
/// @access public
|
|
@@ -230,7 +231,7 @@
|
|
|
230
231
|
}
|
|
231
232
|
|
|
232
233
|
.#{$prefix}--overflow-menu--light .#{$prefix}--overflow-menu--divider {
|
|
233
|
-
border-top: 1px solid $
|
|
234
|
+
border-top: 1px solid $border-subtle-02;
|
|
234
235
|
}
|
|
235
236
|
|
|
236
237
|
a.#{$prefix}--overflow-menu-options__btn::before {
|
|
@@ -252,7 +253,7 @@
|
|
|
252
253
|
padding: 0 $spacing-05;
|
|
253
254
|
border: none;
|
|
254
255
|
background-color: transparent;
|
|
255
|
-
color: $text-
|
|
256
|
+
color: $text-secondary;
|
|
256
257
|
cursor: pointer;
|
|
257
258
|
font-family: inherit;
|
|
258
259
|
font-weight: 400;
|
|
@@ -262,7 +263,7 @@
|
|
|
262
263
|
color $duration-fast-02 motion(entrance, productive);
|
|
263
264
|
|
|
264
265
|
&:hover {
|
|
265
|
-
color: $text-
|
|
266
|
+
color: $text-primary;
|
|
266
267
|
}
|
|
267
268
|
|
|
268
269
|
&:focus {
|