@carbon/styles 1.12.0-rc.1 → 1.13.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 +146 -18
- package/css/styles.min.css +1 -1
- package/package.json +10 -10
- package/scss/__tests__/__snapshots__/type-test.js.snap +1448 -1365
- package/scss/__tests__/type-test.js +1 -0
- package/scss/components/_index.scss +1 -0
- package/scss/components/fluid-text-input/_fluid-text-input.scss +125 -0
- package/scss/components/fluid-text-input/_index.scss +11 -0
- package/scss/components/form/_form.scss +2 -1
- package/scss/components/notification/_tokens.scss +8 -8
- package/scss/components/popover/_popover.scss +2 -2
- package/scss/components/text-input/_text-input.scss +27 -11
- package/scss/components/toggle/_toggle.scss +2 -2
- package/scss/type/_index.scss +1 -0
package/css/styles.css
CHANGED
|
@@ -170,7 +170,7 @@ strong {
|
|
|
170
170
|
}
|
|
171
171
|
}
|
|
172
172
|
h1 {
|
|
173
|
-
font-size: var(--cds-heading-06-font-size,
|
|
173
|
+
font-size: var(--cds-heading-06-font-size, 2.625rem);
|
|
174
174
|
font-weight: var(--cds-heading-06-font-weight, 300);
|
|
175
175
|
line-height: var(--cds-heading-06-line-height, 1.199);
|
|
176
176
|
letter-spacing: var(--cds-heading-06-letter-spacing, 0);
|
|
@@ -3215,6 +3215,10 @@ em {
|
|
|
3215
3215
|
--cds-button-secondary-hover: #5e5e5e;
|
|
3216
3216
|
--cds-button-tertiary-hover: #f4f4f4;
|
|
3217
3217
|
--cds-button-disabled: rgba(141, 141, 141, 0.3);
|
|
3218
|
+
--cds-notification-background-error: #393939;
|
|
3219
|
+
--cds-notification-background-success: #393939;
|
|
3220
|
+
--cds-notification-background-info: #393939;
|
|
3221
|
+
--cds-notification-background-warning: #393939;
|
|
3218
3222
|
--cds-notification-action-tertiary-inverse: #0f62fe;
|
|
3219
3223
|
--cds-notification-action-tertiary-inverse-active: #002d9c;
|
|
3220
3224
|
--cds-notification-action-tertiary-inverse-hover: #0050e6;
|
|
@@ -3379,6 +3383,10 @@ em {
|
|
|
3379
3383
|
--cds-button-secondary-hover: #5e5e5e;
|
|
3380
3384
|
--cds-button-tertiary-hover: #f4f4f4;
|
|
3381
3385
|
--cds-button-disabled: rgba(141, 141, 141, 0.3);
|
|
3386
|
+
--cds-notification-background-error: #262626;
|
|
3387
|
+
--cds-notification-background-success: #262626;
|
|
3388
|
+
--cds-notification-background-info: #262626;
|
|
3389
|
+
--cds-notification-background-warning: #262626;
|
|
3382
3390
|
--cds-notification-action-tertiary-inverse: #0f62fe;
|
|
3383
3391
|
--cds-notification-action-tertiary-inverse-active: #002d9c;
|
|
3384
3392
|
--cds-notification-action-tertiary-inverse-hover: #0050e6;
|
|
@@ -4974,7 +4982,7 @@ input[data-invalid]:not(:focus),
|
|
|
4974
4982
|
.cds--text-area__wrapper[data-invalid] > .cds--text-area--invalid:not(:focus),
|
|
4975
4983
|
.cds--select-input__wrapper[data-invalid] .cds--select-input:not(:focus),
|
|
4976
4984
|
.cds--list-box[data-invalid]:not(:focus),
|
|
4977
|
-
.cds--combo-box[data-invalid] .cds--text-input:not(:focus) {
|
|
4985
|
+
.cds--combo-box[data-invalid]:not(.cds--multi-select--selected) .cds--text-input:not(:focus) {
|
|
4978
4986
|
outline: 2px solid var(--cds-support-error, #da1e28);
|
|
4979
4987
|
outline-offset: -2px;
|
|
4980
4988
|
}
|
|
@@ -4985,7 +4993,7 @@ input[data-invalid]:not(:focus),
|
|
|
4985
4993
|
.cds--text-area__wrapper[data-invalid] > .cds--text-area--invalid:not(:focus),
|
|
4986
4994
|
.cds--select-input__wrapper[data-invalid] .cds--select-input:not(:focus),
|
|
4987
4995
|
.cds--list-box[data-invalid]:not(:focus),
|
|
4988
|
-
.cds--combo-box[data-invalid] .cds--text-input:not(:focus) {
|
|
4996
|
+
.cds--combo-box[data-invalid]:not(.cds--multi-select--selected) .cds--text-input:not(:focus) {
|
|
4989
4997
|
outline-style: dotted;
|
|
4990
4998
|
}
|
|
4991
4999
|
}
|
|
@@ -6596,6 +6604,13 @@ fieldset[disabled] .cds--form__helper-text {
|
|
|
6596
6604
|
z-index: 1;
|
|
6597
6605
|
top: 0.8125rem;
|
|
6598
6606
|
left: 1rem;
|
|
6607
|
+
display: -webkit-box;
|
|
6608
|
+
display: -ms-flexbox;
|
|
6609
|
+
display: flex;
|
|
6610
|
+
height: 1rem;
|
|
6611
|
+
-webkit-box-align: center;
|
|
6612
|
+
-ms-flex-align: center;
|
|
6613
|
+
align-items: center;
|
|
6599
6614
|
margin: 0;
|
|
6600
6615
|
}
|
|
6601
6616
|
|
|
@@ -6614,12 +6629,12 @@ fieldset[disabled] .cds--form__helper-text {
|
|
|
6614
6629
|
}
|
|
6615
6630
|
|
|
6616
6631
|
.cds--form--fluid .cds--text-input--invalid,
|
|
6617
|
-
.cds--form--fluid .cds--text-input--
|
|
6632
|
+
.cds--form--fluid .cds--text-input--warning {
|
|
6618
6633
|
border-bottom: none;
|
|
6619
6634
|
}
|
|
6620
6635
|
|
|
6621
6636
|
.cds--form--fluid .cds--text-input--invalid + .cds--text-input__divider,
|
|
6622
|
-
.cds--form--fluid .cds--text-input--
|
|
6637
|
+
.cds--form--fluid .cds--text-input--warning + .cds--text-input__divider {
|
|
6623
6638
|
display: block;
|
|
6624
6639
|
border-style: solid;
|
|
6625
6640
|
border-color: var(--cds-border-subtle);
|
|
@@ -6631,13 +6646,13 @@ fieldset[disabled] .cds--form__helper-text {
|
|
|
6631
6646
|
top: 5rem;
|
|
6632
6647
|
}
|
|
6633
6648
|
|
|
6634
|
-
.cds--form--fluid .cds--text-
|
|
6635
|
-
|
|
6649
|
+
.cds--form--fluid .cds--text-input__field-wrapper[data-invalid] > .cds--text-input--invalid,
|
|
6650
|
+
.cds--form--fluid .cds--text-input__field-wrapper--warning > .cds--text-input--warning {
|
|
6651
|
+
outline: none;
|
|
6636
6652
|
}
|
|
6637
6653
|
|
|
6638
|
-
.cds--form--fluid .cds--text-input__field-wrapper
|
|
6639
|
-
|
|
6640
|
-
outline-offset: -2px;
|
|
6654
|
+
.cds--form--fluid .cds--text-input__field-wrapper--warning {
|
|
6655
|
+
border-bottom: 1px solid var(--cds-border-strong);
|
|
6641
6656
|
}
|
|
6642
6657
|
|
|
6643
6658
|
.cds--form--fluid .cds--text-input__field-wrapper[data-invalid]:not(:focus) {
|
|
@@ -6650,16 +6665,23 @@ fieldset[disabled] .cds--form__helper-text {
|
|
|
6650
6665
|
}
|
|
6651
6666
|
}
|
|
6652
6667
|
|
|
6653
|
-
.cds--form--fluid .cds--text-input__field-wrapper[data-invalid]
|
|
6668
|
+
.cds--form--fluid .cds--text-input__field-wrapper[data-invalid]:focus-within,
|
|
6669
|
+
.cds--form--fluid .cds--text-input__field-wrapper--warning:focus-within {
|
|
6654
6670
|
outline: 2px solid var(--cds-focus, #0f62fe);
|
|
6655
6671
|
outline-offset: -2px;
|
|
6656
6672
|
}
|
|
6657
6673
|
@media screen and (prefers-contrast) {
|
|
6658
|
-
.cds--form--fluid .cds--text-input__field-wrapper[data-invalid]
|
|
6674
|
+
.cds--form--fluid .cds--text-input__field-wrapper[data-invalid]:focus-within,
|
|
6675
|
+
.cds--form--fluid .cds--text-input__field-wrapper--warning:focus-within {
|
|
6659
6676
|
outline-style: dotted;
|
|
6660
6677
|
}
|
|
6661
6678
|
}
|
|
6662
6679
|
|
|
6680
|
+
.cds--form--fluid .cds--text-input__field-wrapper[data-invalid] > .cds--text-input--invalid:focus,
|
|
6681
|
+
.cds--form--fluid .cds--text-input__field-wrapper--warning > .cds--text-input--warning:focus {
|
|
6682
|
+
outline: none;
|
|
6683
|
+
}
|
|
6684
|
+
|
|
6663
6685
|
.cds--text-input-wrapper.cds--text-input-wrapper--inline {
|
|
6664
6686
|
-webkit-box-orient: horizontal;
|
|
6665
6687
|
-webkit-box-direction: normal;
|
|
@@ -12258,11 +12280,117 @@ button.cds--dropdown-text:focus {
|
|
|
12258
12280
|
}
|
|
12259
12281
|
|
|
12260
12282
|
/* stylelint-enable */
|
|
12283
|
+
.cds--text-input--fluid.cds--text-input-wrapper {
|
|
12284
|
+
position: relative;
|
|
12285
|
+
height: 100%;
|
|
12286
|
+
background: var(--cds-field);
|
|
12287
|
+
-webkit-transition: background-color 70ms cubic-bezier(0.2, 0, 0.38, 0.9), outline 70ms cubic-bezier(0.2, 0, 0.38, 0.9);
|
|
12288
|
+
transition: background-color 70ms cubic-bezier(0.2, 0, 0.38, 0.9), outline 70ms cubic-bezier(0.2, 0, 0.38, 0.9);
|
|
12289
|
+
}
|
|
12290
|
+
|
|
12291
|
+
.cds--text-input--fluid .cds--label {
|
|
12292
|
+
position: absolute;
|
|
12293
|
+
z-index: 1;
|
|
12294
|
+
top: 0.8125rem;
|
|
12295
|
+
left: 1rem;
|
|
12296
|
+
display: -webkit-box;
|
|
12297
|
+
display: -ms-flexbox;
|
|
12298
|
+
display: flex;
|
|
12299
|
+
height: 1rem;
|
|
12300
|
+
-webkit-box-align: center;
|
|
12301
|
+
-ms-flex-align: center;
|
|
12302
|
+
align-items: center;
|
|
12303
|
+
margin: 0;
|
|
12304
|
+
}
|
|
12305
|
+
|
|
12306
|
+
.cds--text-input--fluid .cds--form__helper-text {
|
|
12307
|
+
display: none;
|
|
12308
|
+
}
|
|
12309
|
+
|
|
12310
|
+
.cds--text-input--fluid .cds--text-input {
|
|
12311
|
+
min-height: 4rem;
|
|
12312
|
+
padding: 2rem 1rem 0.8125rem;
|
|
12313
|
+
}
|
|
12314
|
+
|
|
12315
|
+
.cds--text-input__divider,
|
|
12316
|
+
.cds--text-input--fluid .cds--text-input__divider {
|
|
12317
|
+
display: none;
|
|
12318
|
+
}
|
|
12319
|
+
|
|
12320
|
+
.cds--text-input--fluid .cds--text-input__field-wrapper[data-invalid],
|
|
12321
|
+
.cds--text-input--fluid .cds--text-input__field-wrapper--warning {
|
|
12322
|
+
display: block;
|
|
12323
|
+
}
|
|
12324
|
+
|
|
12325
|
+
.cds--text-input--fluid input[data-invalid] {
|
|
12326
|
+
outline: none;
|
|
12327
|
+
}
|
|
12328
|
+
|
|
12329
|
+
.cds--text-input--fluid .cds--form-requirement {
|
|
12330
|
+
padding: 0.5rem 2.5rem 0.5rem 1rem;
|
|
12331
|
+
margin: 0;
|
|
12332
|
+
}
|
|
12333
|
+
|
|
12334
|
+
.cds--text-input--fluid .cds--text-input--invalid,
|
|
12335
|
+
.cds--text-input--fluid .cds--text-input--warning {
|
|
12336
|
+
border-bottom: none;
|
|
12337
|
+
}
|
|
12338
|
+
|
|
12339
|
+
.cds--text-input--fluid .cds--text-input--invalid + .cds--text-input__divider,
|
|
12340
|
+
.cds--text-input--fluid .cds--text-input--warning + .cds--text-input__divider {
|
|
12341
|
+
display: block;
|
|
12342
|
+
border-style: solid;
|
|
12343
|
+
border-color: var(--cds-border-subtle);
|
|
12344
|
+
border-bottom: none;
|
|
12345
|
+
margin: 0 1rem;
|
|
12346
|
+
}
|
|
12347
|
+
|
|
12348
|
+
.cds--text-input--fluid .cds--text-input__invalid-icon {
|
|
12349
|
+
top: 5rem;
|
|
12350
|
+
}
|
|
12351
|
+
|
|
12352
|
+
.cds--text-input--fluid .cds--text-input__field-wrapper[data-invalid] > .cds--text-input--invalid,
|
|
12353
|
+
.cds--text-input--fluid .cds--text-input__field-wrapper--warning > .cds--text-input--warning {
|
|
12354
|
+
outline: none;
|
|
12355
|
+
}
|
|
12356
|
+
|
|
12357
|
+
.cds--text-input--fluid .cds--text-input__field-wrapper--warning {
|
|
12358
|
+
border-bottom: 1px solid var(--cds-border-strong);
|
|
12359
|
+
}
|
|
12360
|
+
|
|
12361
|
+
.cds--text-input--fluid .cds--text-input__field-wrapper[data-invalid]:not(:focus) {
|
|
12362
|
+
outline: 2px solid var(--cds-support-error, #da1e28);
|
|
12363
|
+
outline-offset: -2px;
|
|
12364
|
+
}
|
|
12365
|
+
@media screen and (prefers-contrast) {
|
|
12366
|
+
.cds--text-input--fluid .cds--text-input__field-wrapper[data-invalid]:not(:focus) {
|
|
12367
|
+
outline-style: dotted;
|
|
12368
|
+
}
|
|
12369
|
+
}
|
|
12370
|
+
|
|
12371
|
+
.cds--text-input--fluid .cds--text-input__field-wrapper[data-invalid]:focus-within,
|
|
12372
|
+
.cds--text-input--fluid .cds--text-input__field-wrapper--warning:focus-within {
|
|
12373
|
+
outline: 2px solid var(--cds-focus, #0f62fe);
|
|
12374
|
+
outline-offset: -2px;
|
|
12375
|
+
}
|
|
12376
|
+
@media screen and (prefers-contrast) {
|
|
12377
|
+
.cds--text-input--fluid .cds--text-input__field-wrapper[data-invalid]:focus-within,
|
|
12378
|
+
.cds--text-input--fluid .cds--text-input__field-wrapper--warning:focus-within {
|
|
12379
|
+
outline-style: dotted;
|
|
12380
|
+
}
|
|
12381
|
+
}
|
|
12382
|
+
|
|
12383
|
+
.cds--text-input--fluid .cds--text-input__field-wrapper[data-invalid] > .cds--text-input--invalid:focus,
|
|
12384
|
+
.cds--text-input--fluid .cds--text-input__field-wrapper--warning > .cds--text-input--warning:focus {
|
|
12385
|
+
outline: none;
|
|
12386
|
+
}
|
|
12387
|
+
|
|
12261
12388
|
@-webkit-keyframes stroke {
|
|
12262
12389
|
100% {
|
|
12263
12390
|
stroke-dashoffset: 0;
|
|
12264
12391
|
}
|
|
12265
12392
|
}
|
|
12393
|
+
|
|
12266
12394
|
@keyframes stroke {
|
|
12267
12395
|
100% {
|
|
12268
12396
|
stroke-dashoffset: 0;
|
|
@@ -16362,15 +16490,15 @@ span.cds--pagination__text.cds--pagination__items-count {
|
|
|
16362
16490
|
.cds--popover--left-top .cds--popover-content {
|
|
16363
16491
|
top: -50%;
|
|
16364
16492
|
right: 100%;
|
|
16365
|
-
-webkit-transform: translate(calc(-1 * var(--cds-popover-offset, 0rem)), calc(-0.5 * var(--cds-popover-offset, 0rem)
|
|
16366
|
-
transform: translate(calc(-1 * var(--cds-popover-offset, 0rem)), calc(-0.5 * var(--cds-popover-offset, 0rem)
|
|
16493
|
+
-webkit-transform: translate(calc(-1 * var(--cds-popover-offset, 0rem)), calc(-0.5 * var(--cds-popover-offset, 0rem)));
|
|
16494
|
+
transform: translate(calc(-1 * var(--cds-popover-offset, 0rem)), calc(-0.5 * var(--cds-popover-offset, 0rem)));
|
|
16367
16495
|
}
|
|
16368
16496
|
|
|
16369
16497
|
.cds--popover--left-bottom .cds--popover-content {
|
|
16370
16498
|
right: 100%;
|
|
16371
16499
|
bottom: -50%;
|
|
16372
|
-
-webkit-transform: translate(calc(-1 * var(--cds-popover-offset, 0rem)), calc(0.5 * var(--cds-popover-offset, 0rem)
|
|
16373
|
-
transform: translate(calc(-1 * var(--cds-popover-offset, 0rem)), calc(0.5 * var(--cds-popover-offset, 0rem)
|
|
16500
|
+
-webkit-transform: translate(calc(-1 * var(--cds-popover-offset, 0rem)), calc(0.5 * var(--cds-popover-offset, 0rem)));
|
|
16501
|
+
transform: translate(calc(-1 * var(--cds-popover-offset, 0rem)), calc(0.5 * var(--cds-popover-offset, 0rem)));
|
|
16374
16502
|
}
|
|
16375
16503
|
|
|
16376
16504
|
.cds--popover--left .cds--popover-content::before,
|
|
@@ -19782,7 +19910,7 @@ span.cds--pagination__text.cds--pagination__items-count {
|
|
|
19782
19910
|
}
|
|
19783
19911
|
|
|
19784
19912
|
.cds--toggle__button:focus + .cds--toggle__label .cds--toggle__switch,
|
|
19785
|
-
.cds--toggle__button:active + .cds--toggle__label .cds--toggle__switch {
|
|
19913
|
+
.cds--toggle__button:not(:disabled):active + .cds--toggle__label .cds--toggle__switch {
|
|
19786
19914
|
-webkit-box-shadow: 0 0 0 1px var(--cds-focus-inset, #ffffff), 0 0 0 3px var(--cds-focus, #0f62fe);
|
|
19787
19915
|
box-shadow: 0 0 0 1px var(--cds-focus-inset, #ffffff), 0 0 0 3px var(--cds-focus, #0f62fe);
|
|
19788
19916
|
}
|
|
@@ -19860,7 +19988,7 @@ span.cds--pagination__text.cds--pagination__items-count {
|
|
|
19860
19988
|
|
|
19861
19989
|
@media screen and (-ms-high-contrast: active), (forced-colors: active) {
|
|
19862
19990
|
.cds--toggle__button:focus + .cds--toggle__label .cds--toggle__switch,
|
|
19863
|
-
.cds--toggle__button:active + .cds--toggle__label .cds--toggle__switch {
|
|
19991
|
+
.cds--toggle__button:not(:disabled):active + .cds--toggle__label .cds--toggle__switch {
|
|
19864
19992
|
color: Highlight;
|
|
19865
19993
|
outline: 1px solid Highlight;
|
|
19866
19994
|
}
|