@carbon/styles 1.24.0 → 1.25.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 CHANGED
@@ -5053,7 +5053,7 @@ input[data-invalid]:not(:focus),
5053
5053
  .cds--text-input__field-wrapper[data-invalid] > .cds--text-input--invalid:not(:focus),
5054
5054
  .cds--text-area__wrapper[data-invalid] > .cds--text-area--invalid:not(:focus),
5055
5055
  .cds--select-input__wrapper[data-invalid] .cds--select-input:not(:focus),
5056
- .cds--list-box[data-invalid]:not(:focus),
5056
+ .cds--list-box[data-invalid]:not(.cds--multi-select--invalid--focused),
5057
5057
  .cds--combo-box[data-invalid]:not(.cds--multi-select--selected) .cds--text-input:not(:focus) {
5058
5058
  outline: 2px solid var(--cds-support-error, #da1e28);
5059
5059
  outline-offset: -2px;
@@ -5064,7 +5064,7 @@ input[data-invalid]:not(:focus),
5064
5064
  .cds--text-input__field-wrapper[data-invalid] > .cds--text-input--invalid:not(:focus),
5065
5065
  .cds--text-area__wrapper[data-invalid] > .cds--text-area--invalid:not(:focus),
5066
5066
  .cds--select-input__wrapper[data-invalid] .cds--select-input:not(:focus),
5067
- .cds--list-box[data-invalid]:not(:focus),
5067
+ .cds--list-box[data-invalid]:not(.cds--multi-select--invalid--focused),
5068
5068
  .cds--combo-box[data-invalid]:not(.cds--multi-select--selected) .cds--text-input:not(:focus) {
5069
5069
  outline-style: dotted;
5070
5070
  }
@@ -5081,6 +5081,7 @@ input[data-invalid] ~ .cds--form-requirement,
5081
5081
  .cds--text-input__field-wrapper--warning ~ .cds--form-requirement,
5082
5082
  .cds--text-input__field-wrapper--warning > .cds--text-input ~ .cds--form-requirement,
5083
5083
  .cds--text-area__wrapper[data-invalid] ~ .cds--form-requirement,
5084
+ .cds--text-area__wrapper--warn ~ .cds--form-requirement,
5084
5085
  .cds--select-input__wrapper[data-invalid] ~ .cds--form-requirement,
5085
5086
  .cds--select--warning .cds--select-input__wrapper ~ .cds--form-requirement,
5086
5087
  .cds--time-picker[data-invalid] ~ .cds--form-requirement,
@@ -5789,6 +5790,16 @@ fieldset[disabled] .cds--form__helper-text {
5789
5790
  -webkit-transition: max-height 150ms cubic-bezier(0.2, 0, 0.38, 0.9);
5790
5791
  transition: max-height 150ms cubic-bezier(0.2, 0, 0.38, 0.9);
5791
5792
  }
5793
+ .cds--snippet--multi .cds--snippet-container:focus {
5794
+ outline: 2px solid var(--cds-focus, #0f62fe);
5795
+ outline-offset: -2px;
5796
+ outline-offset: 0;
5797
+ }
5798
+ @media screen and (prefers-contrast) {
5799
+ .cds--snippet--multi .cds--snippet-container:focus {
5800
+ outline-style: dotted;
5801
+ }
5802
+ }
5792
5803
 
5793
5804
  .cds--snippet--multi.cds--snippet--expand .cds--snippet-container {
5794
5805
  padding-bottom: 1rem;
@@ -8109,6 +8120,43 @@ fieldset[disabled] .cds--form__helper-text {
8109
8120
  fill: var(--cds-icon-disabled, rgba(22, 22, 22, 0.25));
8110
8121
  }
8111
8122
 
8123
+ .cds--combo-button__container {
8124
+ display: -webkit-inline-box;
8125
+ display: -ms-inline-flexbox;
8126
+ display: inline-flex;
8127
+ -webkit-column-gap: 0.0625rem;
8128
+ -moz-column-gap: 0.0625rem;
8129
+ column-gap: 0.0625rem;
8130
+ }
8131
+
8132
+ .cds--combo-button__container--sm .cds--combo-button__primary-action {
8133
+ min-width: 7.9375rem;
8134
+ }
8135
+
8136
+ .cds--combo-button__container--md .cds--combo-button__primary-action {
8137
+ min-width: 7.4375rem;
8138
+ }
8139
+
8140
+ .cds--combo-button__container--lg .cds--combo-button__primary-action {
8141
+ min-width: 6.9375rem;
8142
+ }
8143
+
8144
+ .cds--combo-button__primary-action .cds--btn {
8145
+ width: 100%;
8146
+ }
8147
+
8148
+ .cds--combo-button__trigger svg {
8149
+ -webkit-transition: -webkit-transform 110ms cubic-bezier(0.2, 0, 0.38, 0.9);
8150
+ transition: -webkit-transform 110ms cubic-bezier(0.2, 0, 0.38, 0.9);
8151
+ transition: transform 110ms cubic-bezier(0.2, 0, 0.38, 0.9);
8152
+ transition: transform 110ms cubic-bezier(0.2, 0, 0.38, 0.9), -webkit-transform 110ms cubic-bezier(0.2, 0, 0.38, 0.9);
8153
+ }
8154
+
8155
+ .cds--combo-button__container--open .cds--combo-button__trigger svg {
8156
+ -webkit-transform: rotate(180deg);
8157
+ transform: rotate(180deg);
8158
+ }
8159
+
8112
8160
  .cds--contained-list__header {
8113
8161
  position: -webkit-sticky;
8114
8162
  position: sticky;
@@ -9655,9 +9703,8 @@ tr.cds--data-table--selected:last-of-type td {
9655
9703
  }
9656
9704
 
9657
9705
  .cds--batch-actions--active {
9658
- overflow: auto hidden;
9659
- -webkit-clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
9660
- clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
9706
+ -webkit-clip-path: polygon(0 0, 200% 0, 200% 200%, 0 200%);
9707
+ clip-path: polygon(0 0, 200% 0, 200% 200%, 0 200%);
9661
9708
  pointer-events: all;
9662
9709
  -webkit-transform: translate3d(0, 0, 0);
9663
9710
  transform: translate3d(0, 0, 0);
@@ -12659,6 +12706,24 @@ button.cds--dropdown-text:focus {
12659
12706
  }
12660
12707
 
12661
12708
  .cds--file__drop-container {
12709
+ -webkit-box-sizing: border-box;
12710
+ box-sizing: border-box;
12711
+ padding: 0;
12712
+ border: 0;
12713
+ margin: 0;
12714
+ font-family: inherit;
12715
+ font-size: 100%;
12716
+ vertical-align: baseline;
12717
+ display: inline-block;
12718
+ padding: 0;
12719
+ border: 0;
12720
+ -webkit-appearance: none;
12721
+ -moz-appearance: none;
12722
+ appearance: none;
12723
+ background: none;
12724
+ cursor: pointer;
12725
+ text-align: start;
12726
+ width: 100%;
12662
12727
  display: -webkit-box;
12663
12728
  display: -ms-flexbox;
12664
12729
  display: flex;
@@ -12677,6 +12742,15 @@ button.cds--dropdown-text:focus {
12677
12742
  line-height: var(--cds-body-compact-01-line-height, 1.28572);
12678
12743
  letter-spacing: var(--cds-body-compact-01-letter-spacing, 0.16px);
12679
12744
  }
12745
+ .cds--file__drop-container *,
12746
+ .cds--file__drop-container *::before,
12747
+ .cds--file__drop-container *::after {
12748
+ -webkit-box-sizing: inherit;
12749
+ box-sizing: inherit;
12750
+ }
12751
+ .cds--file__drop-container::-moz-focus-inner {
12752
+ border: 0;
12753
+ }
12680
12754
 
12681
12755
  .cds--file__drop-container--drag-over {
12682
12756
  background: none;
@@ -13213,6 +13287,14 @@ button.cds--dropdown-text:focus {
13213
13287
  bottom: 0.5rem;
13214
13288
  }
13215
13289
 
13290
+ .cds--multi-select__wrapper.cds--list-box__wrapper--fluid--focus:not(.cds--multi-select--filterable__wrapper) .cds--list-box__field--wrapper--input-focused {
13291
+ outline: none;
13292
+ }
13293
+
13294
+ .cds--list-box__wrapper--fluid .cds--tag.cds--tag--filter {
13295
+ margin-top: 1.25rem;
13296
+ }
13297
+
13216
13298
  .cds--list-box__wrapper--fluid .cds--multi-select--filterable--input-focused {
13217
13299
  outline: none;
13218
13300
  outline-offset: 0;
@@ -15114,7 +15196,13 @@ optgroup.cds--select-optgroup:disabled,
15114
15196
  display: none;
15115
15197
  }
15116
15198
 
15117
- .cds--text-area--fluid .cds--text-area--invalid + .cds--text-area__divider {
15199
+ .cds--text-area--fluid .cds--text-area--invalid,
15200
+ .cds--text-area--fluid .cds--text-area--warn {
15201
+ resize: none;
15202
+ }
15203
+
15204
+ .cds--text-area--fluid .cds--text-area__wrapper[data-invalid] .cds--text-area__divider,
15205
+ .cds--text-area--fluid .cds--text-area__wrapper--warn .cds--text-area__divider {
15118
15206
  display: block;
15119
15207
  border-style: solid;
15120
15208
  border-color: var(--cds-border-subtle);
@@ -15122,7 +15210,8 @@ optgroup.cds--select-optgroup:disabled,
15122
15210
  margin: 0 1rem;
15123
15211
  }
15124
15212
 
15125
- .cds--text-area--fluid .cds--text-area--invalid + .cds--text-area__divider + .cds--form-requirement {
15213
+ .cds--text-area--fluid .cds--text-area__wrapper[data-invalid] .cds--form-requirement.cds--form-requirement,
15214
+ .cds--text-area--fluid .cds--text-area__wrapper--warn .cds--form-requirement.cds--form-requirement {
15126
15215
  position: relative;
15127
15216
  display: block;
15128
15217
  overflow: visible;
@@ -15130,10 +15219,23 @@ optgroup.cds--select-optgroup:disabled,
15130
15219
  padding: 0.5rem 2.5rem 0.5rem 1rem;
15131
15220
  margin: 0;
15132
15221
  background: var(--cds-field);
15222
+ }
15223
+
15224
+ .cds--text-area--fluid .cds--text-area__wrapper--warn .cds--form-requirement.cds--form-requirement {
15225
+ border-bottom: 1px solid var(--cds-border-strong);
15226
+ color: var(--cds-text-primary, #161616);
15227
+ }
15228
+
15229
+ .cds--text-area--fluid .cds--text-area__wrapper[data-invalid] .cds--form-requirement.cds--form-requirement {
15230
+ border-bottom: none;
15133
15231
  color: var(--cds-text-error, #da1e28);
15134
15232
  }
15135
15233
 
15136
- .cds--modal .cds--text-area--fluid .cds--text-area--invalid + .cds--text-area__divider + .cds--form-requirement {
15234
+ .cds--text-area--fluid .cds--text-area--warn {
15235
+ border-bottom: none;
15236
+ }
15237
+
15238
+ .cds--modal .cds--text-area--fluid .cds--text-area__wrapper[data-invalid] .cds--text-area__divider + .cds--form-requirement {
15137
15239
  background: var(--cds-field-02, #ffffff);
15138
15240
  }
15139
15241
 
@@ -15726,12 +15828,28 @@ optgroup.cds--select-optgroup:disabled,
15726
15828
  content: "▪";
15727
15829
  }
15728
15830
 
15831
+ .cds--menu-button__trigger:not(.cds--btn--ghost) {
15832
+ min-width: 10rem;
15833
+ }
15834
+
15835
+ .cds--menu-button__trigger svg {
15836
+ -webkit-transition: -webkit-transform 110ms cubic-bezier(0.2, 0, 0.38, 0.9);
15837
+ transition: -webkit-transform 110ms cubic-bezier(0.2, 0, 0.38, 0.9);
15838
+ transition: transform 110ms cubic-bezier(0.2, 0, 0.38, 0.9);
15839
+ transition: transform 110ms cubic-bezier(0.2, 0, 0.38, 0.9), -webkit-transform 110ms cubic-bezier(0.2, 0, 0.38, 0.9);
15840
+ }
15841
+
15842
+ .cds--menu-button__trigger--open svg {
15843
+ -webkit-transform: rotate(180deg);
15844
+ transform: rotate(180deg);
15845
+ }
15846
+
15729
15847
  .cds--menu {
15730
15848
  -webkit-box-shadow: 0 2px 6px var(--cds-shadow, rgba(0, 0, 0, 0.3));
15731
15849
  box-shadow: 0 2px 6px var(--cds-shadow, rgba(0, 0, 0, 0.3));
15732
15850
  position: fixed;
15733
15851
  z-index: 9000;
15734
- min-width: 13rem;
15852
+ min-width: 10rem;
15735
15853
  max-width: 18rem;
15736
15854
  padding: 0.25rem 0;
15737
15855
  background-color: var(--cds-layer);
@@ -15739,6 +15857,10 @@ optgroup.cds--select-optgroup:disabled,
15739
15857
  visibility: hidden;
15740
15858
  }
15741
15859
 
15860
+ .cds--menu--with-icons {
15861
+ min-width: 12rem;
15862
+ }
15863
+
15742
15864
  .cds--menu--open {
15743
15865
  visibility: visible;
15744
15866
  }
@@ -15774,8 +15896,8 @@ optgroup.cds--select-optgroup:disabled,
15774
15896
  -moz-column-gap: 0.5rem;
15775
15897
  column-gap: 0.5rem;
15776
15898
  cursor: pointer;
15777
- grid-template-columns: 0 1fr -webkit-max-content;
15778
- grid-template-columns: 0 1fr max-content;
15899
+ grid-template-columns: 1fr -webkit-max-content;
15900
+ grid-template-columns: 1fr max-content;
15779
15901
  padding-inline: 1rem;
15780
15902
  -webkit-transition: background-color 70ms cubic-bezier(0.2, 0, 0.38, 0.9);
15781
15903
  transition: background-color 70ms cubic-bezier(0.2, 0, 0.38, 0.9);
@@ -15811,6 +15933,10 @@ optgroup.cds--select-optgroup:disabled,
15811
15933
  }
15812
15934
 
15813
15935
  .cds--menu-item__icon {
15936
+ display: none;
15937
+ }
15938
+
15939
+ .cds--menu--with-icons .cds--menu-item__icon {
15814
15940
  display: -webkit-box;
15815
15941
  display: -ms-flexbox;
15816
15942
  display: flex;
@@ -16229,12 +16355,24 @@ optgroup.cds--select-optgroup:disabled,
16229
16355
  }
16230
16356
 
16231
16357
  /* stylelint-enable */
16232
- .cds--multi-select .cds--tag {
16233
- min-width: auto;
16234
- margin: 0 0.5rem 0 0;
16358
+ .cds--multi-select .cds--list-box__field--wrapper {
16359
+ display: -webkit-inline-box;
16360
+ display: -ms-inline-flexbox;
16361
+ display: inline-flex;
16362
+ width: 100%;
16363
+ height: calc(100% + 1px);
16364
+ -webkit-box-align: center;
16365
+ -ms-flex-align: center;
16366
+ align-items: center;
16367
+ }
16368
+
16369
+ .cds--multi-select .cds--list-box__field:focus {
16370
+ outline: 2px solid transparent;
16371
+ outline-offset: -2px;
16235
16372
  }
16236
16373
 
16237
- .cds--multi-select--filterable .cds--tag {
16374
+ .cds--multi-select .cds--tag {
16375
+ min-width: auto;
16238
16376
  margin: 0 0.5rem 0 1rem;
16239
16377
  }
16240
16378
 
@@ -16285,17 +16423,20 @@ optgroup.cds--select-optgroup:disabled,
16285
16423
  outline: none;
16286
16424
  }
16287
16425
 
16288
- .cds--multi-select--filterable--input-focused {
16426
+ .cds--multi-select--filterable--input-focused,
16427
+ .cds--multi-select .cds--list-box__field--wrapper--input-focused {
16289
16428
  outline: 2px solid var(--cds-focus, #0f62fe);
16290
16429
  outline-offset: -2px;
16291
16430
  }
16292
16431
  @media screen and (prefers-contrast) {
16293
- .cds--multi-select--filterable--input-focused {
16432
+ .cds--multi-select--filterable--input-focused,
16433
+ .cds--multi-select .cds--list-box__field--wrapper--input-focused {
16294
16434
  outline-style: dotted;
16295
16435
  }
16296
16436
  }
16297
16437
 
16298
- .cds--multi-select--filterable.cds--multi-select--selected .cds--text-input {
16438
+ .cds--multi-select--filterable.cds--multi-select--selected .cds--text-input,
16439
+ .cds--multi-select.cds--multi-select--selected .cds--list-box__field {
16299
16440
  padding-left: 0;
16300
16441
  }
16301
16442
 
@@ -18925,6 +19066,84 @@ span.cds--pagination__text.cds--pagination__items-count {
18925
19066
  transform: translate(calc(-1 * var(--cds-popover-offset, 0rem) + 100%), -50%);
18926
19067
  }
18927
19068
 
19069
+ .cds--popover--tab-tip .cds--popover-content {
19070
+ border-radius: 0;
19071
+ }
19072
+
19073
+ .cds--popover--tab-tip__button {
19074
+ -webkit-box-sizing: border-box;
19075
+ box-sizing: border-box;
19076
+ padding: 0;
19077
+ border: 0;
19078
+ margin: 0;
19079
+ font-family: inherit;
19080
+ font-size: 100%;
19081
+ vertical-align: baseline;
19082
+ display: inline-block;
19083
+ padding: 0;
19084
+ border: 0;
19085
+ -webkit-appearance: none;
19086
+ -moz-appearance: none;
19087
+ appearance: none;
19088
+ background: none;
19089
+ cursor: pointer;
19090
+ text-align: start;
19091
+ width: 100%;
19092
+ position: relative;
19093
+ display: -webkit-inline-box;
19094
+ display: -ms-inline-flexbox;
19095
+ display: inline-flex;
19096
+ width: 2rem;
19097
+ height: 2rem;
19098
+ -webkit-box-align: center;
19099
+ -ms-flex-align: center;
19100
+ align-items: center;
19101
+ -webkit-box-pack: center;
19102
+ -ms-flex-pack: center;
19103
+ justify-content: center;
19104
+ }
19105
+ .cds--popover--tab-tip__button *,
19106
+ .cds--popover--tab-tip__button *::before,
19107
+ .cds--popover--tab-tip__button *::after {
19108
+ -webkit-box-sizing: inherit;
19109
+ box-sizing: inherit;
19110
+ }
19111
+ .cds--popover--tab-tip__button::-moz-focus-inner {
19112
+ border: 0;
19113
+ }
19114
+ .cds--popover--tab-tip__button:focus {
19115
+ outline: 2px solid var(--cds-focus, #0f62fe);
19116
+ outline-offset: -2px;
19117
+ }
19118
+ @media screen and (prefers-contrast) {
19119
+ .cds--popover--tab-tip__button:focus {
19120
+ outline-style: dotted;
19121
+ }
19122
+ }
19123
+ .cds--popover--tab-tip__button:hover {
19124
+ background-color: var(--cds-layer-hover);
19125
+ }
19126
+
19127
+ .cds--popover--tab-tip.cds--popover--open .cds--popover--tab-tip__button {
19128
+ background: var(--cds-layer);
19129
+ -webkit-box-shadow: 0 2px 2px rgba(0, 0, 0, 0.2);
19130
+ box-shadow: 0 2px 2px rgba(0, 0, 0, 0.2);
19131
+ }
19132
+
19133
+ .cds--popover--tab-tip.cds--popover--open .cds--popover--tab-tip__button:not(:focus)::after {
19134
+ position: absolute;
19135
+ z-index: 6001;
19136
+ bottom: 0;
19137
+ width: 100%;
19138
+ height: 2px;
19139
+ background: var(--cds-layer);
19140
+ content: "";
19141
+ }
19142
+
19143
+ .cds--popover--tab-tip__button svg {
19144
+ fill: var(--cds-icon-primary, #161616);
19145
+ }
19146
+
18928
19147
  .cds--progress-bar__label {
18929
19148
  font-size: var(--cds-body-compact-01-font-size, 0.875rem);
18930
19149
  font-weight: var(--cds-body-compact-01-font-weight, 400);
@@ -20748,7 +20967,6 @@ span.cds--pagination__text.cds--pagination__items-count {
20748
20967
  line-height: var(--cds-body-compact-01-line-height, 1.28572);
20749
20968
  letter-spacing: var(--cds-body-compact-01-letter-spacing, 0.16px);
20750
20969
  overflow: hidden;
20751
- max-width: 10rem;
20752
20970
  padding: 0.75rem 1rem 0.5rem;
20753
20971
  border-bottom: 2px solid var(--cds-border-subtle);
20754
20972
  color: var(--cds-text-secondary, #525252);
@@ -21075,6 +21293,15 @@ span.cds--pagination__text.cds--pagination__items-count {
21075
21293
  fill: var(--cds-support-error, #da1e28);
21076
21294
  }
21077
21295
 
21296
+ .cds--text-area__invalid-icon--warning {
21297
+ fill: var(--cds-support-warning, #f1c21b);
21298
+ }
21299
+
21300
+ .cds--text-area__invalid-icon--warning path[fill] {
21301
+ fill: #000000;
21302
+ opacity: 1;
21303
+ }
21304
+
21078
21305
  .cds--text-area__counter-alert {
21079
21306
  position: absolute;
21080
21307
  overflow: hidden;