@carbon/styles 1.8.0 → 1.10.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 +102 -2
- 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/data-table/_data-table.scss +9 -0
- package/scss/components/form/_form.scss +36 -3
- package/scss/components/list-box/_list-box.scss +2 -0
- package/scss/type/_index.scss +1 -0
- package/scss/utilities/_button-reset.scss +1 -0
- package/scss/utilities/_hide-at-breakpoint.scss +44 -0
- package/scss/utilities/_index.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;
|
|
@@ -7110,7 +7178,8 @@ fieldset[disabled] .cds--form__helper-text {
|
|
|
7110
7178
|
border-bottom: 0;
|
|
7111
7179
|
}
|
|
7112
7180
|
|
|
7113
|
-
.cds--list-box[data-invalid].cds--list-box--inline .cds--list-box__field
|
|
7181
|
+
.cds--list-box[data-invalid].cds--list-box--inline .cds--list-box__field,
|
|
7182
|
+
.cds--list-box.cds--list-box--warning.cds--list-box--inline .cds--list-box__field {
|
|
7114
7183
|
padding-right: 3.5rem;
|
|
7115
7184
|
}
|
|
7116
7185
|
|
|
@@ -7250,6 +7319,7 @@ fieldset[disabled] .cds--form__helper-text {
|
|
|
7250
7319
|
appearance: none;
|
|
7251
7320
|
background: none;
|
|
7252
7321
|
cursor: pointer;
|
|
7322
|
+
text-align: start;
|
|
7253
7323
|
width: 100%;
|
|
7254
7324
|
position: relative;
|
|
7255
7325
|
display: -webkit-inline-box;
|
|
@@ -7352,6 +7422,7 @@ fieldset[disabled] .cds--form__helper-text {
|
|
|
7352
7422
|
appearance: none;
|
|
7353
7423
|
background: none;
|
|
7354
7424
|
cursor: pointer;
|
|
7425
|
+
text-align: start;
|
|
7355
7426
|
position: absolute;
|
|
7356
7427
|
right: 1rem;
|
|
7357
7428
|
display: -webkit-box;
|
|
@@ -7412,6 +7483,7 @@ fieldset[disabled] .cds--form__helper-text {
|
|
|
7412
7483
|
appearance: none;
|
|
7413
7484
|
background: none;
|
|
7414
7485
|
cursor: pointer;
|
|
7486
|
+
text-align: start;
|
|
7415
7487
|
position: absolute;
|
|
7416
7488
|
top: 50%;
|
|
7417
7489
|
/* to preserve .5rem space between icons according to spec top/transform used to center the combobox clear selection icon in IE11 */
|
|
@@ -8111,6 +8183,16 @@ fieldset[disabled] .cds--form__helper-text {
|
|
|
8111
8183
|
letter-spacing: var(--cds-body-compact-01-letter-spacing, 0.16px);
|
|
8112
8184
|
color: var(--cds-text-secondary, #525252);
|
|
8113
8185
|
}
|
|
8186
|
+
@media (min-width: 42rem) {
|
|
8187
|
+
.cds--data-table-header__description {
|
|
8188
|
+
max-width: 50ch;
|
|
8189
|
+
}
|
|
8190
|
+
}
|
|
8191
|
+
@media (min-width: 66rem) {
|
|
8192
|
+
.cds--data-table-header__description {
|
|
8193
|
+
max-width: 80ch;
|
|
8194
|
+
}
|
|
8195
|
+
}
|
|
8114
8196
|
|
|
8115
8197
|
.cds--data-table {
|
|
8116
8198
|
width: 100%;
|
|
@@ -8963,6 +9045,7 @@ tr.cds--data-table--selected:last-of-type td {
|
|
|
8963
9045
|
appearance: none;
|
|
8964
9046
|
background: none;
|
|
8965
9047
|
cursor: pointer;
|
|
9048
|
+
text-align: start;
|
|
8966
9049
|
width: 100%;
|
|
8967
9050
|
display: -webkit-box;
|
|
8968
9051
|
display: -ms-flexbox;
|
|
@@ -9001,6 +9084,7 @@ tr.cds--data-table--selected:last-of-type td {
|
|
|
9001
9084
|
appearance: none;
|
|
9002
9085
|
background: none;
|
|
9003
9086
|
cursor: pointer;
|
|
9087
|
+
text-align: start;
|
|
9004
9088
|
width: 100%;
|
|
9005
9089
|
display: -webkit-box;
|
|
9006
9090
|
display: -ms-flexbox;
|
|
@@ -9561,6 +9645,7 @@ tr.cds--parent-row.cds--expandable-row.cds--expandable-row--hover td:first-of-ty
|
|
|
9561
9645
|
appearance: none;
|
|
9562
9646
|
background: none;
|
|
9563
9647
|
cursor: pointer;
|
|
9648
|
+
text-align: start;
|
|
9564
9649
|
display: -webkit-inline-box;
|
|
9565
9650
|
display: -ms-inline-flexbox;
|
|
9566
9651
|
display: inline-flex;
|
|
@@ -9900,6 +9985,7 @@ tr.cds--parent-row.cds--data-table--selected.cds--expandable-row--hover + tr[dat
|
|
|
9900
9985
|
appearance: none;
|
|
9901
9986
|
background: none;
|
|
9902
9987
|
cursor: pointer;
|
|
9988
|
+
text-align: start;
|
|
9903
9989
|
display: -webkit-box;
|
|
9904
9990
|
display: -ms-flexbox;
|
|
9905
9991
|
display: flex;
|
|
@@ -14285,6 +14371,7 @@ button.cds--dropdown-text:focus {
|
|
|
14285
14371
|
appearance: none;
|
|
14286
14372
|
background: none;
|
|
14287
14373
|
cursor: pointer;
|
|
14374
|
+
text-align: start;
|
|
14288
14375
|
width: 100%;
|
|
14289
14376
|
position: relative;
|
|
14290
14377
|
display: -webkit-inline-box;
|
|
@@ -14645,6 +14732,7 @@ button.cds--dropdown-text:focus {
|
|
|
14645
14732
|
appearance: none;
|
|
14646
14733
|
background: none;
|
|
14647
14734
|
cursor: pointer;
|
|
14735
|
+
text-align: start;
|
|
14648
14736
|
width: 100%;
|
|
14649
14737
|
outline: 2px solid transparent;
|
|
14650
14738
|
outline-offset: -2px;
|
|
@@ -15892,6 +15980,7 @@ span.cds--pagination__text.cds--pagination__items-count {
|
|
|
15892
15980
|
appearance: none;
|
|
15893
15981
|
background: none;
|
|
15894
15982
|
cursor: pointer;
|
|
15983
|
+
text-align: start;
|
|
15895
15984
|
position: relative;
|
|
15896
15985
|
display: block;
|
|
15897
15986
|
min-width: 3rem;
|
|
@@ -16543,6 +16632,7 @@ span.cds--pagination__text.cds--pagination__items-count {
|
|
|
16543
16632
|
appearance: none;
|
|
16544
16633
|
background: none;
|
|
16545
16634
|
cursor: pointer;
|
|
16635
|
+
text-align: start;
|
|
16546
16636
|
width: 100%;
|
|
16547
16637
|
border-bottom: 1px dotted var(--cds-border-strong);
|
|
16548
16638
|
border-radius: 0;
|
|
@@ -16784,6 +16874,7 @@ span.cds--pagination__text.cds--pagination__items-count {
|
|
|
16784
16874
|
appearance: none;
|
|
16785
16875
|
background: none;
|
|
16786
16876
|
cursor: pointer;
|
|
16877
|
+
text-align: start;
|
|
16787
16878
|
width: 100%;
|
|
16788
16879
|
display: -webkit-box;
|
|
16789
16880
|
display: -ms-flexbox;
|
|
@@ -17354,6 +17445,7 @@ span.cds--pagination__text.cds--pagination__items-count {
|
|
|
17354
17445
|
appearance: none;
|
|
17355
17446
|
background: none;
|
|
17356
17447
|
cursor: pointer;
|
|
17448
|
+
text-align: start;
|
|
17357
17449
|
outline: 2px solid transparent;
|
|
17358
17450
|
outline-offset: -2px;
|
|
17359
17451
|
position: absolute;
|
|
@@ -18444,6 +18536,7 @@ span.cds--pagination__text.cds--pagination__items-count {
|
|
|
18444
18536
|
appearance: none;
|
|
18445
18537
|
background: none;
|
|
18446
18538
|
cursor: pointer;
|
|
18539
|
+
text-align: start;
|
|
18447
18540
|
width: 100%;
|
|
18448
18541
|
display: -webkit-box;
|
|
18449
18542
|
display: -ms-flexbox;
|
|
@@ -18624,6 +18717,7 @@ span.cds--pagination__text.cds--pagination__items-count {
|
|
|
18624
18717
|
appearance: none;
|
|
18625
18718
|
background: none;
|
|
18626
18719
|
cursor: pointer;
|
|
18720
|
+
text-align: start;
|
|
18627
18721
|
outline: 2px solid transparent;
|
|
18628
18722
|
outline-offset: -2px;
|
|
18629
18723
|
font-size: var(--cds-body-compact-01-font-size, 0.875rem);
|
|
@@ -19233,6 +19327,7 @@ span.cds--pagination__text.cds--pagination__items-count {
|
|
|
19233
19327
|
appearance: none;
|
|
19234
19328
|
background: none;
|
|
19235
19329
|
cursor: pointer;
|
|
19330
|
+
text-align: start;
|
|
19236
19331
|
width: 100%;
|
|
19237
19332
|
position: absolute;
|
|
19238
19333
|
right: 0;
|
|
@@ -19539,6 +19634,7 @@ span.cds--pagination__text.cds--pagination__items-count {
|
|
|
19539
19634
|
appearance: none;
|
|
19540
19635
|
background: none;
|
|
19541
19636
|
cursor: pointer;
|
|
19637
|
+
text-align: start;
|
|
19542
19638
|
width: 100%;
|
|
19543
19639
|
display: -webkit-box;
|
|
19544
19640
|
display: -ms-flexbox;
|
|
@@ -19984,6 +20080,7 @@ span.cds--pagination__text.cds--pagination__items-count {
|
|
|
19984
20080
|
appearance: none;
|
|
19985
20081
|
background: none;
|
|
19986
20082
|
cursor: pointer;
|
|
20083
|
+
text-align: start;
|
|
19987
20084
|
width: 100%;
|
|
19988
20085
|
display: -webkit-inline-box;
|
|
19989
20086
|
display: -ms-inline-flexbox;
|
|
@@ -20549,6 +20646,7 @@ a.cds--header__menu-item.cds--header__menu-item--current:focus {
|
|
|
20549
20646
|
appearance: none;
|
|
20550
20647
|
background: none;
|
|
20551
20648
|
cursor: pointer;
|
|
20649
|
+
text-align: start;
|
|
20552
20650
|
width: 100%;
|
|
20553
20651
|
font-size: var(--cds-heading-compact-01-font-size, 0.875rem);
|
|
20554
20652
|
font-weight: var(--cds-heading-compact-01-font-weight, 600);
|
|
@@ -21015,6 +21113,7 @@ a.cds--side-nav__link--current::before {
|
|
|
21015
21113
|
appearance: none;
|
|
21016
21114
|
background: none;
|
|
21017
21115
|
cursor: pointer;
|
|
21116
|
+
text-align: start;
|
|
21018
21117
|
width: 100%;
|
|
21019
21118
|
display: -webkit-inline-box;
|
|
21020
21119
|
display: -ms-inline-flexbox;
|
|
@@ -21580,6 +21679,7 @@ a.cds--header__menu-item.cds--header__menu-item--current:focus {
|
|
|
21580
21679
|
appearance: none;
|
|
21581
21680
|
background: none;
|
|
21582
21681
|
cursor: pointer;
|
|
21682
|
+
text-align: start;
|
|
21583
21683
|
width: 100%;
|
|
21584
21684
|
font-size: var(--cds-heading-compact-01-font-size, 0.875rem);
|
|
21585
21685
|
font-weight: var(--cds-heading-compact-01-font-weight, 600);
|