@carbon/styles 1.58.0-rc.0 → 1.59.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 CHANGED
@@ -2868,6 +2868,7 @@ em {
2868
2868
  --cds-link-inverse: #78a9ff;
2869
2869
  --cds-link-inverse-active: #f4f4f4;
2870
2870
  --cds-link-inverse-hover: #a6c8ff;
2871
+ --cds-link-inverse-visited: #be95ff;
2871
2872
  --cds-link-primary: #0f62fe;
2872
2873
  --cds-link-primary-hover: #0043ce;
2873
2874
  --cds-link-secondary: #0043ce;
@@ -3090,6 +3091,7 @@ em {
3090
3091
  --cds-link-inverse: #78a9ff;
3091
3092
  --cds-link-inverse-active: #f4f4f4;
3092
3093
  --cds-link-inverse-hover: #a6c8ff;
3094
+ --cds-link-inverse-visited: #be95ff;
3093
3095
  --cds-link-primary: #0f62fe;
3094
3096
  --cds-link-primary-hover: #0043ce;
3095
3097
  --cds-link-secondary: #0043ce;
@@ -3312,6 +3314,7 @@ em {
3312
3314
  --cds-link-inverse: #0f62fe;
3313
3315
  --cds-link-inverse-active: #161616;
3314
3316
  --cds-link-inverse-hover: #0043ce;
3317
+ --cds-link-inverse-visited: #8a3ffc;
3315
3318
  --cds-link-primary: #78a9ff;
3316
3319
  --cds-link-primary-hover: #a6c8ff;
3317
3320
  --cds-link-secondary: #a6c8ff;
@@ -3533,6 +3536,7 @@ em {
3533
3536
  --cds-link-inverse: #0f62fe;
3534
3537
  --cds-link-inverse-active: #161616;
3535
3538
  --cds-link-inverse-hover: #0043ce;
3539
+ --cds-link-inverse-visited: #8a3ffc;
3536
3540
  --cds-link-primary: #78a9ff;
3537
3541
  --cds-link-primary-hover: #a6c8ff;
3538
3542
  --cds-link-secondary: #a6c8ff;
@@ -3642,24 +3646,6 @@ em {
3642
3646
  --cds-tag-hover-warm-gray: #696363;
3643
3647
  }
3644
3648
 
3645
- .cds--accordion--flush .cds--accordion__title {
3646
- margin-inline-start: 0;
3647
- }
3648
-
3649
- .cds--accordion--flush .cds--accordion__arrow {
3650
- margin-inline-end: 0;
3651
- }
3652
-
3653
- .cds--accordion--flush .cds--accordion__content {
3654
- padding-inline-start: 0;
3655
- }
3656
-
3657
- .cds--accordion--flush:not(.cds--skeleton) .cds--accordion__heading:hover::before,
3658
- .cds--accordion--flush:not(.cds--skeleton) .cds--accordion__heading:focus::before {
3659
- inline-size: calc(100% + 32px);
3660
- inset-inline-start: -1rem;
3661
- }
3662
-
3663
3649
  .cds--accordion {
3664
3650
  --cds-layout-size-height-local: clamp(max(var(--cds-layout-size-height-min), var(--cds-layout-size-height-sm)), var(--cds-layout-size-height, var(--cds-layout-size-height-md)), min(var(--cds-layout-size-height-max), var(--cds-layout-size-height-lg)));
3665
3651
  --cds-layout-density-padding-inline-local: clamp(var(--cds-layout-density-padding-inline-min), var(--cds-layout-density-padding-inline, var(--cds-layout-density-padding-inline-normal)), var(--cds-layout-density-padding-inline-max));
@@ -3683,11 +3669,19 @@ em {
3683
3669
  display: list-item;
3684
3670
  overflow: visible;
3685
3671
  border-block-start: 1px solid var(--cds-border-subtle);
3672
+ transition: border-color cubic-bezier(0.2, 0, 0.38, 0.9) 110ms;
3686
3673
  }
3687
3674
  .cds--accordion__item:last-child {
3688
3675
  border-block-end: 1px solid var(--cds-border-subtle);
3689
3676
  }
3690
3677
 
3678
+ .cds--accordion__item:not(.cds--accordion__item--active):hover, .cds--accordion__item:not(.cds--accordion__item--active):hover + .cds--accordion__item {
3679
+ border-block-start-color: var(--cds-layer-hover);
3680
+ }
3681
+ .cds--accordion__item:not(.cds--accordion__item--active):last-child:hover {
3682
+ border-block-end-color: var(--cds-layer-hover);
3683
+ }
3684
+
3691
3685
  .cds--accordion__heading {
3692
3686
  box-sizing: border-box;
3693
3687
  padding: 0;
@@ -3729,8 +3723,11 @@ em {
3729
3723
  }
3730
3724
  .cds--accordion__heading:hover {
3731
3725
  background-color: var(--cds-layer-hover);
3726
+ outline: none;
3732
3727
  }
3733
3728
  .cds--accordion__heading:focus {
3729
+ position: relative;
3730
+ z-index: 2;
3734
3731
  box-shadow: 0 -1px 0 0 var(--cds-focus, #0f62fe), inset 0 1px 0 0 var(--cds-focus, #0f62fe), inset 2px 0 0 0 var(--cds-focus, #0f62fe), 0 1px 0 0 var(--cds-focus, #0f62fe), inset 0 -1px 0 0 var(--cds-focus, #0f62fe), inset -2px 0 0 0 var(--cds-focus, #0f62fe);
3735
3732
  outline: none;
3736
3733
  }
@@ -3847,6 +3844,65 @@ li.cds--accordion__item--disabled:last-of-type {
3847
3844
  transform: rotate(-90deg) /*rtl:ignore*/;
3848
3845
  }
3849
3846
 
3847
+ .cds--accordion--flush .cds--accordion__item {
3848
+ position: relative;
3849
+ border-color: transparent;
3850
+ }
3851
+ .cds--accordion--flush .cds--accordion__item:last-child, .cds--accordion--flush .cds--accordion__item:hover, .cds--accordion--flush .cds--accordion__item:last-child:hover, .cds--accordion--flush .cds--accordion__item:hover + .cds--accordion__item {
3852
+ border-color: transparent;
3853
+ }
3854
+ .cds--accordion--flush .cds--accordion__item::before, .cds--accordion--flush .cds--accordion__item::after {
3855
+ position: absolute;
3856
+ display: block;
3857
+ block-size: 1px;
3858
+ content: "";
3859
+ inline-size: calc(100% - 1rem - 1rem);
3860
+ margin-inline-start: 1rem;
3861
+ transition: background cubic-bezier(0.2, 0, 0.38, 0.9) 110ms;
3862
+ }
3863
+ @media screen and (prefers-reduced-motion: reduce) {
3864
+ .cds--accordion--flush .cds--accordion__item::before, .cds--accordion--flush .cds--accordion__item::after {
3865
+ transition: none;
3866
+ }
3867
+ }
3868
+ .cds--accordion--flush .cds--accordion__item::before {
3869
+ background: var(--cds-border-subtle);
3870
+ inset-block-start: -1px;
3871
+ }
3872
+ .cds--accordion--flush .cds--accordion__item:last-child::after {
3873
+ background: var(--cds-border-subtle);
3874
+ inset-block-end: -1px;
3875
+ }
3876
+
3877
+ .cds--accordion--flush .cds--accordion__heading:hover {
3878
+ position: relative;
3879
+ z-index: 1;
3880
+ }
3881
+ .cds--accordion--flush .cds--accordion__heading:hover::before, .cds--accordion--flush .cds--accordion__heading:hover::after {
3882
+ position: absolute;
3883
+ display: block;
3884
+ background: var(--cds-layer-hover);
3885
+ block-size: 1px;
3886
+ content: "";
3887
+ inline-size: 100%;
3888
+ inset-inline-start: 0;
3889
+ transition: background cubic-bezier(0.2, 0, 0.38, 0.9) 110ms;
3890
+ }
3891
+ @media screen and (prefers-reduced-motion: reduce) {
3892
+ .cds--accordion--flush .cds--accordion__heading:hover::before, .cds--accordion--flush .cds--accordion__heading:hover::after {
3893
+ transition: none;
3894
+ }
3895
+ }
3896
+ .cds--accordion--flush .cds--accordion__heading:hover::before {
3897
+ inset-block-start: -1px;
3898
+ }
3899
+ .cds--accordion--flush .cds--accordion__heading:hover::after {
3900
+ inset-block-end: -1px;
3901
+ }
3902
+ .cds--accordion--flush .cds--accordion__heading:hover:focus::after, .cds--accordion--flush .cds--accordion__heading:hover:focus::before {
3903
+ background: none;
3904
+ }
3905
+
3850
3906
  .cds--accordion.cds--skeleton .cds--accordion__heading,
3851
3907
  .cds--accordion.cds--skeleton .cds--accordion__button {
3852
3908
  cursor: default;
@@ -3863,7 +3919,8 @@ li.cds--accordion__item--disabled:last-of-type {
3863
3919
  outline: none;
3864
3920
  }
3865
3921
 
3866
- .cds--accordion.cds--skeleton .cds--accordion__heading:hover::before {
3922
+ .cds--accordion.cds--skeleton .cds--accordion__heading:hover::before,
3923
+ .cds--accordion.cds--skeleton .cds--accordion__heading:hover {
3867
3924
  background-color: transparent;
3868
3925
  }
3869
3926
 
@@ -3881,6 +3938,10 @@ li.cds--accordion__item--disabled:last-of-type {
3881
3938
  margin-block-end: 0;
3882
3939
  }
3883
3940
 
3941
+ .cds--accordion.cds--skeleton .cds--accordion__title {
3942
+ margin-inline-start: 1rem;
3943
+ }
3944
+
3884
3945
  @media screen and (-ms-high-contrast: active), (forced-colors: active) {
3885
3946
  .cds--accordion__arrow,
3886
3947
  .cds--accordion__item--active .cds--accordion__arrow {
@@ -6444,6 +6505,26 @@ fieldset[disabled] .cds--form__helper-text {
6444
6505
  margin-block-start: -0.0625rem;
6445
6506
  }
6446
6507
 
6508
+ .cds--checkbox-group--horizontal {
6509
+ position: relative;
6510
+ display: flex;
6511
+ flex-flow: row wrap;
6512
+ justify-content: flex-start;
6513
+ }
6514
+ .cds--checkbox-group--horizontal .cds--form-item {
6515
+ flex: none;
6516
+ margin-block-end: 0;
6517
+ }
6518
+ .cds--checkbox-group--horizontal .cds--form-item:not(:last-of-type) {
6519
+ margin-inline-end: 1rem;
6520
+ }
6521
+ .cds--checkbox-group--horizontal .cds--checkbox-label-text {
6522
+ padding-inline-start: 0.5rem;
6523
+ }
6524
+ .cds--checkbox-group--horizontal .cds--label + .cds--form-item.cds--checkbox-wrapper {
6525
+ margin-block-start: 0;
6526
+ }
6527
+
6447
6528
  .cds--copy-btn {
6448
6529
  position: relative;
6449
6530
  display: flex;
@@ -7827,7 +7908,7 @@ fieldset[disabled] .cds--form__helper-text {
7827
7908
  border-radius: 1rem;
7828
7909
  margin: 0.25rem;
7829
7910
  cursor: default;
7830
- max-inline-size: 100%;
7911
+ max-inline-size: 13rem;
7831
7912
  min-block-size: var(--cds-layout-size-height-local);
7832
7913
  min-inline-size: 2rem;
7833
7914
  padding-inline: 0.5rem;
@@ -7867,28 +7948,28 @@ fieldset[disabled] .cds--form__helper-text {
7867
7948
  .cds--tag.cds--tag--lg:has(.cds--tag__custom-icon) {
7868
7949
  padding-inline-start: 0.5rem;
7869
7950
  }
7951
+ .cds--tag:not(.cds--tag--selectable) {
7952
+ border: 0;
7953
+ }
7870
7954
  .cds--tag:not(:first-child) {
7871
7955
  margin-inline-start: 0;
7872
7956
  }
7873
7957
 
7958
+ .cds--tag--operational > span,
7959
+ .cds--tag--selectable > span,
7874
7960
  .cds--tag__label {
7961
+ display: block;
7875
7962
  overflow: hidden;
7876
- max-inline-size: 100%;
7877
7963
  text-overflow: ellipsis;
7878
7964
  white-space: nowrap;
7879
7965
  }
7880
7966
 
7881
7967
  .cds--tag--interactive:focus {
7882
- box-shadow: inset 0 0 0 1px var(--cds-focus, #0f62fe);
7883
- outline: none;
7884
- }
7885
-
7886
- .cds--tag--interactive:hover {
7887
- cursor: pointer;
7968
+ outline: 2px solid var(--cds-focus, #0f62fe);
7969
+ outline-offset: 1px;
7888
7970
  }
7889
7971
 
7890
7972
  .cds--tag--filter {
7891
- cursor: pointer;
7892
7973
  padding-block-end: 0;
7893
7974
  padding-block-start: 0;
7894
7975
  padding-inline-end: 0;
@@ -7897,11 +7978,6 @@ fieldset[disabled] .cds--form__helper-text {
7897
7978
  outline: none;
7898
7979
  }
7899
7980
 
7900
- .cds--interactive--tag-children {
7901
- display: inline-flex;
7902
- place-items: center;
7903
- }
7904
-
7905
7981
  .cds--tag--selectable {
7906
7982
  border: 1px solid var(--cds-border-inverse, #161616);
7907
7983
  background-color: var(--cds-layer);
@@ -8094,19 +8170,19 @@ fieldset[disabled] .cds--form__helper-text {
8094
8170
  background-color: var(--cds-background-inverse-hover, #474747);
8095
8171
  }
8096
8172
 
8097
- .cds--tag--outline:not(.cds--tag--operational) {
8173
+ .cds--tag--outline:not(.cds--tag--operational):not(span):not([disabled]) {
8098
8174
  background-color: var(--cds-background, #ffffff);
8099
8175
  color: var(--cds-text-primary, #161616);
8100
8176
  outline: 1px solid var(--cds-background-inverse, #393939);
8101
8177
  outline-offset: -1px;
8102
8178
  }
8103
- .cds--tag--outline:not(.cds--tag--operational).cds--tag--operational {
8179
+ .cds--tag--outline:not(.cds--tag--operational):not(span):not([disabled]).cds--tag--operational {
8104
8180
  border: 1px solid var(--cds-background, #ffffff);
8105
8181
  }
8106
- .cds--tag--outline:not(.cds--tag--operational).cds--tag--operational:hover {
8182
+ .cds--tag--outline:not(.cds--tag--operational):not(span):not([disabled]).cds--tag--operational:hover {
8107
8183
  background-color: var(--cds-layer-hover);
8108
8184
  }
8109
- .cds--tag--outline:not(.cds--tag--operational) .cds--tag__close-icon:hover {
8185
+ .cds--tag--outline:not(.cds--tag--operational):not(span):not([disabled]) .cds--tag__close-icon:hover {
8110
8186
  background-color: var(--cds-layer-hover);
8111
8187
  }
8112
8188
 
@@ -8303,7 +8379,47 @@ fieldset[disabled] .cds--form__helper-text {
8303
8379
  }
8304
8380
  }
8305
8381
 
8382
+ .cds--tag-label-tooltip {
8383
+ max-inline-size: -webkit-fill-available;
8384
+ }
8385
+
8386
+ .cds--tag__custom-icon + .cds--tag-label-tooltip {
8387
+ max-inline-size: 11rem;
8388
+ }
8389
+
8390
+ .cds--tag--filter .cds--tag__custom-icon + .cds--tag-label-tooltip {
8391
+ max-inline-size: 9.875rem;
8392
+ }
8393
+
8306
8394
  /* stylelint-enable */
8395
+ .cds--interactive--tag-children {
8396
+ display: inline-flex;
8397
+ max-inline-size: 12.5rem;
8398
+ place-items: center;
8399
+ }
8400
+
8401
+ .cds--tag--filter .cds--tag__custom-icon + span > .cds--interactive--tag-children {
8402
+ max-inline-size: 11.5rem;
8403
+ }
8404
+
8405
+ .cds--tag .cds--definition-term {
8406
+ border-block-end: none;
8407
+ cursor: default;
8408
+ max-inline-size: 12rem;
8409
+ }
8410
+
8411
+ .cds--tag .cds--tag__custom-icon + span > .cds--definition-term {
8412
+ max-inline-size: 11rem;
8413
+ }
8414
+
8415
+ .cds--tag > .cds--popover-container {
8416
+ display: flex;
8417
+ }
8418
+
8419
+ .cds--toggletip-button:has(.cds--tag--operational.cds--tag--disabled) {
8420
+ pointer-events: none;
8421
+ }
8422
+
8307
8423
  .cds--list-box__wrapper--inline {
8308
8424
  display: inline-grid;
8309
8425
  align-items: center;
@@ -9402,17 +9518,11 @@ fieldset[disabled] .cds--form__helper-text {
9402
9518
  outline-style: dotted;
9403
9519
  }
9404
9520
  }
9405
- .cds--menu-item svg {
9406
- color: var(--cds-icon-secondary, #525252);
9407
- }
9408
9521
 
9409
9522
  .cds--menu-item:hover {
9410
9523
  background-color: var(--cds-layer-hover);
9411
9524
  color: var(--cds-text-primary, #161616);
9412
9525
  }
9413
- .cds--menu-item:hover svg {
9414
- color: var(--cds-icon-primary, #161616);
9415
- }
9416
9526
 
9417
9527
  .cds--menu--xs .cds--menu-item {
9418
9528
  block-size: 1.5rem;
@@ -17438,6 +17548,22 @@ optgroup.cds--select-optgroup:disabled,
17438
17548
  inset-inline-end: 1rem;
17439
17549
  }
17440
17550
 
17551
+ .cds--text-input--fluid .cds--toggle-password-tooltip {
17552
+ outline: 2px solid transparent;
17553
+ outline-offset: -2px;
17554
+ position: absolute;
17555
+ block-size: 4rem;
17556
+ cursor: pointer;
17557
+ inline-size: 3rem;
17558
+ inset-block-start: 0;
17559
+ inset-inline-end: 0;
17560
+ transition: outline 70ms cubic-bezier(0.2, 0, 0.38, 0.9);
17561
+ }
17562
+
17563
+ .cds--text-input--fluid .cds--toggle-password-tooltip .cds--popover {
17564
+ inset-inline-start: 0;
17565
+ }
17566
+
17441
17567
  .cds--text-input--fluid .cds--btn.cds--text-input--password__visibility__toggle.cds--tooltip__trigger {
17442
17568
  block-size: 2rem;
17443
17569
  inline-size: 2rem;
@@ -21218,8 +21344,8 @@ span.cds--pagination__text.cds--pagination__items-count {
21218
21344
  .cds--toggletip-content {
21219
21345
  --cds-button-focus-color: var(--cds-focus-inverse, #ffffff);
21220
21346
  --cds-link-text-color: var(--cds-link-inverse, #78a9ff);
21221
- --cds-link-hover-text-color: var(--cds-link-inverse, #78a9ff);
21222
- --cds-link-visited-text-color: var(--cds-link-inverse, #78a9ff);
21347
+ --cds-link-hover-text-color: var(--cds-link-inverse-hover, #a6c8ff);
21348
+ --cds-link-visited-text-color: var(--cds-link-inverse-visited, #be95ff);
21223
21349
  --cds-link-focus-text-color: var(--cds-focus-inverse, #ffffff);
21224
21350
  font-size: var(--cds-body-01-font-size, 0.875rem);
21225
21351
  font-weight: var(--cds-body-01-font-weight, 400);
@@ -22976,6 +23102,7 @@ span.cds--pagination__text.cds--pagination__items-count {
22976
23102
  }
22977
23103
 
22978
23104
  .cds--tile--expandable.cds--tile--expandable--interactive {
23105
+ border: none;
22979
23106
  cursor: default;
22980
23107
  transition: max-height 150ms cubic-bezier(0.2, 0, 0.38, 0.9);
22981
23108
  }
@@ -23098,6 +23225,15 @@ span.cds--pagination__text.cds--pagination__items-count {
23098
23225
  inset-inline-end: 2.5rem;
23099
23226
  }
23100
23227
 
23228
+ .cds--tile.cds--tile--selectable.cds--tile--radio > .cds--slug {
23229
+ inset-inline-end: 1rem;
23230
+ transition: inset-inline-end 110ms cubic-bezier(0.2, 0, 0.38, 0.9);
23231
+ }
23232
+
23233
+ .cds--tile.cds--tile--selectable.cds--tile--radio.cds--tile--is-selected > .cds--slug {
23234
+ inset-inline-end: 2.5rem;
23235
+ }
23236
+
23101
23237
  .cds--tile.cds--tile--clickable > .cds--slug {
23102
23238
  pointer-events: none;
23103
23239
  }
@@ -23138,7 +23274,8 @@ span.cds--pagination__text.cds--pagination__items-count {
23138
23274
  }
23139
23275
 
23140
23276
  .cds--tile--slug.cds--tile--selectable:focus,
23141
- .cds--tile--slug.cds--tile--clickable:focus {
23277
+ .cds--tile--slug.cds--tile--clickable:focus,
23278
+ .cds--tile-input:focus + .cds--tile--slug.cds--tile {
23142
23279
  outline-offset: -1px;
23143
23280
  }
23144
23281
 
@@ -23162,10 +23299,20 @@ span.cds--pagination__text.cds--pagination__items-count {
23162
23299
  .cds--tile--slug.cds--tile--selectable .cds--tile-content,
23163
23300
  .cds--tile--slug.cds--tile--clickable .cds--tile-content {
23164
23301
  position: relative;
23165
- z-index: 1;
23166
23302
  cursor: pointer;
23167
23303
  }
23168
23304
 
23305
+ .cds--tile--slug.cds--tile--selectable .cds--tile-content,
23306
+ .cds--tile--slug.cds--tile--clickable .cds--tile-content,
23307
+ .cds--tile--slug.cds--tile--selectable > .cds--tile__checkmark,
23308
+ .cds--tile--slug.cds--tile--is-selected .cds--slug {
23309
+ z-index: 1;
23310
+ }
23311
+
23312
+ .cds--tile--slug.cds--tile--selectable .cds--slug:has(> .cds--popover--open) {
23313
+ z-index: 2;
23314
+ }
23315
+
23169
23316
  .cds--tile--slug.cds--tile--selectable > .cds--slug,
23170
23317
  .cds--tile--slug.cds--tile--selectable > .cds--tile__checkmark {
23171
23318
  z-index: 1;