@carbon/styles 1.9.0-rc.0 → 1.11.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 +105 -10
- package/css/styles.min.css +1 -1
- package/index.scss +1 -0
- package/package.json +8 -8
- package/scss/__tests__/__snapshots__/type-test.js.snap +1414 -1331
- package/scss/__tests__/type-test.js +1 -0
- package/scss/_zone.scss +3 -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
|
@@ -2751,6 +2751,8 @@ em {
|
|
|
2751
2751
|
}
|
|
2752
2752
|
|
|
2753
2753
|
.cds--white {
|
|
2754
|
+
background: var(--cds-background);
|
|
2755
|
+
color: var(--cds-text-primary);
|
|
2754
2756
|
--cds-background: #ffffff;
|
|
2755
2757
|
--cds-background-active: rgba(141, 141, 141, 0.5);
|
|
2756
2758
|
--cds-background-brand: #0f62fe;
|
|
@@ -2918,6 +2920,8 @@ em {
|
|
|
2918
2920
|
}
|
|
2919
2921
|
|
|
2920
2922
|
.cds--g10 {
|
|
2923
|
+
background: var(--cds-background);
|
|
2924
|
+
color: var(--cds-text-primary);
|
|
2921
2925
|
--cds-background: #f4f4f4;
|
|
2922
2926
|
--cds-background-active: rgba(141, 141, 141, 0.5);
|
|
2923
2927
|
--cds-background-brand: #0f62fe;
|
|
@@ -3085,6 +3089,8 @@ em {
|
|
|
3085
3089
|
}
|
|
3086
3090
|
|
|
3087
3091
|
.cds--g90 {
|
|
3092
|
+
background: var(--cds-background);
|
|
3093
|
+
color: var(--cds-text-primary);
|
|
3088
3094
|
--cds-background: #262626;
|
|
3089
3095
|
--cds-background-active: rgba(141, 141, 141, 0.4);
|
|
3090
3096
|
--cds-background-brand: #0f62fe;
|
|
@@ -3247,6 +3253,8 @@ em {
|
|
|
3247
3253
|
}
|
|
3248
3254
|
|
|
3249
3255
|
.cds--g100 {
|
|
3256
|
+
background: var(--cds-background);
|
|
3257
|
+
color: var(--cds-text-primary);
|
|
3250
3258
|
--cds-background: #161616;
|
|
3251
3259
|
--cds-background-active: rgba(141, 141, 141, 0.4);
|
|
3252
3260
|
--cds-background-brand: #0f62fe;
|
|
@@ -3454,6 +3462,7 @@ em {
|
|
|
3454
3462
|
appearance: none;
|
|
3455
3463
|
background: none;
|
|
3456
3464
|
cursor: pointer;
|
|
3465
|
+
text-align: start;
|
|
3457
3466
|
width: 100%;
|
|
3458
3467
|
position: relative;
|
|
3459
3468
|
display: -webkit-box;
|
|
@@ -4856,12 +4865,71 @@ li.cds--accordion__item--disabled:last-of-type {
|
|
|
4856
4865
|
margin-bottom: 0;
|
|
4857
4866
|
}
|
|
4858
4867
|
|
|
4859
|
-
.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;
|
|
4860
4902
|
font-size: var(--cds-label-01-font-size, 0.75rem);
|
|
4861
4903
|
font-weight: var(--cds-label-01-font-weight, 400);
|
|
4862
4904
|
line-height: var(--cds-label-01-line-height, 1.33333);
|
|
4863
4905
|
letter-spacing: var(--cds-label-01-letter-spacing, 0.32px);
|
|
4864
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
|
+
}
|
|
4865
4933
|
|
|
4866
4934
|
.cds--label.cds--skeleton {
|
|
4867
4935
|
position: relative;
|
|
@@ -5136,8 +5204,7 @@ fieldset[disabled] .cds--form__helper-text {
|
|
|
5136
5204
|
|
|
5137
5205
|
.cds--checkbox:checked + .cds--checkbox-label::before,
|
|
5138
5206
|
.cds--checkbox:indeterminate + .cds--checkbox-label::before,
|
|
5139
|
-
.cds--checkbox-label[data-contained-checkbox-state=true]::before
|
|
5140
|
-
.cds--checkbox-label[data-contained-checkbox-state=mixed]::before {
|
|
5207
|
+
.cds--checkbox-label[data-contained-checkbox-state=true]::before {
|
|
5141
5208
|
border: none;
|
|
5142
5209
|
border-width: 1px;
|
|
5143
5210
|
background-color: var(--cds-icon-primary, #161616);
|
|
@@ -5149,8 +5216,7 @@ fieldset[disabled] .cds--form__helper-text {
|
|
|
5149
5216
|
transform: scale(1) rotate(-45deg) /*rtl:scale(1.2) rotate3d(.5, 1, 0, 158deg)*/;
|
|
5150
5217
|
}
|
|
5151
5218
|
|
|
5152
|
-
.cds--checkbox:indeterminate + .cds--checkbox-label::after
|
|
5153
|
-
.cds--checkbox-label[data-contained-checkbox-state=mixed]::after {
|
|
5219
|
+
.cds--checkbox:indeterminate + .cds--checkbox-label::after {
|
|
5154
5220
|
top: 0.6875rem;
|
|
5155
5221
|
width: 0.5rem;
|
|
5156
5222
|
border-bottom: 2px solid var(--cds-icon-inverse, #ffffff);
|
|
@@ -5163,8 +5229,7 @@ fieldset[disabled] .cds--form__helper-text {
|
|
|
5163
5229
|
.cds--checkbox-label__focus::before,
|
|
5164
5230
|
.cds--checkbox:checked:focus + .cds--checkbox-label::before,
|
|
5165
5231
|
.cds--checkbox-label[data-contained-checkbox-state=true].cds--checkbox-label__focus::before,
|
|
5166
|
-
.cds--checkbox:indeterminate:focus + .cds--checkbox-label::before
|
|
5167
|
-
.cds--checkbox-label[data-contained-checkbox-state=mixed].cds--checkbox-label__focus::before {
|
|
5232
|
+
.cds--checkbox:indeterminate:focus + .cds--checkbox-label::before {
|
|
5168
5233
|
outline: 2px solid var(--cds-focus, #0f62fe);
|
|
5169
5234
|
outline-offset: 1px;
|
|
5170
5235
|
}
|
|
@@ -5182,8 +5247,7 @@ fieldset[disabled] .cds--form__helper-text {
|
|
|
5182
5247
|
|
|
5183
5248
|
.cds--checkbox:checked:disabled + .cds--checkbox-label::before,
|
|
5184
5249
|
.cds--checkbox:indeterminate:disabled + .cds--checkbox-label::before,
|
|
5185
|
-
.cds--checkbox-label[data-contained-checkbox-state=true][data-contained-checkbox-disabled=true]::before
|
|
5186
|
-
.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 {
|
|
5187
5251
|
background-color: var(--cds-icon-disabled, rgba(22, 22, 22, 0.25));
|
|
5188
5252
|
}
|
|
5189
5253
|
|
|
@@ -7251,6 +7315,7 @@ fieldset[disabled] .cds--form__helper-text {
|
|
|
7251
7315
|
appearance: none;
|
|
7252
7316
|
background: none;
|
|
7253
7317
|
cursor: pointer;
|
|
7318
|
+
text-align: start;
|
|
7254
7319
|
width: 100%;
|
|
7255
7320
|
position: relative;
|
|
7256
7321
|
display: -webkit-inline-box;
|
|
@@ -7353,6 +7418,7 @@ fieldset[disabled] .cds--form__helper-text {
|
|
|
7353
7418
|
appearance: none;
|
|
7354
7419
|
background: none;
|
|
7355
7420
|
cursor: pointer;
|
|
7421
|
+
text-align: start;
|
|
7356
7422
|
position: absolute;
|
|
7357
7423
|
right: 1rem;
|
|
7358
7424
|
display: -webkit-box;
|
|
@@ -7413,6 +7479,7 @@ fieldset[disabled] .cds--form__helper-text {
|
|
|
7413
7479
|
appearance: none;
|
|
7414
7480
|
background: none;
|
|
7415
7481
|
cursor: pointer;
|
|
7482
|
+
text-align: start;
|
|
7416
7483
|
position: absolute;
|
|
7417
7484
|
top: 50%;
|
|
7418
7485
|
/* to preserve .5rem space between icons according to spec top/transform used to center the combobox clear selection icon in IE11 */
|
|
@@ -8112,6 +8179,16 @@ fieldset[disabled] .cds--form__helper-text {
|
|
|
8112
8179
|
letter-spacing: var(--cds-body-compact-01-letter-spacing, 0.16px);
|
|
8113
8180
|
color: var(--cds-text-secondary, #525252);
|
|
8114
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
|
+
}
|
|
8115
8192
|
|
|
8116
8193
|
.cds--data-table {
|
|
8117
8194
|
width: 100%;
|
|
@@ -8964,6 +9041,7 @@ tr.cds--data-table--selected:last-of-type td {
|
|
|
8964
9041
|
appearance: none;
|
|
8965
9042
|
background: none;
|
|
8966
9043
|
cursor: pointer;
|
|
9044
|
+
text-align: start;
|
|
8967
9045
|
width: 100%;
|
|
8968
9046
|
display: -webkit-box;
|
|
8969
9047
|
display: -ms-flexbox;
|
|
@@ -9002,6 +9080,7 @@ tr.cds--data-table--selected:last-of-type td {
|
|
|
9002
9080
|
appearance: none;
|
|
9003
9081
|
background: none;
|
|
9004
9082
|
cursor: pointer;
|
|
9083
|
+
text-align: start;
|
|
9005
9084
|
width: 100%;
|
|
9006
9085
|
display: -webkit-box;
|
|
9007
9086
|
display: -ms-flexbox;
|
|
@@ -9562,6 +9641,7 @@ tr.cds--parent-row.cds--expandable-row.cds--expandable-row--hover td:first-of-ty
|
|
|
9562
9641
|
appearance: none;
|
|
9563
9642
|
background: none;
|
|
9564
9643
|
cursor: pointer;
|
|
9644
|
+
text-align: start;
|
|
9565
9645
|
display: -webkit-inline-box;
|
|
9566
9646
|
display: -ms-inline-flexbox;
|
|
9567
9647
|
display: inline-flex;
|
|
@@ -9901,6 +9981,7 @@ tr.cds--parent-row.cds--data-table--selected.cds--expandable-row--hover + tr[dat
|
|
|
9901
9981
|
appearance: none;
|
|
9902
9982
|
background: none;
|
|
9903
9983
|
cursor: pointer;
|
|
9984
|
+
text-align: start;
|
|
9904
9985
|
display: -webkit-box;
|
|
9905
9986
|
display: -ms-flexbox;
|
|
9906
9987
|
display: flex;
|
|
@@ -12944,7 +13025,7 @@ button.cds--dropdown-text:focus {
|
|
|
12944
13025
|
padding-left: 0;
|
|
12945
13026
|
}
|
|
12946
13027
|
|
|
12947
|
-
.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 {
|
|
12948
13029
|
background-color: var(--cds-field);
|
|
12949
13030
|
}
|
|
12950
13031
|
|
|
@@ -14286,6 +14367,7 @@ button.cds--dropdown-text:focus {
|
|
|
14286
14367
|
appearance: none;
|
|
14287
14368
|
background: none;
|
|
14288
14369
|
cursor: pointer;
|
|
14370
|
+
text-align: start;
|
|
14289
14371
|
width: 100%;
|
|
14290
14372
|
position: relative;
|
|
14291
14373
|
display: -webkit-inline-box;
|
|
@@ -14646,6 +14728,7 @@ button.cds--dropdown-text:focus {
|
|
|
14646
14728
|
appearance: none;
|
|
14647
14729
|
background: none;
|
|
14648
14730
|
cursor: pointer;
|
|
14731
|
+
text-align: start;
|
|
14649
14732
|
width: 100%;
|
|
14650
14733
|
outline: 2px solid transparent;
|
|
14651
14734
|
outline-offset: -2px;
|
|
@@ -15893,6 +15976,7 @@ span.cds--pagination__text.cds--pagination__items-count {
|
|
|
15893
15976
|
appearance: none;
|
|
15894
15977
|
background: none;
|
|
15895
15978
|
cursor: pointer;
|
|
15979
|
+
text-align: start;
|
|
15896
15980
|
position: relative;
|
|
15897
15981
|
display: block;
|
|
15898
15982
|
min-width: 3rem;
|
|
@@ -16544,6 +16628,7 @@ span.cds--pagination__text.cds--pagination__items-count {
|
|
|
16544
16628
|
appearance: none;
|
|
16545
16629
|
background: none;
|
|
16546
16630
|
cursor: pointer;
|
|
16631
|
+
text-align: start;
|
|
16547
16632
|
width: 100%;
|
|
16548
16633
|
border-bottom: 1px dotted var(--cds-border-strong);
|
|
16549
16634
|
border-radius: 0;
|
|
@@ -16785,6 +16870,7 @@ span.cds--pagination__text.cds--pagination__items-count {
|
|
|
16785
16870
|
appearance: none;
|
|
16786
16871
|
background: none;
|
|
16787
16872
|
cursor: pointer;
|
|
16873
|
+
text-align: start;
|
|
16788
16874
|
width: 100%;
|
|
16789
16875
|
display: -webkit-box;
|
|
16790
16876
|
display: -ms-flexbox;
|
|
@@ -17355,6 +17441,7 @@ span.cds--pagination__text.cds--pagination__items-count {
|
|
|
17355
17441
|
appearance: none;
|
|
17356
17442
|
background: none;
|
|
17357
17443
|
cursor: pointer;
|
|
17444
|
+
text-align: start;
|
|
17358
17445
|
outline: 2px solid transparent;
|
|
17359
17446
|
outline-offset: -2px;
|
|
17360
17447
|
position: absolute;
|
|
@@ -18445,6 +18532,7 @@ span.cds--pagination__text.cds--pagination__items-count {
|
|
|
18445
18532
|
appearance: none;
|
|
18446
18533
|
background: none;
|
|
18447
18534
|
cursor: pointer;
|
|
18535
|
+
text-align: start;
|
|
18448
18536
|
width: 100%;
|
|
18449
18537
|
display: -webkit-box;
|
|
18450
18538
|
display: -ms-flexbox;
|
|
@@ -18625,6 +18713,7 @@ span.cds--pagination__text.cds--pagination__items-count {
|
|
|
18625
18713
|
appearance: none;
|
|
18626
18714
|
background: none;
|
|
18627
18715
|
cursor: pointer;
|
|
18716
|
+
text-align: start;
|
|
18628
18717
|
outline: 2px solid transparent;
|
|
18629
18718
|
outline-offset: -2px;
|
|
18630
18719
|
font-size: var(--cds-body-compact-01-font-size, 0.875rem);
|
|
@@ -19234,6 +19323,7 @@ span.cds--pagination__text.cds--pagination__items-count {
|
|
|
19234
19323
|
appearance: none;
|
|
19235
19324
|
background: none;
|
|
19236
19325
|
cursor: pointer;
|
|
19326
|
+
text-align: start;
|
|
19237
19327
|
width: 100%;
|
|
19238
19328
|
position: absolute;
|
|
19239
19329
|
right: 0;
|
|
@@ -19540,6 +19630,7 @@ span.cds--pagination__text.cds--pagination__items-count {
|
|
|
19540
19630
|
appearance: none;
|
|
19541
19631
|
background: none;
|
|
19542
19632
|
cursor: pointer;
|
|
19633
|
+
text-align: start;
|
|
19543
19634
|
width: 100%;
|
|
19544
19635
|
display: -webkit-box;
|
|
19545
19636
|
display: -ms-flexbox;
|
|
@@ -19985,6 +20076,7 @@ span.cds--pagination__text.cds--pagination__items-count {
|
|
|
19985
20076
|
appearance: none;
|
|
19986
20077
|
background: none;
|
|
19987
20078
|
cursor: pointer;
|
|
20079
|
+
text-align: start;
|
|
19988
20080
|
width: 100%;
|
|
19989
20081
|
display: -webkit-inline-box;
|
|
19990
20082
|
display: -ms-inline-flexbox;
|
|
@@ -20550,6 +20642,7 @@ a.cds--header__menu-item.cds--header__menu-item--current:focus {
|
|
|
20550
20642
|
appearance: none;
|
|
20551
20643
|
background: none;
|
|
20552
20644
|
cursor: pointer;
|
|
20645
|
+
text-align: start;
|
|
20553
20646
|
width: 100%;
|
|
20554
20647
|
font-size: var(--cds-heading-compact-01-font-size, 0.875rem);
|
|
20555
20648
|
font-weight: var(--cds-heading-compact-01-font-weight, 600);
|
|
@@ -21016,6 +21109,7 @@ a.cds--side-nav__link--current::before {
|
|
|
21016
21109
|
appearance: none;
|
|
21017
21110
|
background: none;
|
|
21018
21111
|
cursor: pointer;
|
|
21112
|
+
text-align: start;
|
|
21019
21113
|
width: 100%;
|
|
21020
21114
|
display: -webkit-inline-box;
|
|
21021
21115
|
display: -ms-inline-flexbox;
|
|
@@ -21581,6 +21675,7 @@ a.cds--header__menu-item.cds--header__menu-item--current:focus {
|
|
|
21581
21675
|
appearance: none;
|
|
21582
21676
|
background: none;
|
|
21583
21677
|
cursor: pointer;
|
|
21678
|
+
text-align: start;
|
|
21584
21679
|
width: 100%;
|
|
21585
21680
|
font-size: var(--cds-heading-compact-01-font-size, 0.875rem);
|
|
21586
21681
|
font-weight: var(--cds-heading-compact-01-font-weight, 600);
|