@carbon/styles 1.53.0-rc.0 → 1.53.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 +136 -34
- package/css/styles.min.css +1 -1
- package/package.json +9 -9
- package/scss/__tests__/theme-test.js +6 -0
- package/scss/components/chat-button/_chat-button.scss +20 -6
- package/scss/components/fluid-list-box/_fluid-list-box.scss +28 -0
- package/scss/components/fluid-search/_fluid-search.scss +1 -10
- package/scss/components/link/_link.scss +9 -5
- package/scss/components/list-box/_list-box.scss +84 -14
- package/scss/components/toggletip/_toggletip.scss +4 -0
package/css/styles.css
CHANGED
|
@@ -2809,6 +2809,12 @@ em {
|
|
|
2809
2809
|
--cds-chat-bubble-agent: #ffffff;
|
|
2810
2810
|
--cds-chat-bubble-agent-border: #e0e0e0;
|
|
2811
2811
|
--cds-chat-bubble-user: #e0e0e0;
|
|
2812
|
+
--cds-chat-button: #0f62fe;
|
|
2813
|
+
--cds-chat-button-active: rgba(141, 141, 141, 0.5);
|
|
2814
|
+
--cds-chat-button-hover: rgba(141, 141, 141, 0.12);
|
|
2815
|
+
--cds-chat-button-selected: rgba(141, 141, 141, 0.2);
|
|
2816
|
+
--cds-chat-button-text-hover: #0043ce;
|
|
2817
|
+
--cds-chat-button-text-selected: #525252;
|
|
2812
2818
|
--cds-chat-header-background: #ffffff;
|
|
2813
2819
|
--cds-chat-prompt-background: #ffffff;
|
|
2814
2820
|
--cds-chat-prompt-border-end: rgba(244, 244, 244, 0);
|
|
@@ -3027,6 +3033,12 @@ em {
|
|
|
3027
3033
|
--cds-chat-bubble-agent: #ffffff;
|
|
3028
3034
|
--cds-chat-bubble-agent-border: #e0e0e0;
|
|
3029
3035
|
--cds-chat-bubble-user: #e0e0e0;
|
|
3036
|
+
--cds-chat-button: #0f62fe;
|
|
3037
|
+
--cds-chat-button-active: rgba(141, 141, 141, 0.5);
|
|
3038
|
+
--cds-chat-button-hover: rgba(141, 141, 141, 0.12);
|
|
3039
|
+
--cds-chat-button-selected: rgba(141, 141, 141, 0.2);
|
|
3040
|
+
--cds-chat-button-text-hover: #0043ce;
|
|
3041
|
+
--cds-chat-button-text-selected: #525252;
|
|
3030
3042
|
--cds-chat-header-background: #ffffff;
|
|
3031
3043
|
--cds-chat-prompt-background: #ffffff;
|
|
3032
3044
|
--cds-chat-prompt-border-end: rgba(244, 244, 244, 0);
|
|
@@ -3245,6 +3257,12 @@ em {
|
|
|
3245
3257
|
--cds-chat-bubble-agent: #262626;
|
|
3246
3258
|
--cds-chat-bubble-agent-border: #525252;
|
|
3247
3259
|
--cds-chat-bubble-user: #393939;
|
|
3260
|
+
--cds-chat-button: #78a9ff;
|
|
3261
|
+
--cds-chat-button-active: rgba(141, 141, 141, 0.4);
|
|
3262
|
+
--cds-chat-button-hover: rgba(141, 141, 141, 0.16);
|
|
3263
|
+
--cds-chat-button-selected: rgba(141, 141, 141, 0.24);
|
|
3264
|
+
--cds-chat-button-text-hover: #a6c8ff;
|
|
3265
|
+
--cds-chat-button-text-selected: #c6c6c6;
|
|
3248
3266
|
--cds-chat-header-background: #262626;
|
|
3249
3267
|
--cds-chat-prompt-background: #161616;
|
|
3250
3268
|
--cds-chat-prompt-border-end: rgba(38, 38, 38, 0);
|
|
@@ -3462,6 +3480,12 @@ em {
|
|
|
3462
3480
|
--cds-chat-bubble-agent: #262626;
|
|
3463
3481
|
--cds-chat-bubble-agent-border: #525252;
|
|
3464
3482
|
--cds-chat-bubble-user: #393939;
|
|
3483
|
+
--cds-chat-button: #78a9ff;
|
|
3484
|
+
--cds-chat-button-active: rgba(141, 141, 141, 0.4);
|
|
3485
|
+
--cds-chat-button-hover: rgba(141, 141, 141, 0.16);
|
|
3486
|
+
--cds-chat-button-selected: rgba(141, 141, 141, 0.24);
|
|
3487
|
+
--cds-chat-button-text-hover: #a6c8ff;
|
|
3488
|
+
--cds-chat-button-text-selected: #c6c6c6;
|
|
3465
3489
|
--cds-chat-header-background: #262626;
|
|
3466
3490
|
--cds-chat-prompt-background: #161616;
|
|
3467
3491
|
--cds-chat-prompt-border-end: rgba(38, 38, 38, 0);
|
|
@@ -5561,7 +5585,7 @@ a.cds--overflow-menu-options__btn::before {
|
|
|
5561
5585
|
}
|
|
5562
5586
|
.cds--link:active, .cds--link:active:visited, .cds--link:active:visited:hover {
|
|
5563
5587
|
outline: 1px solid var(--cds-focus, #0f62fe);
|
|
5564
|
-
color: var(--cds-text-primary, #
|
|
5588
|
+
color: var(--cds-link-text-color, var(--cds-link-primary, #0f62fe));
|
|
5565
5589
|
outline-color: var(--cds-link-focus-text-color, var(--cds-focus, #0f62fe));
|
|
5566
5590
|
text-decoration: underline;
|
|
5567
5591
|
}
|
|
@@ -5581,10 +5605,10 @@ a.cds--overflow-menu-options__btn::before {
|
|
|
5581
5605
|
}
|
|
5582
5606
|
}
|
|
5583
5607
|
.cds--link:visited {
|
|
5584
|
-
color: var(--cds-link-
|
|
5608
|
+
color: var(--cds-link-visited-text-color, var(--cds-link-visited, #8a3ffc));
|
|
5585
5609
|
}
|
|
5586
5610
|
.cds--link:visited:hover {
|
|
5587
|
-
color: var(--cds-link-
|
|
5611
|
+
color: var(--cds-link-visited-text-color, var(--cds-link-visited, #8a3ffc));
|
|
5588
5612
|
}
|
|
5589
5613
|
|
|
5590
5614
|
.cds--link--disabled,
|
|
@@ -5615,11 +5639,11 @@ a.cds--overflow-menu-options__btn::before {
|
|
|
5615
5639
|
}
|
|
5616
5640
|
|
|
5617
5641
|
.cds--link.cds--link--visited:visited {
|
|
5618
|
-
color: var(--cds-link-visited, #8a3ffc);
|
|
5642
|
+
color: var(--cds-link-visited-text-color, var(--cds-link-visited, #8a3ffc));
|
|
5619
5643
|
}
|
|
5620
5644
|
|
|
5621
5645
|
.cds--link.cds--link--visited:visited:hover {
|
|
5622
|
-
color: var(--cds-link-primary-hover, #0043ce);
|
|
5646
|
+
color: var(--cds-link-hover-text-color, var(--cds-link-primary-hover, #0043ce));
|
|
5623
5647
|
}
|
|
5624
5648
|
|
|
5625
5649
|
.cds--link.cds--link--inline {
|
|
@@ -5670,12 +5694,21 @@ a.cds--overflow-menu-options__btn::before {
|
|
|
5670
5694
|
|
|
5671
5695
|
.cds--chat-btn--quick-action {
|
|
5672
5696
|
align-items: center;
|
|
5673
|
-
border: 1px solid var(--cds-
|
|
5697
|
+
border: 1px solid var(--cds-chat-button, #0f62fe);
|
|
5698
|
+
background: transparent;
|
|
5699
|
+
color: var(--cds-chat-button, #0f62fe);
|
|
5674
5700
|
}
|
|
5675
5701
|
|
|
5676
5702
|
.cds--chat-btn--quick-action:hover:not(:active):not([disabled]) {
|
|
5677
5703
|
border-color: transparent;
|
|
5678
|
-
background: var(--cds-
|
|
5704
|
+
background: var(--cds-chat-button-hover, rgba(141, 141, 141, 0.12));
|
|
5705
|
+
color: var(--cds-chat-button-text-hover, #0043ce);
|
|
5706
|
+
}
|
|
5707
|
+
|
|
5708
|
+
.cds--chat-btn--quick-action:active {
|
|
5709
|
+
border-color: transparent;
|
|
5710
|
+
background: var(--cds-chat-button-active, rgba(141, 141, 141, 0.5));
|
|
5711
|
+
color: var(--cds-chat-button-text-hover, #0043ce);
|
|
5679
5712
|
}
|
|
5680
5713
|
|
|
5681
5714
|
.cds--chat-btn--quick-action.cds--btn--ghost:focus {
|
|
@@ -5698,12 +5731,13 @@ a.cds--overflow-menu-options__btn::before {
|
|
|
5698
5731
|
.cds--chat-btn--quick-action--selected[disabled],
|
|
5699
5732
|
.cds--chat-btn--quick-action--selected[disabled]:hover {
|
|
5700
5733
|
border-color: transparent;
|
|
5701
|
-
background: var(--cds-
|
|
5702
|
-
color: var(--cds-text-
|
|
5734
|
+
background: var(--cds-chat-button-selected, rgba(141, 141, 141, 0.2));
|
|
5735
|
+
color: var(--cds-chat-button-text-selected, #525252);
|
|
5703
5736
|
}
|
|
5704
5737
|
|
|
5705
|
-
.cds--chat-btn--quick-action--selected:hover
|
|
5706
|
-
|
|
5738
|
+
.cds--chat-btn--quick-action.cds--chat-btn--quick-action--selected:not([disabled]):hover,
|
|
5739
|
+
.cds--chat-btn--quick-action.cds--chat-btn--quick-action--selected:not([disabled]):active {
|
|
5740
|
+
color: var(--cds-chat-button-text-selected, #525252);
|
|
5707
5741
|
}
|
|
5708
5742
|
|
|
5709
5743
|
.cds--chat-btn.cds--skeleton {
|
|
@@ -8484,17 +8518,17 @@ fieldset[disabled] .cds--form__helper-text {
|
|
|
8484
8518
|
}
|
|
8485
8519
|
|
|
8486
8520
|
.cds--list-box__field .cds--text-input {
|
|
8487
|
-
padding-inline-end:
|
|
8521
|
+
padding-inline-end: 5rem;
|
|
8488
8522
|
}
|
|
8489
8523
|
|
|
8490
8524
|
.cds--list-box[data-invalid] .cds--list-box__field .cds--text-input,
|
|
8491
8525
|
.cds--list-box--warning .cds--list-box__field .cds--text-input {
|
|
8492
|
-
padding-inline-end: 6.
|
|
8526
|
+
padding-inline-end: 6.5625rem;
|
|
8493
8527
|
}
|
|
8494
8528
|
|
|
8495
8529
|
.cds--list-box[data-invalid] .cds--list-box__field .cds--text-input + .cds--list-box__invalid-icon,
|
|
8496
8530
|
.cds--list-box--warning .cds--list-box__field .cds--text-input + .cds--list-box__invalid-icon {
|
|
8497
|
-
inset-inline-end:
|
|
8531
|
+
inset-inline-end: 5.125rem;
|
|
8498
8532
|
}
|
|
8499
8533
|
|
|
8500
8534
|
.cds--list-box__field .cds--text-input--empty {
|
|
@@ -8598,7 +8632,7 @@ fieldset[disabled] .cds--form__helper-text {
|
|
|
8598
8632
|
inline-size: 1.5rem;
|
|
8599
8633
|
inset-block-start: 50%;
|
|
8600
8634
|
/* to preserve .5rem space between icons according to spec top/transform used to center the combobox clear selection icon in IE11 */
|
|
8601
|
-
inset-inline-end: 2.
|
|
8635
|
+
inset-inline-end: 2.8125rem;
|
|
8602
8636
|
transform: translateY(-50%);
|
|
8603
8637
|
transition: background-color 70ms cubic-bezier(0.2, 0, 0.38, 0.9);
|
|
8604
8638
|
-webkit-user-select: none;
|
|
@@ -9028,10 +9062,30 @@ fieldset[disabled] .cds--form__helper-text {
|
|
|
9028
9062
|
.cds--list-box__wrapper--slug .cds--slug {
|
|
9029
9063
|
position: absolute;
|
|
9030
9064
|
inset-block-start: 50%;
|
|
9031
|
-
inset-inline-end: 2.5rem;
|
|
9065
|
+
inset-inline-end: calc(2.5rem + 9px);
|
|
9066
|
+
margin-block-start: 0.03125rem;
|
|
9032
9067
|
transform: translateY(-50%);
|
|
9033
9068
|
}
|
|
9034
9069
|
|
|
9070
|
+
.cds--list-box__wrapper--slug .cds--slug::after,
|
|
9071
|
+
.cds--list-box__wrapper--slug .cds--slug::before {
|
|
9072
|
+
position: absolute;
|
|
9073
|
+
background-color: var(--cds-border-subtle-01, #c6c6c6);
|
|
9074
|
+
block-size: 1rem;
|
|
9075
|
+
content: "";
|
|
9076
|
+
inline-size: 0.0625rem;
|
|
9077
|
+
}
|
|
9078
|
+
|
|
9079
|
+
.cds--list-box__wrapper--slug .cds--slug::before {
|
|
9080
|
+
display: none;
|
|
9081
|
+
inset-inline-start: -0.5625rem;
|
|
9082
|
+
}
|
|
9083
|
+
|
|
9084
|
+
.cds--list-box__wrapper--slug .cds--slug::after {
|
|
9085
|
+
display: block;
|
|
9086
|
+
inset-inline-end: -0.5625rem;
|
|
9087
|
+
}
|
|
9088
|
+
|
|
9035
9089
|
.cds--list-box__wrapper--slug .cds--list-box:not(:has(.cds--slug--revert)) {
|
|
9036
9090
|
background-image: linear-gradient(0deg, var(--cds-ai-inner-shadow, rgba(69, 137, 255, 0.2)) 0%, 15%, var(--cds-ai-aura-end, rgba(255, 255, 255, 0)) 50%, transparent 100%);
|
|
9037
9091
|
border-block-end-color: var(--cds-ai-border-strong, #4589ff);
|
|
@@ -9059,21 +9113,28 @@ fieldset[disabled] .cds--form__helper-text {
|
|
|
9059
9113
|
|
|
9060
9114
|
.cds--list-box__wrapper--slug .cds--list-box--invalid[data-invalid] .cds--text-input:not(.cds--text-input--empty),
|
|
9061
9115
|
.cds--list-box__wrapper--slug .cds--list-box--warning .cds--text-input:not(.cds--text-input--empty) {
|
|
9062
|
-
padding-inline-end:
|
|
9116
|
+
padding-inline-end: 8.8125rem;
|
|
9063
9117
|
}
|
|
9064
9118
|
|
|
9065
|
-
.cds--list-box__wrapper--slug .cds--list-box--invalid .cds--
|
|
9066
|
-
.cds--list-box__wrapper--slug .cds--list-box--
|
|
9067
|
-
|
|
9119
|
+
.cds--list-box__wrapper--slug .cds--list-box--invalid[data-invalid] .cds--text-input--empty + .cds--list-box__invalid-icon,
|
|
9120
|
+
.cds--list-box__wrapper--slug .cds--list-box--invalid[data-invalid] .cds--list-box__invalid-icon,
|
|
9121
|
+
.cds--list-box__wrapper--slug .cds--list-box--warning .cds--list-box__invalid-icon.cds--list-box__invalid-icon--warning {
|
|
9122
|
+
inset-inline-end: 5.1875rem;
|
|
9068
9123
|
}
|
|
9069
9124
|
|
|
9070
|
-
.cds--list-box__wrapper--slug .cds--list-
|
|
9071
|
-
|
|
9125
|
+
.cds--list-box__wrapper--slug .cds--list-box--invalid[data-invalid] .cds--slug::before,
|
|
9126
|
+
.cds--list-box__wrapper--slug .cds--list-box--warning .cds--slug::before {
|
|
9127
|
+
display: block;
|
|
9072
9128
|
}
|
|
9073
9129
|
|
|
9074
|
-
.cds--list-box__wrapper--slug .cds--list-
|
|
9130
|
+
.cds--list-box__wrapper--slug .cds--list-box__field:has(.cds--list-box__selection) ~ .cds--slug,
|
|
9075
9131
|
.cds--list-box__wrapper--slug .cds--list-box--warning .cds--list-box__field:has(.cds--list-box__selection) ~ .cds--slug {
|
|
9076
|
-
inset-inline-end:
|
|
9132
|
+
inset-inline-end: calc(4rem + 18px);
|
|
9133
|
+
}
|
|
9134
|
+
|
|
9135
|
+
.cds--list-box__wrapper--slug .cds--list-box--invalid .cds--list-box__field:has(.cds--list-box__selection) .cds--list-box__invalid-icon,
|
|
9136
|
+
.cds--list-box__wrapper--slug .cds--list-box--warning .cds--list-box__field:has(.cds--list-box__selection) .cds--list-box__invalid-icon {
|
|
9137
|
+
inset-inline-end: 7.25rem;
|
|
9077
9138
|
}
|
|
9078
9139
|
|
|
9079
9140
|
@media screen and (-ms-high-contrast: active), (forced-colors: active) {
|
|
@@ -9101,6 +9162,33 @@ fieldset[disabled] .cds--form__helper-text {
|
|
|
9101
9162
|
}
|
|
9102
9163
|
}
|
|
9103
9164
|
|
|
9165
|
+
.cds--list-box__field:has(.cds--list-box__menu-icon) .cds--list-box__selection::after {
|
|
9166
|
+
position: absolute;
|
|
9167
|
+
background-color: var(--cds-border-subtle-01, #c6c6c6);
|
|
9168
|
+
block-size: 1rem;
|
|
9169
|
+
content: "";
|
|
9170
|
+
inline-size: 0.0625rem;
|
|
9171
|
+
margin-inline-start: 2.0625rem;
|
|
9172
|
+
}
|
|
9173
|
+
|
|
9174
|
+
.cds--list-box--warning .cds--list-box__field:has(.cds--list-box__menu-icon) .cds--list-box__selection::before,
|
|
9175
|
+
.cds--list-box--invalid[data-invalid] .cds--list-box__field:has(.cds--list-box__menu-icon) .cds--list-box__selection::before {
|
|
9176
|
+
position: absolute;
|
|
9177
|
+
background-color: var(--cds-border-subtle-01, #c6c6c6);
|
|
9178
|
+
block-size: 1rem;
|
|
9179
|
+
content: "";
|
|
9180
|
+
inline-size: 0.0625rem;
|
|
9181
|
+
margin-inline-end: 2.0625rem;
|
|
9182
|
+
}
|
|
9183
|
+
|
|
9184
|
+
.cds--list-box__wrapper--slug:has(.cds--multi-select) .cds--list-box__menu-icon {
|
|
9185
|
+
inset-inline-end: calc(0.75rem - 4px);
|
|
9186
|
+
}
|
|
9187
|
+
|
|
9188
|
+
.cds--list-box__wrapper--slug:has(.cds--dropdown) .cds--list-box__menu-icon {
|
|
9189
|
+
inset-inline-end: calc(0.75rem - 4px);
|
|
9190
|
+
}
|
|
9191
|
+
|
|
9104
9192
|
.cds--combo-box:hover {
|
|
9105
9193
|
background-color: var(--cds-field);
|
|
9106
9194
|
}
|
|
@@ -14950,6 +15038,28 @@ button.cds--dropdown-text:focus {
|
|
|
14950
15038
|
padding-inline-end: 6rem;
|
|
14951
15039
|
}
|
|
14952
15040
|
|
|
15041
|
+
.cds--list-box__wrapper--fluid .cds--list-box__selection {
|
|
15042
|
+
inset-inline-end: 2.5625rem;
|
|
15043
|
+
}
|
|
15044
|
+
|
|
15045
|
+
.cds--list-box__wrapper--fluid .cds--list-box--warning .cds--list-box__field:has(.cds--list-box__menu-icon) .cds--list-box__selection::before,
|
|
15046
|
+
.cds--list-box__wrapper--fluid .cds--list-box--invalid[data-invalid] .cds--list-box__field:has(.cds--list-box__menu-icon) .cds--list-box__selection::before {
|
|
15047
|
+
position: absolute;
|
|
15048
|
+
background-color: transparent;
|
|
15049
|
+
block-size: 1rem;
|
|
15050
|
+
content: "";
|
|
15051
|
+
inline-size: 0.0625rem;
|
|
15052
|
+
margin-inline-end: 2.0625rem;
|
|
15053
|
+
}
|
|
15054
|
+
|
|
15055
|
+
.cds--list-box__wrapper--fluid:has(.cds--multi-select) .cds--list-box__menu-icon {
|
|
15056
|
+
inset-inline-end: 0.75rem;
|
|
15057
|
+
}
|
|
15058
|
+
|
|
15059
|
+
.cds--list-box__wrapper--fluid:has(.cds--dropdown) .cds--list-box__menu-icon {
|
|
15060
|
+
inset-inline-end: 0.75rem;
|
|
15061
|
+
}
|
|
15062
|
+
|
|
14953
15063
|
.cds--list-box__wrapper--fluid .cds--combo-box .cds--list-box__field {
|
|
14954
15064
|
overflow: visible;
|
|
14955
15065
|
padding: 0;
|
|
@@ -16123,6 +16233,7 @@ button.cds--dropdown-text:focus {
|
|
|
16123
16233
|
}
|
|
16124
16234
|
|
|
16125
16235
|
.cds--search--fluid .cds--search-magnifier-icon {
|
|
16236
|
+
color: var(--cds-icon-primary, #161616);
|
|
16126
16237
|
inset: auto 1rem 0.8125rem auto;
|
|
16127
16238
|
transform: none;
|
|
16128
16239
|
}
|
|
@@ -16135,16 +16246,6 @@ button.cds--dropdown-text:focus {
|
|
|
16135
16246
|
transition: background-color 70ms cubic-bezier(0.2, 0, 0.38, 0.9);
|
|
16136
16247
|
}
|
|
16137
16248
|
|
|
16138
|
-
.cds--search--fluid .cds--search-close::before {
|
|
16139
|
-
position: absolute;
|
|
16140
|
-
display: block;
|
|
16141
|
-
background: var(--cds-border-subtle);
|
|
16142
|
-
block-size: 1rem;
|
|
16143
|
-
content: "";
|
|
16144
|
-
inline-size: 0.0625rem;
|
|
16145
|
-
inset: auto -0.0625rem 0.875rem auto;
|
|
16146
|
-
}
|
|
16147
|
-
|
|
16148
16249
|
.cds--search--fluid .cds--search-input:focus ~ .cds--search-close:hover {
|
|
16149
16250
|
outline: none;
|
|
16150
16251
|
}
|
|
@@ -20902,6 +21003,7 @@ span.cds--pagination__text.cds--pagination__items-count {
|
|
|
20902
21003
|
--cds-button-focus-color: var(--cds-focus-inverse, #ffffff);
|
|
20903
21004
|
--cds-link-text-color: var(--cds-link-inverse, #78a9ff);
|
|
20904
21005
|
--cds-link-hover-text-color: var(--cds-link-inverse, #78a9ff);
|
|
21006
|
+
--cds-link-visited-text-color: var(--cds-link-inverse, #78a9ff);
|
|
20905
21007
|
--cds-link-focus-text-color: var(--cds-focus-inverse, #ffffff);
|
|
20906
21008
|
font-size: var(--cds-body-01-font-size, 0.875rem);
|
|
20907
21009
|
font-weight: var(--cds-body-01-font-weight, 400);
|