@carbon/styles 1.4.0 → 1.5.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/README.md +3 -3
- package/css/styles.css +55 -36
- package/css/styles.min.css +1 -1
- package/package.json +10 -10
- package/scss/_breakpoint.scss +2 -2
- package/scss/_config.scss +5 -6
- package/scss/_feature-flags.scss +2 -1
- package/scss/_spacing.scss +4 -20
- package/scss/components/notification/_actionable-notification.scss +0 -2
- package/scss/components/notification/_toast-notification.scss +1 -1
- package/scss/components/notification/_tokens.scss +1 -1
- package/scss/components/structured-list/_structured-list.scss +4 -4
- package/scss/components/treeview/_treeview.scss +118 -118
- package/scss/fonts/README.md +4 -4
- package/scss/grid/_index.scss +2 -6
- package/scss/theme/_theme.scss +2 -2
- package/scss/type/_index.scss +3 -1
- package/scss/utilities/_convert.scss +1 -1
package/README.md
CHANGED
|
@@ -81,7 +81,7 @@ You can change the default theme of Carbon by doing the following:
|
|
|
81
81
|
```scss
|
|
82
82
|
@use '@carbon/styles/scss/themes';
|
|
83
83
|
@use '@carbon/styles/scss/theme' with (
|
|
84
|
-
$theme: themes.$g100
|
|
84
|
+
$theme: themes.$g100
|
|
85
85
|
);
|
|
86
86
|
```
|
|
87
87
|
|
|
@@ -95,7 +95,7 @@ extend the theme.
|
|
|
95
95
|
$theme: (
|
|
96
96
|
background: #e2e2e2,
|
|
97
97
|
text-primary: #ffffff,
|
|
98
|
-
)
|
|
98
|
+
)
|
|
99
99
|
);
|
|
100
100
|
```
|
|
101
101
|
|
|
@@ -106,7 +106,7 @@ extend the theme.
|
|
|
106
106
|
$fallback: themes.$g100,
|
|
107
107
|
$theme: (
|
|
108
108
|
custom-token-01: #000000,
|
|
109
|
-
)
|
|
109
|
+
)
|
|
110
110
|
);
|
|
111
111
|
```
|
|
112
112
|
|
package/css/styles.css
CHANGED
|
@@ -13845,7 +13845,6 @@ button.cds--dropdown-text:focus {
|
|
|
13845
13845
|
border-color: var(--cds-support-warning, #f1c21b);
|
|
13846
13846
|
}
|
|
13847
13847
|
|
|
13848
|
-
.cds--actionable-notification--warning .cds--inline-notification__icon,
|
|
13849
13848
|
.cds--actionable-notification--warning .cds--toast-notification__icon path[opacity="0"] {
|
|
13850
13849
|
fill: #000000;
|
|
13851
13850
|
opacity: 1;
|
|
@@ -19763,43 +19762,50 @@ span.cds--pagination__text.cds--pagination__items-count {
|
|
|
19763
19762
|
.cds--tree {
|
|
19764
19763
|
overflow: hidden;
|
|
19765
19764
|
}
|
|
19766
|
-
|
|
19765
|
+
|
|
19766
|
+
.cds--tree-node {
|
|
19767
19767
|
padding-left: 1rem;
|
|
19768
19768
|
background-color: var(--cds-layer-01, #f4f4f4);
|
|
19769
19769
|
color: var(--cds-text-secondary, #525252);
|
|
19770
19770
|
}
|
|
19771
|
-
.cds--tree
|
|
19771
|
+
.cds--tree-node:focus {
|
|
19772
19772
|
outline: none;
|
|
19773
19773
|
}
|
|
19774
|
-
|
|
19774
|
+
|
|
19775
|
+
.cds--tree-node:focus > .cds--tree-node__label {
|
|
19775
19776
|
outline: 2px solid var(--cds-focus, #0f62fe);
|
|
19776
19777
|
outline-offset: -2px;
|
|
19777
19778
|
}
|
|
19778
19779
|
@media screen and (prefers-contrast) {
|
|
19779
|
-
.cds--tree
|
|
19780
|
+
.cds--tree-node:focus > .cds--tree-node__label {
|
|
19780
19781
|
outline-style: dotted;
|
|
19781
19782
|
}
|
|
19782
19783
|
}
|
|
19783
|
-
|
|
19784
|
+
|
|
19785
|
+
.cds--tree-node--disabled:focus > .cds--tree-node__label {
|
|
19784
19786
|
outline: none;
|
|
19785
19787
|
}
|
|
19786
|
-
|
|
19787
|
-
.cds--tree
|
|
19788
|
-
.cds--tree
|
|
19788
|
+
|
|
19789
|
+
.cds--tree-node--disabled,
|
|
19790
|
+
.cds--tree-node--disabled .cds--tree-node__label:hover,
|
|
19791
|
+
.cds--tree-node--disabled .cds--tree-node__label:hover .cds--tree-node__label__details {
|
|
19789
19792
|
background-color: var(--cds-field-01, #f4f4f4);
|
|
19790
19793
|
color: var(--cds-text-disabled, rgba(22, 22, 22, 0.25));
|
|
19791
19794
|
}
|
|
19792
|
-
|
|
19793
|
-
.cds--tree
|
|
19794
|
-
.cds--tree
|
|
19795
|
-
.cds--tree
|
|
19795
|
+
|
|
19796
|
+
.cds--tree-node--disabled .cds--tree-parent-node__toggle-icon,
|
|
19797
|
+
.cds--tree-node--disabled .cds--tree-node__icon,
|
|
19798
|
+
.cds--tree-node--disabled .cds--tree-node__label:hover .cds--tree-parent-node__toggle-icon,
|
|
19799
|
+
.cds--tree-node--disabled .cds--tree-node__label:hover .cds--tree-node__icon {
|
|
19796
19800
|
fill: var(--cds-icon-disabled, rgba(22, 22, 22, 0.25));
|
|
19797
19801
|
}
|
|
19798
|
-
|
|
19799
|
-
.cds--tree
|
|
19802
|
+
|
|
19803
|
+
.cds--tree-node--disabled,
|
|
19804
|
+
.cds--tree-node--disabled .cds--tree-parent-node__toggle-icon:hover {
|
|
19800
19805
|
cursor: not-allowed;
|
|
19801
19806
|
}
|
|
19802
|
-
|
|
19807
|
+
|
|
19808
|
+
.cds--tree-node__label {
|
|
19803
19809
|
font-size: var(--cds-body-compact-01-font-size, 0.875rem);
|
|
19804
19810
|
font-weight: var(--cds-body-compact-01-font-weight, 400);
|
|
19805
19811
|
line-height: var(--cds-body-compact-01-line-height, 1.28572);
|
|
@@ -19815,27 +19821,32 @@ span.cds--pagination__text.cds--pagination__items-count {
|
|
|
19815
19821
|
-ms-flex-align: center;
|
|
19816
19822
|
align-items: center;
|
|
19817
19823
|
}
|
|
19818
|
-
.cds--tree
|
|
19824
|
+
.cds--tree-node__label:hover {
|
|
19819
19825
|
background-color: var(--cds-layer-hover-01, #e8e8e8);
|
|
19820
19826
|
color: var(--cds-text-primary, #161616);
|
|
19821
19827
|
}
|
|
19822
|
-
|
|
19828
|
+
|
|
19829
|
+
.cds--tree-node__label:hover .cds--tree-node__label__details {
|
|
19823
19830
|
color: var(--cds-text-primary, #161616);
|
|
19824
19831
|
}
|
|
19825
|
-
|
|
19826
|
-
.cds--tree
|
|
19832
|
+
|
|
19833
|
+
.cds--tree-node__label:hover .cds--tree-parent-node__toggle-icon,
|
|
19834
|
+
.cds--tree-node__label:hover .cds--tree-node__icon {
|
|
19827
19835
|
fill: var(--cds-icon-primary, #161616);
|
|
19828
19836
|
}
|
|
19829
|
-
|
|
19837
|
+
|
|
19838
|
+
.cds--tree-leaf-node {
|
|
19830
19839
|
display: -webkit-box;
|
|
19831
19840
|
display: -ms-flexbox;
|
|
19832
19841
|
display: flex;
|
|
19833
19842
|
padding-left: 2.5rem;
|
|
19834
19843
|
}
|
|
19835
|
-
|
|
19844
|
+
|
|
19845
|
+
.cds--tree-leaf-node.cds--tree-node--with-icon {
|
|
19836
19846
|
padding-left: 2rem;
|
|
19837
19847
|
}
|
|
19838
|
-
|
|
19848
|
+
|
|
19849
|
+
.cds--tree-node__label__details {
|
|
19839
19850
|
display: -webkit-box;
|
|
19840
19851
|
display: -ms-flexbox;
|
|
19841
19852
|
display: flex;
|
|
@@ -19843,52 +19854,60 @@ span.cds--pagination__text.cds--pagination__items-count {
|
|
|
19843
19854
|
-ms-flex-align: center;
|
|
19844
19855
|
align-items: center;
|
|
19845
19856
|
}
|
|
19846
|
-
|
|
19857
|
+
|
|
19858
|
+
.cds--tree-node--with-icon .cds--tree-parent-node__toggle {
|
|
19847
19859
|
margin-right: 0;
|
|
19848
19860
|
}
|
|
19849
|
-
|
|
19861
|
+
|
|
19862
|
+
.cds--tree-parent-node__toggle {
|
|
19850
19863
|
padding: 0;
|
|
19851
19864
|
border: 0;
|
|
19852
19865
|
margin-right: 0.5rem;
|
|
19853
19866
|
}
|
|
19854
|
-
.cds--tree
|
|
19867
|
+
.cds--tree-parent-node__toggle:hover {
|
|
19855
19868
|
cursor: pointer;
|
|
19856
19869
|
}
|
|
19857
|
-
.cds--tree
|
|
19870
|
+
.cds--tree-parent-node__toggle:focus {
|
|
19858
19871
|
outline: none;
|
|
19859
19872
|
}
|
|
19860
|
-
|
|
19873
|
+
|
|
19874
|
+
.cds--tree-parent-node__toggle-icon {
|
|
19861
19875
|
fill: var(--cds-icon-secondary, #525252);
|
|
19862
19876
|
-webkit-transform: rotate(-90deg);
|
|
19863
19877
|
transform: rotate(-90deg);
|
|
19864
19878
|
-webkit-transition: all 110ms cubic-bezier(0.2, 0, 0.38, 0.9);
|
|
19865
19879
|
transition: all 110ms cubic-bezier(0.2, 0, 0.38, 0.9);
|
|
19866
19880
|
}
|
|
19867
|
-
|
|
19881
|
+
|
|
19882
|
+
.cds--tree-parent-node__toggle-icon--expanded {
|
|
19868
19883
|
-webkit-transform: rotate(0);
|
|
19869
19884
|
transform: rotate(0);
|
|
19870
19885
|
}
|
|
19871
|
-
|
|
19886
|
+
|
|
19887
|
+
.cds--tree-node__icon {
|
|
19872
19888
|
min-width: 1rem;
|
|
19873
19889
|
min-height: 1rem;
|
|
19874
19890
|
margin-right: 0.5rem;
|
|
19875
19891
|
fill: var(--cds-icon-secondary, #525252);
|
|
19876
19892
|
}
|
|
19877
|
-
|
|
19893
|
+
|
|
19894
|
+
.cds--tree-node--selected > .cds--tree-node__label {
|
|
19878
19895
|
background-color: var(--cds-layer-selected-01, #e0e0e0);
|
|
19879
19896
|
color: var(--cds-text-primary, #161616);
|
|
19880
19897
|
}
|
|
19881
|
-
.cds--tree
|
|
19898
|
+
.cds--tree-node--selected > .cds--tree-node__label:hover {
|
|
19882
19899
|
background-color: var(--cds-layer-selected-hover-01, #d1d1d1);
|
|
19883
19900
|
}
|
|
19884
|
-
|
|
19885
|
-
.cds--tree
|
|
19901
|
+
|
|
19902
|
+
.cds--tree-node--selected > .cds--tree-node__label .cds--tree-parent-node__toggle-icon,
|
|
19903
|
+
.cds--tree-node--selected > .cds--tree-node__label .cds--tree-node__icon {
|
|
19886
19904
|
fill: var(--cds-icon-primary, #161616);
|
|
19887
19905
|
}
|
|
19888
|
-
|
|
19906
|
+
|
|
19907
|
+
.cds--tree-node--active > .cds--tree-node__label {
|
|
19889
19908
|
position: relative;
|
|
19890
19909
|
}
|
|
19891
|
-
.cds--tree
|
|
19910
|
+
.cds--tree-node--active > .cds--tree-node__label::before {
|
|
19892
19911
|
position: absolute;
|
|
19893
19912
|
top: 0;
|
|
19894
19913
|
left: 0;
|