@carbon/styles 1.23.0-rc.0 → 1.23.1

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
@@ -15730,6 +15730,7 @@ optgroup.cds--select-optgroup:disabled,
15730
15730
  max-width: 18rem;
15731
15731
  padding: 0.25rem 0;
15732
15732
  background-color: var(--cds-layer);
15733
+ opacity: 0;
15733
15734
  visibility: hidden;
15734
15735
  }
15735
15736
 
@@ -15745,124 +15746,105 @@ optgroup.cds--select-optgroup:disabled,
15745
15746
  }
15746
15747
  }
15747
15748
 
15748
- .cds--menu--invisible {
15749
- opacity: 0;
15750
- pointer-events: none;
15749
+ .cds--menu:not(.cds--menu--open) .cds--menu--open {
15750
+ visibility: hidden;
15751
15751
  }
15752
15752
 
15753
- .cds--menu-option {
15754
- position: relative;
15755
- display: list-item;
15753
+ .cds--menu--shown {
15754
+ opacity: 1;
15755
+ }
15756
+
15757
+ .cds--menu-item {
15758
+ font-size: var(--cds-body-short-01-font-size, 0.875rem);
15759
+ font-weight: var(--cds-body-short-01-font-weight, 400);
15760
+ line-height: var(--cds-body-short-01-line-height, 1.28572);
15761
+ letter-spacing: var(--cds-body-short-01-letter-spacing, 0.16px);
15762
+ display: grid;
15756
15763
  height: 2rem;
15757
- background-color: var(--cds-layer);
15764
+ -webkit-box-align: center;
15765
+ -ms-flex-align: center;
15766
+ align-items: center;
15758
15767
  color: var(--cds-text-primary, #161616);
15768
+ -webkit-column-gap: 0.5rem;
15769
+ -moz-column-gap: 0.5rem;
15770
+ column-gap: 0.5rem;
15759
15771
  cursor: pointer;
15772
+ grid-template-columns: 0 1fr -webkit-max-content;
15773
+ grid-template-columns: 0 1fr max-content;
15774
+ padding-inline: 1rem;
15760
15775
  -webkit-transition: background-color 70ms cubic-bezier(0.2, 0, 0.38, 0.9);
15761
15776
  transition: background-color 70ms cubic-bezier(0.2, 0, 0.38, 0.9);
15762
15777
  }
15763
- .cds--menu-option:focus {
15778
+ .cds--menu-item:focus {
15764
15779
  outline: 2px solid var(--cds-focus, #0f62fe);
15765
15780
  outline-offset: -2px;
15766
15781
  }
15767
15782
  @media screen and (prefers-contrast) {
15768
- .cds--menu-option:focus {
15783
+ .cds--menu-item:focus {
15769
15784
  outline-style: dotted;
15770
15785
  }
15771
15786
  }
15772
15787
 
15773
- .cds--menu-option--active,
15774
- .cds--menu-option:hover {
15788
+ .cds--menu-item:hover {
15775
15789
  background-color: var(--cds-layer-hover);
15776
15790
  }
15777
15791
 
15778
- .cds--menu-option--danger:hover,
15779
- .cds--menu-option--danger:focus {
15780
- background-color: var(--cds-button-danger-primary, #da1e28);
15781
- color: var(--cds-text-on-color, #ffffff);
15782
- }
15783
-
15784
- .cds--menu-option > .cds--menu {
15785
- margin-top: calc(0.25rem * -1);
15792
+ .cds--menu--xs .cds--menu-item {
15793
+ height: 1.5rem;
15786
15794
  }
15787
15795
 
15788
- .cds--menu-option__content {
15789
- display: -webkit-box;
15790
- display: -ms-flexbox;
15791
- display: flex;
15792
- height: 100%;
15793
- -webkit-box-align: center;
15794
- -ms-flex-align: center;
15795
- align-items: center;
15796
- -webkit-box-pack: justify;
15797
- -ms-flex-pack: justify;
15798
- justify-content: space-between;
15799
- padding: 0 1rem;
15796
+ .cds--menu--sm .cds--menu-item {
15797
+ height: 2rem;
15800
15798
  }
15801
15799
 
15802
- .cds--menu-option__content--disabled {
15803
- background-color: var(--cds-layer);
15804
- color: var(--cds-text-disabled, rgba(22, 22, 22, 0.25));
15805
- cursor: not-allowed;
15800
+ .cds--menu--md .cds--menu-item {
15801
+ height: 2.5rem;
15806
15802
  }
15807
15803
 
15808
- .cds--menu-option__content--disabled .cds--menu-option__label,
15809
- .cds--menu-option__content--disabled .cds--menu-option__info,
15810
- .cds--menu-option__content--disabled .cds--menu-option__icon {
15811
- color: var(--cds-text-disabled, rgba(22, 22, 22, 0.25));
15804
+ .cds--menu--lg .cds--menu-item {
15805
+ height: 3rem;
15812
15806
  }
15813
15807
 
15814
- .cds--menu-option__content--indented .cds--menu-option__label {
15815
- margin-left: 1rem;
15808
+ .cds--menu-item__icon {
15809
+ display: -webkit-box;
15810
+ display: -ms-flexbox;
15811
+ display: flex;
15816
15812
  }
15817
15813
 
15818
- .cds--menu-option__label {
15819
- font-size: var(--cds-body-compact-01-font-size, 0.875rem);
15820
- font-weight: var(--cds-body-compact-01-font-weight, 400);
15821
- line-height: var(--cds-body-compact-01-line-height, 1.28572);
15822
- letter-spacing: var(--cds-body-compact-01-letter-spacing, 0.16px);
15814
+ .cds--menu-item__label {
15823
15815
  overflow: hidden;
15824
- -webkit-box-flex: 1;
15825
- -ms-flex-positive: 1;
15826
- flex-grow: 1;
15827
- padding: 0.25rem 0;
15828
- text-align: start;
15829
15816
  text-overflow: ellipsis;
15830
15817
  white-space: nowrap;
15831
15818
  }
15832
15819
 
15833
- .cds--menu-option__info {
15834
- display: -webkit-inline-box;
15835
- display: -ms-inline-flexbox;
15836
- display: inline-flex;
15837
- margin-left: 1rem;
15820
+ .cds--menu--with-icons > .cds--menu-item,
15821
+ .cds--menu--with-icons > .cds--menu-item-group > ul > .cds--menu-item,
15822
+ .cds--menu--with-icons > .cds--menu-item-radio-group > ul > .cds--menu-item {
15823
+ grid-template-columns: 1rem 1fr -webkit-max-content;
15824
+ grid-template-columns: 1rem 1fr max-content;
15838
15825
  }
15839
15826
 
15840
- .cds--menu-option__icon {
15841
- display: -webkit-box;
15842
- display: -ms-flexbox;
15843
- display: flex;
15844
- width: 1rem;
15845
- height: 1rem;
15846
- -webkit-box-align: center;
15847
- -ms-flex-align: center;
15848
- align-items: center;
15849
- margin-right: 0.5rem;
15827
+ .cds--menu-item--disabled {
15828
+ color: var(--cds-text-disabled, rgba(22, 22, 22, 0.25));
15829
+ cursor: not-allowed;
15850
15830
  }
15851
15831
 
15852
- .cds--menu-divider {
15853
- display: list-item;
15854
- width: 100%;
15855
- height: 1px;
15856
- margin: 0.25rem 0;
15857
- background-color: var(--cds-border-subtle);
15832
+ .cds--menu-item--disabled:hover {
15833
+ background-color: var(--cds-layer);
15858
15834
  }
15859
15835
 
15860
- .cds--menu--md .cds--menu-option {
15861
- height: 2.5rem;
15836
+ .cds--menu-item--danger:focus,
15837
+ .cds--menu-item--danger:hover {
15838
+ background-color: var(--cds-button-danger-primary, #da1e28);
15839
+ color: var(--cds-text-on-color, #ffffff);
15862
15840
  }
15863
15841
 
15864
- .cds--menu--lg .cds--menu-option {
15865
- height: 3rem;
15842
+ .cds--menu-item-divider {
15843
+ display: block;
15844
+ width: 100%;
15845
+ height: 0.0625rem;
15846
+ background-color: var(--cds-border-subtle);
15847
+ margin-block: 0.25rem;
15866
15848
  }
15867
15849
 
15868
15850
  .cds--modal {