@carbon/styles 1.9.0 → 1.11.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 +97 -10
- package/css/styles.min.css +1 -1
- package/index.scss +1 -0
- package/package.json +4 -4
- package/scss/__tests__/__snapshots__/type-test.js.snap +1414 -1331
- package/scss/__tests__/type-test.js +1 -0
- package/scss/components/checkbox/_checkbox.scss +4 -8
- package/scss/components/data-table/_data-table.scss +9 -0
- package/scss/components/form/_form.scss +36 -3
- package/scss/components/multiselect/_multiselect.scss +1 -1
- package/scss/type/_index.scss +1 -0
- package/scss/utilities/_button-reset.scss +1 -0
package/css/styles.css
CHANGED
|
@@ -3462,6 +3462,7 @@ em {
|
|
|
3462
3462
|
appearance: none;
|
|
3463
3463
|
background: none;
|
|
3464
3464
|
cursor: pointer;
|
|
3465
|
+
text-align: start;
|
|
3465
3466
|
width: 100%;
|
|
3466
3467
|
position: relative;
|
|
3467
3468
|
display: -webkit-box;
|
|
@@ -4864,12 +4865,71 @@ li.cds--accordion__item--disabled:last-of-type {
|
|
|
4864
4865
|
margin-bottom: 0;
|
|
4865
4866
|
}
|
|
4866
4867
|
|
|
4867
|
-
.cds--label .cds--
|
|
4868
|
+
.cds--label + .cds--tooltip {
|
|
4869
|
+
position: relative;
|
|
4870
|
+
top: 0.2rem;
|
|
4871
|
+
left: 0.5rem;
|
|
4872
|
+
}
|
|
4873
|
+
|
|
4874
|
+
.cds--label + .cds--tooltip .cds--tooltip__trigger {
|
|
4875
|
+
-webkit-box-sizing: border-box;
|
|
4876
|
+
box-sizing: border-box;
|
|
4877
|
+
padding: 0;
|
|
4878
|
+
border: 0;
|
|
4879
|
+
margin: 0;
|
|
4880
|
+
font-family: inherit;
|
|
4881
|
+
font-size: 100%;
|
|
4882
|
+
vertical-align: baseline;
|
|
4883
|
+
display: inline-block;
|
|
4884
|
+
padding: 0;
|
|
4885
|
+
border: 0;
|
|
4886
|
+
-webkit-appearance: none;
|
|
4887
|
+
-moz-appearance: none;
|
|
4888
|
+
appearance: none;
|
|
4889
|
+
background: none;
|
|
4890
|
+
cursor: pointer;
|
|
4891
|
+
text-align: start;
|
|
4892
|
+
width: 100%;
|
|
4893
|
+
display: -webkit-box;
|
|
4894
|
+
display: -ms-flexbox;
|
|
4895
|
+
display: flex;
|
|
4896
|
+
-webkit-box-align: center;
|
|
4897
|
+
-ms-flex-align: center;
|
|
4898
|
+
align-items: center;
|
|
4899
|
+
-webkit-box-pack: center;
|
|
4900
|
+
-ms-flex-pack: center;
|
|
4901
|
+
justify-content: center;
|
|
4868
4902
|
font-size: var(--cds-label-01-font-size, 0.75rem);
|
|
4869
4903
|
font-weight: var(--cds-label-01-font-weight, 400);
|
|
4870
4904
|
line-height: var(--cds-label-01-line-height, 1.33333);
|
|
4871
4905
|
letter-spacing: var(--cds-label-01-letter-spacing, 0.32px);
|
|
4872
4906
|
}
|
|
4907
|
+
.cds--label + .cds--tooltip .cds--tooltip__trigger *,
|
|
4908
|
+
.cds--label + .cds--tooltip .cds--tooltip__trigger *::before,
|
|
4909
|
+
.cds--label + .cds--tooltip .cds--tooltip__trigger *::after {
|
|
4910
|
+
-webkit-box-sizing: inherit;
|
|
4911
|
+
box-sizing: inherit;
|
|
4912
|
+
}
|
|
4913
|
+
.cds--label + .cds--tooltip .cds--tooltip__trigger::-moz-focus-inner {
|
|
4914
|
+
border: 0;
|
|
4915
|
+
}
|
|
4916
|
+
|
|
4917
|
+
.cds--label + .cds--tooltip .cds--tooltip__trigger:focus {
|
|
4918
|
+
outline: 1px solid var(--cds-focus, #0f62fe);
|
|
4919
|
+
}
|
|
4920
|
+
|
|
4921
|
+
.cds--label + .cds--tooltip .cds--tooltip__trigger svg {
|
|
4922
|
+
fill: var(--cds-icon-secondary, #525252);
|
|
4923
|
+
}
|
|
4924
|
+
|
|
4925
|
+
.cds--label + .cds--tooltip .cds--tooltip__trigger svg :hover {
|
|
4926
|
+
fill: var(--cds-icon-primary, #161616);
|
|
4927
|
+
}
|
|
4928
|
+
|
|
4929
|
+
.cds--label + .cds--toggletip {
|
|
4930
|
+
top: 0.2rem;
|
|
4931
|
+
left: 0.5rem;
|
|
4932
|
+
}
|
|
4873
4933
|
|
|
4874
4934
|
.cds--label.cds--skeleton {
|
|
4875
4935
|
position: relative;
|
|
@@ -5144,8 +5204,7 @@ fieldset[disabled] .cds--form__helper-text {
|
|
|
5144
5204
|
|
|
5145
5205
|
.cds--checkbox:checked + .cds--checkbox-label::before,
|
|
5146
5206
|
.cds--checkbox:indeterminate + .cds--checkbox-label::before,
|
|
5147
|
-
.cds--checkbox-label[data-contained-checkbox-state=true]::before
|
|
5148
|
-
.cds--checkbox-label[data-contained-checkbox-state=mixed]::before {
|
|
5207
|
+
.cds--checkbox-label[data-contained-checkbox-state=true]::before {
|
|
5149
5208
|
border: none;
|
|
5150
5209
|
border-width: 1px;
|
|
5151
5210
|
background-color: var(--cds-icon-primary, #161616);
|
|
@@ -5157,8 +5216,7 @@ fieldset[disabled] .cds--form__helper-text {
|
|
|
5157
5216
|
transform: scale(1) rotate(-45deg) /*rtl:scale(1.2) rotate3d(.5, 1, 0, 158deg)*/;
|
|
5158
5217
|
}
|
|
5159
5218
|
|
|
5160
|
-
.cds--checkbox:indeterminate + .cds--checkbox-label::after
|
|
5161
|
-
.cds--checkbox-label[data-contained-checkbox-state=mixed]::after {
|
|
5219
|
+
.cds--checkbox:indeterminate + .cds--checkbox-label::after {
|
|
5162
5220
|
top: 0.6875rem;
|
|
5163
5221
|
width: 0.5rem;
|
|
5164
5222
|
border-bottom: 2px solid var(--cds-icon-inverse, #ffffff);
|
|
@@ -5171,8 +5229,7 @@ fieldset[disabled] .cds--form__helper-text {
|
|
|
5171
5229
|
.cds--checkbox-label__focus::before,
|
|
5172
5230
|
.cds--checkbox:checked:focus + .cds--checkbox-label::before,
|
|
5173
5231
|
.cds--checkbox-label[data-contained-checkbox-state=true].cds--checkbox-label__focus::before,
|
|
5174
|
-
.cds--checkbox:indeterminate:focus + .cds--checkbox-label::before
|
|
5175
|
-
.cds--checkbox-label[data-contained-checkbox-state=mixed].cds--checkbox-label__focus::before {
|
|
5232
|
+
.cds--checkbox:indeterminate:focus + .cds--checkbox-label::before {
|
|
5176
5233
|
outline: 2px solid var(--cds-focus, #0f62fe);
|
|
5177
5234
|
outline-offset: 1px;
|
|
5178
5235
|
}
|
|
@@ -5190,8 +5247,7 @@ fieldset[disabled] .cds--form__helper-text {
|
|
|
5190
5247
|
|
|
5191
5248
|
.cds--checkbox:checked:disabled + .cds--checkbox-label::before,
|
|
5192
5249
|
.cds--checkbox:indeterminate:disabled + .cds--checkbox-label::before,
|
|
5193
|
-
.cds--checkbox-label[data-contained-checkbox-state=true][data-contained-checkbox-disabled=true]::before
|
|
5194
|
-
.cds--checkbox-label[data-contained-checkbox-state=mixed][data-contained-checkbox-disabled=true]::before {
|
|
5250
|
+
.cds--checkbox-label[data-contained-checkbox-state=true][data-contained-checkbox-disabled=true]::before {
|
|
5195
5251
|
background-color: var(--cds-icon-disabled, rgba(22, 22, 22, 0.25));
|
|
5196
5252
|
}
|
|
5197
5253
|
|
|
@@ -7259,6 +7315,7 @@ fieldset[disabled] .cds--form__helper-text {
|
|
|
7259
7315
|
appearance: none;
|
|
7260
7316
|
background: none;
|
|
7261
7317
|
cursor: pointer;
|
|
7318
|
+
text-align: start;
|
|
7262
7319
|
width: 100%;
|
|
7263
7320
|
position: relative;
|
|
7264
7321
|
display: -webkit-inline-box;
|
|
@@ -7361,6 +7418,7 @@ fieldset[disabled] .cds--form__helper-text {
|
|
|
7361
7418
|
appearance: none;
|
|
7362
7419
|
background: none;
|
|
7363
7420
|
cursor: pointer;
|
|
7421
|
+
text-align: start;
|
|
7364
7422
|
position: absolute;
|
|
7365
7423
|
right: 1rem;
|
|
7366
7424
|
display: -webkit-box;
|
|
@@ -7421,6 +7479,7 @@ fieldset[disabled] .cds--form__helper-text {
|
|
|
7421
7479
|
appearance: none;
|
|
7422
7480
|
background: none;
|
|
7423
7481
|
cursor: pointer;
|
|
7482
|
+
text-align: start;
|
|
7424
7483
|
position: absolute;
|
|
7425
7484
|
top: 50%;
|
|
7426
7485
|
/* to preserve .5rem space between icons according to spec top/transform used to center the combobox clear selection icon in IE11 */
|
|
@@ -8120,6 +8179,16 @@ fieldset[disabled] .cds--form__helper-text {
|
|
|
8120
8179
|
letter-spacing: var(--cds-body-compact-01-letter-spacing, 0.16px);
|
|
8121
8180
|
color: var(--cds-text-secondary, #525252);
|
|
8122
8181
|
}
|
|
8182
|
+
@media (min-width: 42rem) {
|
|
8183
|
+
.cds--data-table-header__description {
|
|
8184
|
+
max-width: 50ch;
|
|
8185
|
+
}
|
|
8186
|
+
}
|
|
8187
|
+
@media (min-width: 66rem) {
|
|
8188
|
+
.cds--data-table-header__description {
|
|
8189
|
+
max-width: 80ch;
|
|
8190
|
+
}
|
|
8191
|
+
}
|
|
8123
8192
|
|
|
8124
8193
|
.cds--data-table {
|
|
8125
8194
|
width: 100%;
|
|
@@ -8972,6 +9041,7 @@ tr.cds--data-table--selected:last-of-type td {
|
|
|
8972
9041
|
appearance: none;
|
|
8973
9042
|
background: none;
|
|
8974
9043
|
cursor: pointer;
|
|
9044
|
+
text-align: start;
|
|
8975
9045
|
width: 100%;
|
|
8976
9046
|
display: -webkit-box;
|
|
8977
9047
|
display: -ms-flexbox;
|
|
@@ -9010,6 +9080,7 @@ tr.cds--data-table--selected:last-of-type td {
|
|
|
9010
9080
|
appearance: none;
|
|
9011
9081
|
background: none;
|
|
9012
9082
|
cursor: pointer;
|
|
9083
|
+
text-align: start;
|
|
9013
9084
|
width: 100%;
|
|
9014
9085
|
display: -webkit-box;
|
|
9015
9086
|
display: -ms-flexbox;
|
|
@@ -9570,6 +9641,7 @@ tr.cds--parent-row.cds--expandable-row.cds--expandable-row--hover td:first-of-ty
|
|
|
9570
9641
|
appearance: none;
|
|
9571
9642
|
background: none;
|
|
9572
9643
|
cursor: pointer;
|
|
9644
|
+
text-align: start;
|
|
9573
9645
|
display: -webkit-inline-box;
|
|
9574
9646
|
display: -ms-inline-flexbox;
|
|
9575
9647
|
display: inline-flex;
|
|
@@ -9909,6 +9981,7 @@ tr.cds--parent-row.cds--data-table--selected.cds--expandable-row--hover + tr[dat
|
|
|
9909
9981
|
appearance: none;
|
|
9910
9982
|
background: none;
|
|
9911
9983
|
cursor: pointer;
|
|
9984
|
+
text-align: start;
|
|
9912
9985
|
display: -webkit-box;
|
|
9913
9986
|
display: -ms-flexbox;
|
|
9914
9987
|
display: flex;
|
|
@@ -12952,7 +13025,7 @@ button.cds--dropdown-text:focus {
|
|
|
12952
13025
|
padding-left: 0;
|
|
12953
13026
|
}
|
|
12954
13027
|
|
|
12955
|
-
.cds--multi-select--filterable.cds--list-box--disabled:hover .cds--text-input {
|
|
13028
|
+
.cds--multi-select--filterable.cds--list-box--disabled:hover:not(.cds--multi-select--filterable) .cds--text-input {
|
|
12956
13029
|
background-color: var(--cds-field);
|
|
12957
13030
|
}
|
|
12958
13031
|
|
|
@@ -14294,6 +14367,7 @@ button.cds--dropdown-text:focus {
|
|
|
14294
14367
|
appearance: none;
|
|
14295
14368
|
background: none;
|
|
14296
14369
|
cursor: pointer;
|
|
14370
|
+
text-align: start;
|
|
14297
14371
|
width: 100%;
|
|
14298
14372
|
position: relative;
|
|
14299
14373
|
display: -webkit-inline-box;
|
|
@@ -14654,6 +14728,7 @@ button.cds--dropdown-text:focus {
|
|
|
14654
14728
|
appearance: none;
|
|
14655
14729
|
background: none;
|
|
14656
14730
|
cursor: pointer;
|
|
14731
|
+
text-align: start;
|
|
14657
14732
|
width: 100%;
|
|
14658
14733
|
outline: 2px solid transparent;
|
|
14659
14734
|
outline-offset: -2px;
|
|
@@ -15901,6 +15976,7 @@ span.cds--pagination__text.cds--pagination__items-count {
|
|
|
15901
15976
|
appearance: none;
|
|
15902
15977
|
background: none;
|
|
15903
15978
|
cursor: pointer;
|
|
15979
|
+
text-align: start;
|
|
15904
15980
|
position: relative;
|
|
15905
15981
|
display: block;
|
|
15906
15982
|
min-width: 3rem;
|
|
@@ -16552,6 +16628,7 @@ span.cds--pagination__text.cds--pagination__items-count {
|
|
|
16552
16628
|
appearance: none;
|
|
16553
16629
|
background: none;
|
|
16554
16630
|
cursor: pointer;
|
|
16631
|
+
text-align: start;
|
|
16555
16632
|
width: 100%;
|
|
16556
16633
|
border-bottom: 1px dotted var(--cds-border-strong);
|
|
16557
16634
|
border-radius: 0;
|
|
@@ -16793,6 +16870,7 @@ span.cds--pagination__text.cds--pagination__items-count {
|
|
|
16793
16870
|
appearance: none;
|
|
16794
16871
|
background: none;
|
|
16795
16872
|
cursor: pointer;
|
|
16873
|
+
text-align: start;
|
|
16796
16874
|
width: 100%;
|
|
16797
16875
|
display: -webkit-box;
|
|
16798
16876
|
display: -ms-flexbox;
|
|
@@ -17363,6 +17441,7 @@ span.cds--pagination__text.cds--pagination__items-count {
|
|
|
17363
17441
|
appearance: none;
|
|
17364
17442
|
background: none;
|
|
17365
17443
|
cursor: pointer;
|
|
17444
|
+
text-align: start;
|
|
17366
17445
|
outline: 2px solid transparent;
|
|
17367
17446
|
outline-offset: -2px;
|
|
17368
17447
|
position: absolute;
|
|
@@ -18453,6 +18532,7 @@ span.cds--pagination__text.cds--pagination__items-count {
|
|
|
18453
18532
|
appearance: none;
|
|
18454
18533
|
background: none;
|
|
18455
18534
|
cursor: pointer;
|
|
18535
|
+
text-align: start;
|
|
18456
18536
|
width: 100%;
|
|
18457
18537
|
display: -webkit-box;
|
|
18458
18538
|
display: -ms-flexbox;
|
|
@@ -18633,6 +18713,7 @@ span.cds--pagination__text.cds--pagination__items-count {
|
|
|
18633
18713
|
appearance: none;
|
|
18634
18714
|
background: none;
|
|
18635
18715
|
cursor: pointer;
|
|
18716
|
+
text-align: start;
|
|
18636
18717
|
outline: 2px solid transparent;
|
|
18637
18718
|
outline-offset: -2px;
|
|
18638
18719
|
font-size: var(--cds-body-compact-01-font-size, 0.875rem);
|
|
@@ -19242,6 +19323,7 @@ span.cds--pagination__text.cds--pagination__items-count {
|
|
|
19242
19323
|
appearance: none;
|
|
19243
19324
|
background: none;
|
|
19244
19325
|
cursor: pointer;
|
|
19326
|
+
text-align: start;
|
|
19245
19327
|
width: 100%;
|
|
19246
19328
|
position: absolute;
|
|
19247
19329
|
right: 0;
|
|
@@ -19548,6 +19630,7 @@ span.cds--pagination__text.cds--pagination__items-count {
|
|
|
19548
19630
|
appearance: none;
|
|
19549
19631
|
background: none;
|
|
19550
19632
|
cursor: pointer;
|
|
19633
|
+
text-align: start;
|
|
19551
19634
|
width: 100%;
|
|
19552
19635
|
display: -webkit-box;
|
|
19553
19636
|
display: -ms-flexbox;
|
|
@@ -19993,6 +20076,7 @@ span.cds--pagination__text.cds--pagination__items-count {
|
|
|
19993
20076
|
appearance: none;
|
|
19994
20077
|
background: none;
|
|
19995
20078
|
cursor: pointer;
|
|
20079
|
+
text-align: start;
|
|
19996
20080
|
width: 100%;
|
|
19997
20081
|
display: -webkit-inline-box;
|
|
19998
20082
|
display: -ms-inline-flexbox;
|
|
@@ -20558,6 +20642,7 @@ a.cds--header__menu-item.cds--header__menu-item--current:focus {
|
|
|
20558
20642
|
appearance: none;
|
|
20559
20643
|
background: none;
|
|
20560
20644
|
cursor: pointer;
|
|
20645
|
+
text-align: start;
|
|
20561
20646
|
width: 100%;
|
|
20562
20647
|
font-size: var(--cds-heading-compact-01-font-size, 0.875rem);
|
|
20563
20648
|
font-weight: var(--cds-heading-compact-01-font-weight, 600);
|
|
@@ -21024,6 +21109,7 @@ a.cds--side-nav__link--current::before {
|
|
|
21024
21109
|
appearance: none;
|
|
21025
21110
|
background: none;
|
|
21026
21111
|
cursor: pointer;
|
|
21112
|
+
text-align: start;
|
|
21027
21113
|
width: 100%;
|
|
21028
21114
|
display: -webkit-inline-box;
|
|
21029
21115
|
display: -ms-inline-flexbox;
|
|
@@ -21589,6 +21675,7 @@ a.cds--header__menu-item.cds--header__menu-item--current:focus {
|
|
|
21589
21675
|
appearance: none;
|
|
21590
21676
|
background: none;
|
|
21591
21677
|
cursor: pointer;
|
|
21678
|
+
text-align: start;
|
|
21592
21679
|
width: 100%;
|
|
21593
21680
|
font-size: var(--cds-heading-compact-01-font-size, 0.875rem);
|
|
21594
21681
|
font-weight: var(--cds-heading-compact-01-font-weight, 600);
|