@carbon/styles 1.31.0-rc.0 → 1.31.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 +99 -18
- package/css/styles.min.css +1 -1
- package/package.json +10 -10
- package/scss/components/data-table/_data-table.scss +72 -9
- package/scss/components/data-table/expandable/_data-table-expandable.scss +32 -2
- package/scss/components/data-table/sort/_data-table-sort.scss +33 -0
- package/scss/components/progress-bar/_progress-bar.scss +10 -5
- package/scss/components/slider/_slider.scss +1 -1
- package/scss/components/tabs/_tabs.scss +0 -1
package/css/styles.css
CHANGED
|
@@ -8339,6 +8339,34 @@ fieldset[disabled] .cds--form__helper-text {
|
|
|
8339
8339
|
vertical-align: middle;
|
|
8340
8340
|
}
|
|
8341
8341
|
|
|
8342
|
+
.cds--data-table.cds--data-table--top-aligned-body.cds--data-table--lg tr:not([data-child-row]) td:not(.cds--table-expand) {
|
|
8343
|
+
padding-top: 1rem;
|
|
8344
|
+
padding-bottom: 1rem;
|
|
8345
|
+
}
|
|
8346
|
+
.cds--data-table.cds--data-table--top-aligned-body.cds--data-table--lg tr:not([data-child-row]) td:not(.cds--table-expand).cds--table-column-menu {
|
|
8347
|
+
padding-top: 0.5rem;
|
|
8348
|
+
}
|
|
8349
|
+
.cds--data-table.cds--data-table--top-aligned-body.cds--data-table--lg tr:not([data-child-row]) td:not(.cds--table-expand).cds--table-column-checkbox:not(.cds--table-column-radio) {
|
|
8350
|
+
padding-top: 0.8125rem;
|
|
8351
|
+
}
|
|
8352
|
+
.cds--data-table.cds--data-table--top-aligned-body td {
|
|
8353
|
+
vertical-align: top;
|
|
8354
|
+
}
|
|
8355
|
+
|
|
8356
|
+
.cds--data-table.cds--data-table--top-aligned-header.cds--data-table--lg th:not(.cds--table-expand):not(.cds--table-sort__header) {
|
|
8357
|
+
padding-top: 1rem;
|
|
8358
|
+
padding-bottom: 1rem;
|
|
8359
|
+
}
|
|
8360
|
+
.cds--data-table.cds--data-table--top-aligned-header.cds--data-table--lg th:not(.cds--table-expand):not(.cds--table-sort__header).cds--table-column-menu {
|
|
8361
|
+
padding-top: 0.5rem;
|
|
8362
|
+
}
|
|
8363
|
+
.cds--data-table.cds--data-table--top-aligned-header.cds--data-table--lg th:not(.cds--table-expand):not(.cds--table-sort__header).cds--table-column-checkbox {
|
|
8364
|
+
padding-top: 0.8125rem;
|
|
8365
|
+
}
|
|
8366
|
+
.cds--data-table.cds--data-table--top-aligned-header th {
|
|
8367
|
+
vertical-align: top;
|
|
8368
|
+
}
|
|
8369
|
+
|
|
8342
8370
|
.cds--data-table th[align=right],
|
|
8343
8371
|
.cds--data-table td[align=right] {
|
|
8344
8372
|
text-align: right;
|
|
@@ -8619,7 +8647,8 @@ tr.cds--data-table--selected:last-of-type td {
|
|
|
8619
8647
|
height: calc(100% + 1px);
|
|
8620
8648
|
}
|
|
8621
8649
|
|
|
8622
|
-
.cds--data-table.cds--data-table--xs .cds--table-column-checkbox
|
|
8650
|
+
.cds--data-table.cds--data-table--xs:not(.cds--data-table--top-aligned-body) td.cds--table-column-checkbox,
|
|
8651
|
+
.cds--data-table.cds--data-table--xs:not(.cds--data-table--top-aligned-header) th.cds--table-column-checkbox {
|
|
8623
8652
|
padding-top: 0;
|
|
8624
8653
|
padding-bottom: 0;
|
|
8625
8654
|
}
|
|
@@ -8641,12 +8670,14 @@ tr.cds--data-table--selected:last-of-type td {
|
|
|
8641
8670
|
}
|
|
8642
8671
|
|
|
8643
8672
|
.cds--data-table--sm td,
|
|
8644
|
-
.cds--data-table--sm tbody tr th
|
|
8673
|
+
.cds--data-table--sm tbody tr th,
|
|
8674
|
+
.cds--data-table--sm.cds--data-table--top-aligned-header th.cds--table-column-checkbox {
|
|
8645
8675
|
padding-top: 0.4375rem;
|
|
8646
8676
|
padding-bottom: 0.375rem;
|
|
8647
8677
|
}
|
|
8648
8678
|
|
|
8649
|
-
.cds--data-table.cds--data-table--sm .cds--table-column-checkbox
|
|
8679
|
+
.cds--data-table.cds--data-table--sm:not(.cds--data-table--top-aligned-body) td.cds--table-column-checkbox,
|
|
8680
|
+
.cds--data-table.cds--data-table--sm:not(.cds--data-table--top-aligned-header) th.cds--table-column-checkbox {
|
|
8650
8681
|
padding-top: 0.1875rem;
|
|
8651
8682
|
padding-bottom: 0.1875rem;
|
|
8652
8683
|
}
|
|
@@ -8661,7 +8692,8 @@ tr.cds--data-table--selected:last-of-type td {
|
|
|
8661
8692
|
height: 2.5rem;
|
|
8662
8693
|
}
|
|
8663
8694
|
|
|
8664
|
-
.cds--data-table--md .cds--table-header-label
|
|
8695
|
+
.cds--data-table--md .cds--table-header-label,
|
|
8696
|
+
.cds--data-table--md.cds--data-table--top-aligned-header th.cds--table-column-checkbox {
|
|
8665
8697
|
padding-top: 0.4375rem;
|
|
8666
8698
|
padding-bottom: 0.4375rem;
|
|
8667
8699
|
}
|
|
@@ -8672,7 +8704,8 @@ tr.cds--data-table--selected:last-of-type td {
|
|
|
8672
8704
|
padding-bottom: 0.375rem;
|
|
8673
8705
|
}
|
|
8674
8706
|
|
|
8675
|
-
.cds--data-table.cds--data-table--md .cds--table-column-checkbox
|
|
8707
|
+
.cds--data-table.cds--data-table--md:not(.cds--data-table--top-aligned-body) td.cds--table-column-checkbox,
|
|
8708
|
+
.cds--data-table.cds--data-table--md:not(.cds--data-table--top-aligned-header) th.cds--table-column-checkbox {
|
|
8676
8709
|
padding-top: 0.1875rem;
|
|
8677
8710
|
padding-bottom: 0.1875rem;
|
|
8678
8711
|
}
|
|
@@ -8696,6 +8729,7 @@ tr.cds--data-table--selected:last-of-type td {
|
|
|
8696
8729
|
.cds--data-table--xl td,
|
|
8697
8730
|
.cds--data-table--xl tbody tr th {
|
|
8698
8731
|
padding-top: 1rem;
|
|
8732
|
+
padding-bottom: 1rem;
|
|
8699
8733
|
}
|
|
8700
8734
|
|
|
8701
8735
|
.cds--data-table--xl th,
|
|
@@ -9646,6 +9680,25 @@ tr.cds--parent-row.cds--expandable-row.cds--expandable-row--hover td:first-of-ty
|
|
|
9646
9680
|
border: 0;
|
|
9647
9681
|
}
|
|
9648
9682
|
|
|
9683
|
+
.cds--data-table--top-aligned-body td .cds--table-expand__button,
|
|
9684
|
+
.cds--data-table--top-aligned-header th .cds--table-expand__button {
|
|
9685
|
+
height: 2rem;
|
|
9686
|
+
align-items: start;
|
|
9687
|
+
padding-top: 0.5rem;
|
|
9688
|
+
}
|
|
9689
|
+
|
|
9690
|
+
.cds--data-table--top-aligned-body.cds--data-table--xs td .cds--table-expand__button,
|
|
9691
|
+
.cds--data-table--top-aligned-header.cds--data-table--xs th .cds--table-expand__button {
|
|
9692
|
+
height: 1.5rem;
|
|
9693
|
+
padding-top: 0.25rem;
|
|
9694
|
+
}
|
|
9695
|
+
|
|
9696
|
+
.cds--data-table--top-aligned-body.cds--data-table--md td .cds--table-expand__button,
|
|
9697
|
+
.cds--data-table--top-aligned-header.cds--data-table--md th .cds--table-expand__button {
|
|
9698
|
+
padding-top: 0.5rem;
|
|
9699
|
+
margin-top: -0.25rem;
|
|
9700
|
+
}
|
|
9701
|
+
|
|
9649
9702
|
.cds--table-expand__button:focus {
|
|
9650
9703
|
box-shadow: inset 0 0 0 2px var(--cds-focus, #0f62fe);
|
|
9651
9704
|
outline: none;
|
|
@@ -9659,7 +9712,6 @@ tr.cds--parent-row.cds--expandable-row.cds--expandable-row--hover td:first-of-ty
|
|
|
9659
9712
|
|
|
9660
9713
|
.cds--data-table--xl .cds--table-expand__button {
|
|
9661
9714
|
width: 2rem;
|
|
9662
|
-
padding: 0;
|
|
9663
9715
|
}
|
|
9664
9716
|
|
|
9665
9717
|
tr.cds--parent-row.cds--expandable-row td.cds--table-expand + td::after {
|
|
@@ -9996,6 +10048,30 @@ th .cds--table-sort__flex {
|
|
|
9996
10048
|
justify-content: space-between;
|
|
9997
10049
|
}
|
|
9998
10050
|
|
|
10051
|
+
.cds--data-table--top-aligned-header th .cds--table-sort__flex {
|
|
10052
|
+
align-items: start;
|
|
10053
|
+
}
|
|
10054
|
+
|
|
10055
|
+
.cds--data-table.cds--data-table--top-aligned-header.cds--data-table--lg th.cds--table-sort__header {
|
|
10056
|
+
padding-top: 1rem;
|
|
10057
|
+
}
|
|
10058
|
+
|
|
10059
|
+
.cds--data-table.cds--data-table--top-aligned-header.cds--data-table--sm th.cds--table-sort__header .cds--table-sort__flex .cds--table-header-label,
|
|
10060
|
+
.cds--data-table.cds--data-table--top-aligned-header.cds--data-table--xs th.cds--table-sort__header .cds--table-sort__flex .cds--table-header-label {
|
|
10061
|
+
padding-top: 0;
|
|
10062
|
+
padding-bottom: 0;
|
|
10063
|
+
}
|
|
10064
|
+
|
|
10065
|
+
.cds--data-table.cds--data-table--top-aligned-header.cds--data-table--sm th.cds--table-sort__header {
|
|
10066
|
+
padding-top: 0.4375rem;
|
|
10067
|
+
padding-bottom: 0.4375rem;
|
|
10068
|
+
}
|
|
10069
|
+
|
|
10070
|
+
.cds--data-table.cds--data-table--top-aligned-header.cds--data-table--xs th.cds--table-sort__header {
|
|
10071
|
+
padding-top: 0.125rem;
|
|
10072
|
+
padding-bottom: 0.125rem;
|
|
10073
|
+
}
|
|
10074
|
+
|
|
9999
10075
|
.cds--data-table--sort:not(.cds--data-table--xs):not(.cds--data-table--sm):not(.cds--data-table--md):not(.cds--data-table--xl) th .cds--table-sort__flex {
|
|
10000
10076
|
/* IE11 workaround for align-items: center and min-height
|
|
10001
10077
|
https://github.com/philipwalton/flexbugs/issues/231 */
|
|
@@ -17882,6 +17958,10 @@ span.cds--pagination__text.cds--pagination__items-count {
|
|
|
17882
17958
|
fill: var(--cds-icon-primary, #161616);
|
|
17883
17959
|
}
|
|
17884
17960
|
|
|
17961
|
+
.cds--progress-bar {
|
|
17962
|
+
--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));
|
|
17963
|
+
}
|
|
17964
|
+
|
|
17885
17965
|
.cds--progress-bar__label {
|
|
17886
17966
|
font-size: var(--cds-body-compact-01-font-size, 0.875rem);
|
|
17887
17967
|
font-weight: var(--cds-body-compact-01-font-weight, 400);
|
|
@@ -17890,8 +17970,9 @@ span.cds--pagination__text.cds--pagination__items-count {
|
|
|
17890
17970
|
display: flex;
|
|
17891
17971
|
min-width: 3rem;
|
|
17892
17972
|
justify-content: space-between;
|
|
17893
|
-
margin-bottom: 0.5rem;
|
|
17894
17973
|
color: var(--cds-text-primary, #161616);
|
|
17974
|
+
-webkit-margin-after: 0.5rem;
|
|
17975
|
+
margin-block-end: 0.5rem;
|
|
17895
17976
|
}
|
|
17896
17977
|
|
|
17897
17978
|
.cds--progress-bar__label-text {
|
|
@@ -17953,7 +18034,8 @@ span.cds--pagination__text.cds--pagination__items-count {
|
|
|
17953
18034
|
|
|
17954
18035
|
.cds--progress-bar__status-icon {
|
|
17955
18036
|
flex-shrink: 0;
|
|
17956
|
-
margin-
|
|
18037
|
+
-webkit-margin-start: var(--cds-layout-density-padding-inline-local);
|
|
18038
|
+
margin-inline-start: var(--cds-layout-density-padding-inline-local);
|
|
17957
18039
|
}
|
|
17958
18040
|
|
|
17959
18041
|
.cds--progress-bar--finished .cds--progress-bar__bar,
|
|
@@ -17990,7 +18072,8 @@ span.cds--pagination__text.cds--pagination__items-count {
|
|
|
17990
18072
|
.cds--progress-bar--error.cds--progress-bar--inline .cds--progress-bar__label {
|
|
17991
18073
|
flex-shrink: 1;
|
|
17992
18074
|
justify-content: flex-start;
|
|
17993
|
-
margin-
|
|
18075
|
+
-webkit-margin-end: 0;
|
|
18076
|
+
margin-inline-end: 0;
|
|
17994
18077
|
}
|
|
17995
18078
|
|
|
17996
18079
|
@keyframes progress-bar-indeterminate {
|
|
@@ -18009,8 +18092,8 @@ span.cds--pagination__text.cds--pagination__items-count {
|
|
|
18009
18092
|
.cds--progress-bar--inline .cds--progress-bar__label {
|
|
18010
18093
|
flex-shrink: 0;
|
|
18011
18094
|
margin-bottom: 0;
|
|
18012
|
-
-webkit-margin-end:
|
|
18013
|
-
margin-inline-end:
|
|
18095
|
+
-webkit-margin-end: var(--cds-layout-density-padding-inline-local);
|
|
18096
|
+
margin-inline-end: var(--cds-layout-density-padding-inline-local);
|
|
18014
18097
|
}
|
|
18015
18098
|
|
|
18016
18099
|
.cds--progress-bar--inline .cds--progress-bar__track {
|
|
@@ -18033,7 +18116,7 @@ span.cds--pagination__text.cds--pagination__items-count {
|
|
|
18033
18116
|
|
|
18034
18117
|
.cds--progress-bar--indented .cds--progress-bar__label,
|
|
18035
18118
|
.cds--progress-bar--indented .cds--progress-bar__helper-text {
|
|
18036
|
-
padding-inline:
|
|
18119
|
+
padding-inline: var(--cds-layout-density-padding-inline-local);
|
|
18037
18120
|
}
|
|
18038
18121
|
|
|
18039
18122
|
.cds--tooltip {
|
|
@@ -18818,11 +18901,10 @@ span.cds--pagination__text.cds--pagination__items-count {
|
|
|
18818
18901
|
}
|
|
18819
18902
|
|
|
18820
18903
|
.cds--slider__range-label {
|
|
18821
|
-
font-
|
|
18822
|
-
font-
|
|
18823
|
-
|
|
18824
|
-
|
|
18825
|
-
letter-spacing: var(--cds-code-02-letter-spacing, 0.32px);
|
|
18904
|
+
font-size: var(--cds-body-compact-01-font-size, 0.875rem);
|
|
18905
|
+
font-weight: var(--cds-body-compact-01-font-weight, 400);
|
|
18906
|
+
line-height: var(--cds-body-compact-01-line-height, 1.28572);
|
|
18907
|
+
letter-spacing: var(--cds-body-compact-01-letter-spacing, 0.16px);
|
|
18826
18908
|
color: var(--cds-text-primary, #161616);
|
|
18827
18909
|
white-space: nowrap;
|
|
18828
18910
|
}
|
|
@@ -19612,7 +19694,6 @@ span.cds--pagination__text.cds--pagination__items-count {
|
|
|
19612
19694
|
.cds--tabs .cds--tabs__nav-item--icon .cds--tabs__nav-item--close-icon {
|
|
19613
19695
|
padding: 0.25rem;
|
|
19614
19696
|
margin: -0.25rem;
|
|
19615
|
-
cursor: pointer;
|
|
19616
19697
|
line-height: 0;
|
|
19617
19698
|
pointer-events: auto;
|
|
19618
19699
|
}
|