@patternfly/patternfly 6.3.0-prerelease.9 → 6.3.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/assets/images/icon-outlined-star.hbs +3 -0
- package/assets/images/icon-star.hbs +3 -0
- package/base/patternfly-common.css +46 -11
- package/base/patternfly-common.scss +58 -13
- package/components/Accordion/accordion.css +72 -3
- package/components/Accordion/accordion.scss +78 -6
- package/components/Alert/alert-group.css +52 -31
- package/components/Alert/alert-group.scss +77 -46
- package/components/Button/button.css +154 -6
- package/components/Button/button.scss +160 -8
- package/components/DataList/data-list.css +2 -2
- package/components/DataList/data-list.scss +2 -2
- package/components/DualListSelector/dual-list-selector.css +36 -0
- package/components/DualListSelector/dual-list-selector.scss +43 -0
- package/components/ExpandableSection/expandable-section.css +63 -1
- package/components/ExpandableSection/expandable-section.scss +76 -2
- package/components/FileUpload/file-upload.css +3 -3
- package/components/FileUpload/file-upload.scss +3 -3
- package/components/Form/form.css +40 -1
- package/components/Form/form.scss +47 -1
- package/components/FormControl/form-control.css +16 -0
- package/components/FormControl/form-control.scss +9 -0
- package/components/InputGroup/input-group.css +80 -0
- package/components/InputGroup/input-group.scss +95 -0
- package/components/Menu/menu.css +24 -4
- package/components/Menu/menu.scss +20 -5
- package/components/MenuToggle/menu-toggle.css +30 -0
- package/components/MenuToggle/menu-toggle.scss +33 -0
- package/components/Nav/nav.css +22 -8
- package/components/Nav/nav.scss +22 -9
- package/components/Page/page.css +62 -3
- package/components/Page/page.scss +44 -3
- package/components/Progress/progress.css +16 -0
- package/components/Progress/progress.scss +11 -1
- package/components/ProgressStepper/progress-stepper.scss +1 -0
- package/components/Spinner/spinner.css +5 -0
- package/components/Spinner/spinner.scss +6 -0
- package/components/Table/table-grid.css +51 -5
- package/components/Table/table-grid.scss +22 -1
- package/components/Table/table.css +95 -2
- package/components/Table/table.scss +138 -3
- package/components/Tabs/tabs.css +25 -15
- package/components/Tabs/tabs.scss +26 -13
- package/components/TextInputGroup/text-input-group.css +20 -0
- package/components/TextInputGroup/text-input-group.scss +12 -0
- package/components/Timestamp/timestamp.css +4 -0
- package/components/Timestamp/timestamp.scss +7 -0
- package/components/TreeView/tree-view.css +39 -0
- package/components/TreeView/tree-view.scss +42 -2
- package/components/Truncate/truncate.css +1 -0
- package/components/Truncate/truncate.scss +3 -0
- package/components/_index.css +912 -84
- package/docs/components/Breadcrumb/examples/Breadcrumb.md +1 -1
- package/docs/components/Button/examples/Button.md +148 -5
- package/docs/components/Card/examples/Card.md +8 -8
- package/docs/components/CodeBlock/examples/CodeBlock.md +5 -5
- package/docs/components/DataList/examples/DataList.md +23 -23
- package/docs/components/DualListSelector/examples/DualListSelector.md +534 -16
- package/docs/components/ExpandableSection/examples/ExpandableSection.md +17 -12
- package/docs/components/Form/examples/Form.md +1047 -126
- package/docs/components/Hint/examples/Hint.md +3 -3
- package/docs/components/InlineEdit/examples/InlineEdit.md +2 -2
- package/docs/components/InputGroup/examples/InputGroup.md +5 -1
- package/docs/components/JumpLinks/examples/JumpLinks.md +1 -1
- package/docs/components/Masthead/examples/masthead.md +90 -12
- package/docs/components/Menu/examples/Menu.md +122 -6
- package/docs/components/MenuToggle/examples/MenuToggle.md +90 -51
- package/docs/components/MultipleFileUpload/examples/MultipleFileUpload.md +2 -10
- package/docs/components/OverflowMenu/examples/overflow-menu.md +5 -5
- package/docs/components/Page/examples/Page.md +147 -14
- package/docs/components/Pagination/examples/Pagination.md +12 -12
- package/docs/components/ProgressStepper/examples/ProgressStepper.md +32 -6
- package/docs/components/Slider/examples/Slider.md +2 -2
- package/docs/components/Spinner/examples/Spinner.md +10 -0
- package/docs/components/Table/examples/Table.md +9428 -6173
- package/docs/components/Tabs/examples/Tabs.md +1214 -6729
- package/docs/components/TextInputGroup/examples/TextInputGroup.md +45 -5
- package/docs/components/Toolbar/examples/Toolbar.md +7 -7
- package/docs/demos/AboutModal/examples/AboutModal.md +22 -3
- package/docs/demos/Alert/examples/Alert.md +66 -9
- package/docs/demos/BackToTop/examples/BackToTop.md +22 -3
- package/docs/demos/Banner/examples/Banner.md +47 -6
- package/docs/demos/Card/examples/Card.md +5 -62
- package/docs/demos/CardView/examples/CardView.md +24 -5
- package/docs/demos/Dashboard/examples/Dashboard.md +24 -5
- package/docs/demos/DataList/examples/DataList.md +100 -24
- package/docs/demos/DescriptionList/examples/DescriptionList.md +66 -47
- package/docs/demos/Drawer/examples/Drawer.md +110 -53
- package/docs/demos/Form/examples/BasicForms.md +12 -12
- package/docs/demos/JumpLinks/examples/JumpLinks.md +132 -18
- package/docs/demos/Masthead/examples/Masthead.md +170 -18
- package/docs/demos/Modal/examples/Modal.md +132 -18
- package/docs/demos/Nav/examples/Nav.md +111 -16
- package/docs/demos/NotificationDrawer/examples/NotificationDrawer.md +110 -15
- package/docs/demos/Page/examples/Page.md +309 -43
- package/docs/demos/PrimaryDetail/examples/PrimaryDetail.md +160 -103
- package/docs/demos/Skeleton/examples/Skeleton.md +22 -3
- package/docs/demos/Table/examples/Table.md +449 -155
- package/docs/demos/Tabs/examples/Tabs.md +137 -593
- package/docs/demos/Toolbar/examples/Toolbar.md +72 -34
- package/docs/demos/Wizard/examples/Wizard.md +198 -27
- package/package.json +5 -5
- package/patternfly-base-no-globals.css +45 -11
- package/patternfly-base.css +45 -11
- package/patternfly-no-globals.css +957 -95
- package/patternfly.css +957 -95
- package/patternfly.min.css +1 -1
- package/patternfly.min.css.map +1 -1
- package/sass-utilities/mixins.scss +54 -0
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
--pf-v6-c-table--cell--first-child--responsive--PaddingBlockStart: var(--pf-t--global--spacer--sm);
|
|
35
35
|
--pf-v6-c-table--cell--responsive--PaddingInlineEnd: 0;
|
|
36
36
|
--pf-v6-c-table--cell--responsive--PaddingInlineStart: 0;
|
|
37
|
+
--pf-v6-c-table--cell--responsive--th--FontWeight: var(--pf-t--global--font--weight--body--bold);
|
|
37
38
|
--pf-v6-c-table--m-compact__tr--responsive--PaddingBlockStart: var(--pf-t--global--spacer--sm);
|
|
38
39
|
--pf-v6-c-table--m-compact__tr--responsive--PaddingBlockEnd: var(--pf-t--global--spacer--sm);
|
|
39
40
|
--pf-v6-c-table--m-compact__tr__td--responsive--PaddingBlockStart: var(--pf-t--global--spacer--xs);
|
|
@@ -97,6 +98,12 @@
|
|
|
97
98
|
.pf-m-grid.pf-v6-c-table tbody:where(.pf-v6-c-table__tbody):first-of-type {
|
|
98
99
|
border-block-start: var(--pf-v6-c-table__tbody--responsive--border-width--base) solid var(--pf-v6-c-table--responsive--BorderColor);
|
|
99
100
|
}
|
|
101
|
+
.pf-m-grid.pf-v6-c-table.pf-m-animate-expand {
|
|
102
|
+
--pf-v6-c-table__expandable-row--Display: block;
|
|
103
|
+
}
|
|
104
|
+
.pf-m-grid.pf-v6-c-table.pf-m-animate-expand > .pf-v6-c-table__tbody > .pf-v6-c-table__expandable-row:not(.pf-m-expanded) > :is(.pf-v6-c-table__td, .pf-v6-c-table__th)[data-label]::before {
|
|
105
|
+
content: none;
|
|
106
|
+
}
|
|
100
107
|
.pf-m-grid.pf-v6-c-table.pf-m-expandable {
|
|
101
108
|
--pf-v6-c-table__tr--BorderBlockEndWidth: 0;
|
|
102
109
|
}
|
|
@@ -153,12 +160,15 @@
|
|
|
153
160
|
grid-template-columns: 1fr minmax(0, 1.5fr);
|
|
154
161
|
align-items: start;
|
|
155
162
|
}
|
|
163
|
+
.pf-m-grid.pf-v6-c-table :where(.pf-v6-c-table__th, .pf-v6-c-table__td)[data-label].pf-m-action {
|
|
164
|
+
align-items: center;
|
|
165
|
+
}
|
|
156
166
|
.pf-m-grid.pf-v6-c-table :where(.pf-v6-c-table__th, .pf-v6-c-table__td)[data-label] > * {
|
|
157
167
|
grid-column: 2;
|
|
158
168
|
}
|
|
159
169
|
.pf-m-grid.pf-v6-c-table :where(.pf-v6-c-table__th, .pf-v6-c-table__td)[data-label]::before {
|
|
160
170
|
position: revert;
|
|
161
|
-
font-weight:
|
|
171
|
+
font-weight: var(--pf-v6-c-table--cell--responsive--th--FontWeight);
|
|
162
172
|
text-align: start;
|
|
163
173
|
content: attr(data-label);
|
|
164
174
|
}
|
|
@@ -397,6 +407,12 @@
|
|
|
397
407
|
.pf-m-grid-md.pf-v6-c-table tbody:where(.pf-v6-c-table__tbody):first-of-type {
|
|
398
408
|
border-block-start: var(--pf-v6-c-table__tbody--responsive--border-width--base) solid var(--pf-v6-c-table--responsive--BorderColor);
|
|
399
409
|
}
|
|
410
|
+
.pf-m-grid-md.pf-v6-c-table.pf-m-animate-expand {
|
|
411
|
+
--pf-v6-c-table__expandable-row--Display: block;
|
|
412
|
+
}
|
|
413
|
+
.pf-m-grid-md.pf-v6-c-table.pf-m-animate-expand > .pf-v6-c-table__tbody > .pf-v6-c-table__expandable-row:not(.pf-m-expanded) > :is(.pf-v6-c-table__td, .pf-v6-c-table__th)[data-label]::before {
|
|
414
|
+
content: none;
|
|
415
|
+
}
|
|
400
416
|
.pf-m-grid-md.pf-v6-c-table.pf-m-expandable {
|
|
401
417
|
--pf-v6-c-table__tr--BorderBlockEndWidth: 0;
|
|
402
418
|
}
|
|
@@ -453,12 +469,15 @@
|
|
|
453
469
|
grid-template-columns: 1fr minmax(0, 1.5fr);
|
|
454
470
|
align-items: start;
|
|
455
471
|
}
|
|
472
|
+
.pf-m-grid-md.pf-v6-c-table :where(.pf-v6-c-table__th, .pf-v6-c-table__td)[data-label].pf-m-action {
|
|
473
|
+
align-items: center;
|
|
474
|
+
}
|
|
456
475
|
.pf-m-grid-md.pf-v6-c-table :where(.pf-v6-c-table__th, .pf-v6-c-table__td)[data-label] > * {
|
|
457
476
|
grid-column: 2;
|
|
458
477
|
}
|
|
459
478
|
.pf-m-grid-md.pf-v6-c-table :where(.pf-v6-c-table__th, .pf-v6-c-table__td)[data-label]::before {
|
|
460
479
|
position: revert;
|
|
461
|
-
font-weight:
|
|
480
|
+
font-weight: var(--pf-v6-c-table--cell--responsive--th--FontWeight);
|
|
462
481
|
text-align: start;
|
|
463
482
|
content: attr(data-label);
|
|
464
483
|
}
|
|
@@ -700,6 +719,12 @@
|
|
|
700
719
|
.pf-m-grid-lg.pf-v6-c-table tbody:where(.pf-v6-c-table__tbody):first-of-type {
|
|
701
720
|
border-block-start: var(--pf-v6-c-table__tbody--responsive--border-width--base) solid var(--pf-v6-c-table--responsive--BorderColor);
|
|
702
721
|
}
|
|
722
|
+
.pf-m-grid-lg.pf-v6-c-table.pf-m-animate-expand {
|
|
723
|
+
--pf-v6-c-table__expandable-row--Display: block;
|
|
724
|
+
}
|
|
725
|
+
.pf-m-grid-lg.pf-v6-c-table.pf-m-animate-expand > .pf-v6-c-table__tbody > .pf-v6-c-table__expandable-row:not(.pf-m-expanded) > :is(.pf-v6-c-table__td, .pf-v6-c-table__th)[data-label]::before {
|
|
726
|
+
content: none;
|
|
727
|
+
}
|
|
703
728
|
.pf-m-grid-lg.pf-v6-c-table.pf-m-expandable {
|
|
704
729
|
--pf-v6-c-table__tr--BorderBlockEndWidth: 0;
|
|
705
730
|
}
|
|
@@ -756,12 +781,15 @@
|
|
|
756
781
|
grid-template-columns: 1fr minmax(0, 1.5fr);
|
|
757
782
|
align-items: start;
|
|
758
783
|
}
|
|
784
|
+
.pf-m-grid-lg.pf-v6-c-table :where(.pf-v6-c-table__th, .pf-v6-c-table__td)[data-label].pf-m-action {
|
|
785
|
+
align-items: center;
|
|
786
|
+
}
|
|
759
787
|
.pf-m-grid-lg.pf-v6-c-table :where(.pf-v6-c-table__th, .pf-v6-c-table__td)[data-label] > * {
|
|
760
788
|
grid-column: 2;
|
|
761
789
|
}
|
|
762
790
|
.pf-m-grid-lg.pf-v6-c-table :where(.pf-v6-c-table__th, .pf-v6-c-table__td)[data-label]::before {
|
|
763
791
|
position: revert;
|
|
764
|
-
font-weight:
|
|
792
|
+
font-weight: var(--pf-v6-c-table--cell--responsive--th--FontWeight);
|
|
765
793
|
text-align: start;
|
|
766
794
|
content: attr(data-label);
|
|
767
795
|
}
|
|
@@ -1003,6 +1031,12 @@
|
|
|
1003
1031
|
.pf-m-grid-xl.pf-v6-c-table tbody:where(.pf-v6-c-table__tbody):first-of-type {
|
|
1004
1032
|
border-block-start: var(--pf-v6-c-table__tbody--responsive--border-width--base) solid var(--pf-v6-c-table--responsive--BorderColor);
|
|
1005
1033
|
}
|
|
1034
|
+
.pf-m-grid-xl.pf-v6-c-table.pf-m-animate-expand {
|
|
1035
|
+
--pf-v6-c-table__expandable-row--Display: block;
|
|
1036
|
+
}
|
|
1037
|
+
.pf-m-grid-xl.pf-v6-c-table.pf-m-animate-expand > .pf-v6-c-table__tbody > .pf-v6-c-table__expandable-row:not(.pf-m-expanded) > :is(.pf-v6-c-table__td, .pf-v6-c-table__th)[data-label]::before {
|
|
1038
|
+
content: none;
|
|
1039
|
+
}
|
|
1006
1040
|
.pf-m-grid-xl.pf-v6-c-table.pf-m-expandable {
|
|
1007
1041
|
--pf-v6-c-table__tr--BorderBlockEndWidth: 0;
|
|
1008
1042
|
}
|
|
@@ -1059,12 +1093,15 @@
|
|
|
1059
1093
|
grid-template-columns: 1fr minmax(0, 1.5fr);
|
|
1060
1094
|
align-items: start;
|
|
1061
1095
|
}
|
|
1096
|
+
.pf-m-grid-xl.pf-v6-c-table :where(.pf-v6-c-table__th, .pf-v6-c-table__td)[data-label].pf-m-action {
|
|
1097
|
+
align-items: center;
|
|
1098
|
+
}
|
|
1062
1099
|
.pf-m-grid-xl.pf-v6-c-table :where(.pf-v6-c-table__th, .pf-v6-c-table__td)[data-label] > * {
|
|
1063
1100
|
grid-column: 2;
|
|
1064
1101
|
}
|
|
1065
1102
|
.pf-m-grid-xl.pf-v6-c-table :where(.pf-v6-c-table__th, .pf-v6-c-table__td)[data-label]::before {
|
|
1066
1103
|
position: revert;
|
|
1067
|
-
font-weight:
|
|
1104
|
+
font-weight: var(--pf-v6-c-table--cell--responsive--th--FontWeight);
|
|
1068
1105
|
text-align: start;
|
|
1069
1106
|
content: attr(data-label);
|
|
1070
1107
|
}
|
|
@@ -1306,6 +1343,12 @@
|
|
|
1306
1343
|
.pf-m-grid-2xl.pf-v6-c-table tbody:where(.pf-v6-c-table__tbody):first-of-type {
|
|
1307
1344
|
border-block-start: var(--pf-v6-c-table__tbody--responsive--border-width--base) solid var(--pf-v6-c-table--responsive--BorderColor);
|
|
1308
1345
|
}
|
|
1346
|
+
.pf-m-grid-2xl.pf-v6-c-table.pf-m-animate-expand {
|
|
1347
|
+
--pf-v6-c-table__expandable-row--Display: block;
|
|
1348
|
+
}
|
|
1349
|
+
.pf-m-grid-2xl.pf-v6-c-table.pf-m-animate-expand > .pf-v6-c-table__tbody > .pf-v6-c-table__expandable-row:not(.pf-m-expanded) > :is(.pf-v6-c-table__td, .pf-v6-c-table__th)[data-label]::before {
|
|
1350
|
+
content: none;
|
|
1351
|
+
}
|
|
1309
1352
|
.pf-m-grid-2xl.pf-v6-c-table.pf-m-expandable {
|
|
1310
1353
|
--pf-v6-c-table__tr--BorderBlockEndWidth: 0;
|
|
1311
1354
|
}
|
|
@@ -1362,12 +1405,15 @@
|
|
|
1362
1405
|
grid-template-columns: 1fr minmax(0, 1.5fr);
|
|
1363
1406
|
align-items: start;
|
|
1364
1407
|
}
|
|
1408
|
+
.pf-m-grid-2xl.pf-v6-c-table :where(.pf-v6-c-table__th, .pf-v6-c-table__td)[data-label].pf-m-action {
|
|
1409
|
+
align-items: center;
|
|
1410
|
+
}
|
|
1365
1411
|
.pf-m-grid-2xl.pf-v6-c-table :where(.pf-v6-c-table__th, .pf-v6-c-table__td)[data-label] > * {
|
|
1366
1412
|
grid-column: 2;
|
|
1367
1413
|
}
|
|
1368
1414
|
.pf-m-grid-2xl.pf-v6-c-table :where(.pf-v6-c-table__th, .pf-v6-c-table__td)[data-label]::before {
|
|
1369
1415
|
position: revert;
|
|
1370
|
-
font-weight:
|
|
1416
|
+
font-weight: var(--pf-v6-c-table--cell--responsive--th--FontWeight);
|
|
1371
1417
|
text-align: start;
|
|
1372
1418
|
content: attr(data-label);
|
|
1373
1419
|
}
|
|
@@ -94,6 +94,7 @@
|
|
|
94
94
|
--#{$table}--cell--first-child--responsive--PaddingBlockStart: var(--pf-t--global--spacer--sm);
|
|
95
95
|
--#{$table}--cell--responsive--PaddingInlineEnd: 0;
|
|
96
96
|
--#{$table}--cell--responsive--PaddingInlineStart: 0;
|
|
97
|
+
--#{$table}--cell--responsive--th--FontWeight: var(--pf-t--global--font--weight--body--bold);
|
|
97
98
|
|
|
98
99
|
// * Table grid compact table
|
|
99
100
|
--#{$table}--m-compact__tr--responsive--PaddingBlockStart: var(--pf-t--global--spacer--sm);
|
|
@@ -132,6 +133,8 @@
|
|
|
132
133
|
|
|
133
134
|
// - Table mobile layout
|
|
134
135
|
@include pf-mobile-layout {
|
|
136
|
+
$pf-mobile-parent: &;
|
|
137
|
+
|
|
135
138
|
--#{$table}--cell--PaddingBlockStart: var(--#{$table}--m-grid--cell--PaddingBlockStart);
|
|
136
139
|
--#{$table}--cell--PaddingInlineEnd: var(--#{$table}--m-grid--cell--PaddingInlineEnd);
|
|
137
140
|
--#{$table}--cell--PaddingBlockEnd: var(--#{$table}--m-grid--cell--PaddingBlockEnd);
|
|
@@ -182,6 +185,20 @@
|
|
|
182
185
|
}
|
|
183
186
|
}
|
|
184
187
|
|
|
188
|
+
&.pf-m-animate-expand {
|
|
189
|
+
--#{$table}__expandable-row--Display: block;
|
|
190
|
+
|
|
191
|
+
> .#{$table}__tbody > .#{$table}__expandable-row {
|
|
192
|
+
&:not(.pf-m-expanded) {
|
|
193
|
+
> :is(.#{$table}__td, .#{$table}__th) {
|
|
194
|
+
&[data-label]::before {
|
|
195
|
+
content: none; // hides column header for non-expanded rows
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
|
|
185
202
|
// Remove border on tr inside non-expanded tbody in of expandable tables
|
|
186
203
|
&.pf-m-expandable {
|
|
187
204
|
--#{$table}__tr--BorderBlockEndWidth: 0; // nested table rows have no border
|
|
@@ -265,6 +282,10 @@
|
|
|
265
282
|
grid-template-columns: 1fr minmax(0, 1.5fr);
|
|
266
283
|
align-items: start;
|
|
267
284
|
|
|
285
|
+
&.pf-m-action {
|
|
286
|
+
align-items: center;
|
|
287
|
+
}
|
|
288
|
+
|
|
268
289
|
// set contents of td to start at column two of td grid
|
|
269
290
|
> * {
|
|
270
291
|
grid-column: 2;
|
|
@@ -272,7 +293,7 @@
|
|
|
272
293
|
|
|
273
294
|
&::before {
|
|
274
295
|
position: revert;
|
|
275
|
-
font-weight:
|
|
296
|
+
font-weight: var(--#{$table}--cell--responsive--th--FontWeight);
|
|
276
297
|
text-align: start;
|
|
277
298
|
content: attr(data-label);
|
|
278
299
|
}
|
|
@@ -10,7 +10,8 @@
|
|
|
10
10
|
--pf-v6-c-table__caption--PaddingInlineStart: var(--pf-t--global--spacer--inset--page-chrome);
|
|
11
11
|
--pf-v6-c-table__thead--cell--FontSize: var(--pf-t--global--font--size--body--sm);
|
|
12
12
|
--pf-v6-c-table__thead--cell--FontWeight: var(--pf-t--global--font--weight--body--bold);
|
|
13
|
-
--pf-v6-c-table__thead__toggle--
|
|
13
|
+
--pf-v6-c-table__thead__toggle--PaddingBlockStart: var(--pf-v6-c-table--cell--Padding--base);
|
|
14
|
+
--pf-v6-c-table__thead__toggle--PaddingBlockEnd: var(--pf-v6-c-table--cell--Padding--base);
|
|
14
15
|
--pf-v6-c-table__tbody--cell--PaddingBlockStart: var(--pf-v6-c-table--cell--Padding--base);
|
|
15
16
|
--pf-v6-c-table__tbody--cell--PaddingBlockEnd: var(--pf-v6-c-table--cell--Padding--base);
|
|
16
17
|
--pf-v6-c-table__tbody--cell--FontSize: var(--pf-t--global--font--size--body--default);
|
|
@@ -74,6 +75,15 @@
|
|
|
74
75
|
--pf-v6-c-table__action--PaddingBlockEnd: var(--pf-t--global--spacer--sm);
|
|
75
76
|
--pf-v6-c-table__action--PaddingInlineStart: var(--pf-t--global--spacer--sm);
|
|
76
77
|
--pf-v6-c-table__action--PaddingInlineEnd: var(--pf-t--global--spacer--sm);
|
|
78
|
+
--pf-v6-c-table__expandable-row--TransitionDuration--expand--slide: 0s;
|
|
79
|
+
--pf-v6-c-table__expandable-row--TransitionDuration--expand--fade: var(--pf-t--global--motion--duration--fade--default);
|
|
80
|
+
--pf-v6-c-table__expandable-row--TransitionDuration--collapse--slide: 0s;
|
|
81
|
+
--pf-v6-c-table__expandable-row--TransitionDuration--collapse--fade: var(--pf-t--global--motion--duration--fade--short);
|
|
82
|
+
--pf-v6-c-table__expandable-row--TransitionTimingFunction: var(--pf-t--global--motion--timing-function--default);
|
|
83
|
+
--pf-v6-c-table__expandable-row--Opacity: 0;
|
|
84
|
+
--pf-v6-c-table__tbody--m-expanded__expandable-row--Opacity: 1;
|
|
85
|
+
--pf-v6-c-table__expandable-row--TranslateY: 0;
|
|
86
|
+
--pf-v6-c-table__tbody--m-expanded__expandable-row--TranslateY: 0;
|
|
77
87
|
--pf-v6-c-table__expandable-row-content--PaddingBlockStart: var(--pf-t--global--spacer--md);
|
|
78
88
|
--pf-v6-c-table__expandable-row-content--PaddingBlockEnd: var(--pf-t--global--spacer--md);
|
|
79
89
|
--pf-v6-c-table__expandable-row-content--PaddingInlineStart: var(--pf-t--global--spacer--md);
|
|
@@ -109,6 +119,10 @@
|
|
|
109
119
|
--pf-v6-c-table--m-compact__th--PaddingBlockEnd: var(--pf-t--global--spacer--sm);
|
|
110
120
|
--pf-v6-c-table--m-compact--cell--PaddingBlockStart: var(--pf-t--global--spacer--sm);
|
|
111
121
|
--pf-v6-c-table--m-compact--cell--PaddingBlockEnd: var(--pf-t--global--spacer--sm);
|
|
122
|
+
--pf-v6-c-table__td--m-action--PaddingBlockStart: var(--pf-t--global--spacer--sm);
|
|
123
|
+
--pf-v6-c-table__td--m-action--PaddingBlockEnd: var(--pf-t--global--spacer--sm);
|
|
124
|
+
--pf-v6-c-table--m-compact__td--m-action--PaddingBlockStart: var(--pf-t--global--spacer--xs);
|
|
125
|
+
--pf-v6-c-table--m-compact__td--m-action--PaddingBlockEnd: var(--pf-t--global--spacer--xs);
|
|
112
126
|
--pf-v6-c-table--m-compact__action--PaddingBlockStart: var(--pf-t--global--spacer--xs);
|
|
113
127
|
--pf-v6-c-table--m-compact__action--PaddingBlockEnd: var(--pf-t--global--spacer--xs);
|
|
114
128
|
--pf-v6-c-table__expandable-row--m-expanded--BorderBlockEndColor: var(--pf-t--global--border--color--default);
|
|
@@ -134,6 +148,13 @@
|
|
|
134
148
|
--pf-v6-c-table--m-sticky-header--ZIndex: calc(var(--pf-t--global--z-index--xs) + 1);
|
|
135
149
|
--pf-v6-c-table--m-sticky-header--border--ZIndex: calc(var(--pf-t--global--z-index--xs) + 2);
|
|
136
150
|
}
|
|
151
|
+
@media screen and (prefers-reduced-motion: no-preference) {
|
|
152
|
+
.pf-v6-c-table {
|
|
153
|
+
--pf-v6-c-table__expandable-row--TransitionDuration--expand--slide: var(--pf-t--global--motion--duration--fade--default);
|
|
154
|
+
--pf-v6-c-table__expandable-row--TransitionDuration--collapse--slide: var(--pf-t--global--motion--duration--fade--short);
|
|
155
|
+
--pf-v6-c-table__expandable-row--TranslateY: -.5rem;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
137
158
|
|
|
138
159
|
.pf-v6-c-table {
|
|
139
160
|
width: 100%;
|
|
@@ -330,6 +351,10 @@
|
|
|
330
351
|
.pf-v6-c-table tbody:where(.pf-v6-c-table__tbody) > tr:where(.pf-v6-c-table__tr) > :where(th, td) {
|
|
331
352
|
overflow-wrap: break-word;
|
|
332
353
|
}
|
|
354
|
+
.pf-v6-c-table .pf-v6-c-table__td.pf-m-action {
|
|
355
|
+
--pf-v6-c-table--cell--PaddingBlockStart: var(--pf-v6-c-table__td--m-action--PaddingBlockStart);
|
|
356
|
+
--pf-v6-c-table--cell--PaddingBlockEnd: var(--pf-v6-c-table__td--m-action--PaddingBlockEnd);
|
|
357
|
+
}
|
|
333
358
|
.pf-v6-c-table .pf-v6-c-table__sort {
|
|
334
359
|
min-width: var(--pf-v6-c-table__sort--MinWidth);
|
|
335
360
|
}
|
|
@@ -398,6 +423,51 @@
|
|
|
398
423
|
.pf-v6-c-table .pf-v6-c-button .pf-v6-c-table__sort-indicator {
|
|
399
424
|
--pf-v6-c-table__sort-indicator--MarginInlineStart: 0;
|
|
400
425
|
}
|
|
426
|
+
.pf-v6-c-table.pf-m-animate-expand > .pf-v6-c-table__tbody.pf-m-expanded > .pf-v6-c-table__control-row {
|
|
427
|
+
border-block-end: 0;
|
|
428
|
+
}
|
|
429
|
+
.pf-v6-c-table.pf-m-animate-expand > .pf-v6-c-table__tbody > .pf-v6-c-table__expandable-row {
|
|
430
|
+
display: var(--pf-v6-c-table__expandable-row--Display, revert);
|
|
431
|
+
visibility: hidden;
|
|
432
|
+
opacity: var(--pf-v6-c-table__expandable-row--Opacity);
|
|
433
|
+
transition-delay: 0s, 0s, var(--pf-v6-c-table__expandable-row--TransitionDuration--collapse--fade), var(--pf-v6-c-table__expandable-row--TransitionDuration--collapse--fade);
|
|
434
|
+
transition-timing-function: var(--pf-v6-c-table__expandable-row--TransitionTimingFunction);
|
|
435
|
+
transition-duration: var(--pf-v6-c-table__expandable-row--TransitionDuration--collapse--fade), var(--pf-v6-c-table__expandable-row--TransitionDuration--collapse--slide), 0s, 0s;
|
|
436
|
+
transition-property: opacity, translate, visibility, background-color;
|
|
437
|
+
translate: 0 var(--pf-v6-c-table__expandable-row--TranslateY);
|
|
438
|
+
}
|
|
439
|
+
.pf-v6-c-table.pf-m-animate-expand > .pf-v6-c-table__tbody > .pf-v6-c-table__expandable-row[hidden] {
|
|
440
|
+
display: var(--pf-v6-c-table__expandable-row--Display, revert);
|
|
441
|
+
}
|
|
442
|
+
.pf-v6-c-table.pf-m-animate-expand > .pf-v6-c-table__tbody > .pf-v6-c-table__expandable-row.pf-m-expanded {
|
|
443
|
+
visibility: visible;
|
|
444
|
+
opacity: var(--pf-v6-c-table__tbody--m-expanded__expandable-row--Opacity);
|
|
445
|
+
transition-delay: 0s;
|
|
446
|
+
transition-duration: var(--pf-v6-c-table__expandable-row--TransitionDuration--expand--fade), var(--pf-v6-c-table__expandable-row--TransitionDuration--expand--slide), 0s, 0s;
|
|
447
|
+
translate: 0 var(--pf-v6-c-table__tbody--m-expanded__expandable-row--TranslateY);
|
|
448
|
+
}
|
|
449
|
+
.pf-v6-c-table.pf-m-animate-expand > .pf-v6-c-table__tbody > .pf-v6-c-table__expandable-row.pf-m-expanded > :is(.pf-v6-c-table__td, .pf-v6-c-table__th) > .pf-v6-c-table__expandable-row-content {
|
|
450
|
+
max-height: 99999px;
|
|
451
|
+
}
|
|
452
|
+
.pf-v6-c-table.pf-m-animate-expand > .pf-v6-c-table__tbody > .pf-v6-c-table__expandable-row:not(.pf-m-expanded) > :is(.pf-v6-c-table__td, .pf-v6-c-table__th),
|
|
453
|
+
.pf-v6-c-table.pf-m-animate-expand > .pf-v6-c-table__tbody > .pf-v6-c-table__expandable-row:not(.pf-m-expanded) > :is(.pf-v6-c-table__td, .pf-v6-c-table__th) > .pf-v6-c-table__expandable-row-content {
|
|
454
|
+
padding: 0;
|
|
455
|
+
overflow: hidden;
|
|
456
|
+
transition-delay: var(--pf-v6-c-table__expandable-row--TransitionDuration--collapse--fade);
|
|
457
|
+
transition-property: padding, max-height, overflow;
|
|
458
|
+
}
|
|
459
|
+
.pf-v6-c-table.pf-m-animate-expand > .pf-v6-c-table__tbody > .pf-v6-c-table__expandable-row:not(.pf-m-expanded) > :is(.pf-v6-c-table__td, .pf-v6-c-table__th) > .pf-v6-c-table__expandable-row-content {
|
|
460
|
+
max-height: 0;
|
|
461
|
+
}
|
|
462
|
+
.pf-v6-c-table.pf-m-animate-expand > .pf-v6-c-table__tbody > .pf-v6-c-table__tr:has(~ .pf-v6-c-table__expandable-row) {
|
|
463
|
+
border-block-end: 0;
|
|
464
|
+
}
|
|
465
|
+
.pf-v6-c-table.pf-m-animate-expand > .pf-v6-c-table__tbody > .pf-v6-c-table__control-row.pf-m-no-animate-expand ~ .pf-v6-c-table__expandable-row {
|
|
466
|
+
--pf-v6-c-table__expandable-row--TransitionDuration--collapse--fade: 0s;
|
|
467
|
+
--pf-v6-c-table__expandable-row--TransitionDuration--collapse--slide: 0s;
|
|
468
|
+
--pf-v6-c-table__expandable-row--TransitionDuration--expand--fade: 0s;
|
|
469
|
+
--pf-v6-c-table__expandable-row--TransitionDuration--expand--slide: 0s;
|
|
470
|
+
}
|
|
401
471
|
|
|
402
472
|
[class*=pf-v6-c-table].pf-m-truncate {
|
|
403
473
|
--pf-v6-c-table--cell--MinWidth: var(--pf-v6-c-table--m-truncate--cell--MinWidth);
|
|
@@ -544,6 +614,12 @@
|
|
|
544
614
|
--pf-v6-c-table--cell--PaddingInlineStart: var(--pf-v6-c-table__toggle--PaddingInlineStart);
|
|
545
615
|
--pf-v6-c-table--cell--PaddingInlineEnd: var(--pf-v6-c-table__toggle--PaddingInlineEnd);
|
|
546
616
|
}
|
|
617
|
+
.pf-v6-c-table__thead .pf-v6-c-table__toggle .pf-v6-c-button {
|
|
618
|
+
margin-block-start: calc(var(--pf-v6-c-button--PaddingBlockStart) * -1);
|
|
619
|
+
margin-block-end: calc(var(--pf-v6-c-button--PaddingBlockEnd) * -1);
|
|
620
|
+
line-height: 1lh;
|
|
621
|
+
}
|
|
622
|
+
|
|
547
623
|
.pf-v6-c-table__toggle .pf-v6-c-button.pf-m-expanded .pf-v6-c-table__toggle-icon {
|
|
548
624
|
transform: rotate(var(--pf-v6-c-table__toggle--c-button--m-expanded__toggle-icon--Rotate));
|
|
549
625
|
}
|
|
@@ -666,6 +742,9 @@ thead .pf-v6-c-table__check .pf-v6-c-radio.pf-m-standalone {
|
|
|
666
742
|
align-self: last baseline;
|
|
667
743
|
margin-inline-start: var(--pf-v6-c-table__column-help--MarginInlineStart);
|
|
668
744
|
}
|
|
745
|
+
.pf-v6-c-table__column-help-action .pf-v6-c-button {
|
|
746
|
+
line-height: 1lh;
|
|
747
|
+
}
|
|
669
748
|
|
|
670
749
|
.pf-v6-c-table__sort {
|
|
671
750
|
vertical-align: bottom;
|
|
@@ -707,7 +786,9 @@ thead .pf-v6-c-table__check .pf-v6-c-radio.pf-m-standalone {
|
|
|
707
786
|
:not(.pf-v6-c-table__control-row) ~ .pf-v6-c-table__expandable-row > .pf-v6-c-table__td {
|
|
708
787
|
padding-block-start: 0;
|
|
709
788
|
}
|
|
710
|
-
|
|
789
|
+
.pf-v6-c-table__control-row ~ .pf-v6-c-table__expandable-row.pf-m-expanded > :is(.pf-v6-c-table__th, .pf-v6-c-table__td):not(.pf-m-no-padding) {
|
|
790
|
+
padding-block-start: var(--pf-v6-c-table--cell--PaddingBlockStart);
|
|
791
|
+
}
|
|
711
792
|
.pf-v6-c-table__expandable-row td:where(.pf-v6-c-table__td).pf-m-no-padding,
|
|
712
793
|
.pf-v6-c-table__expandable-row th:where(.pf-v6-c-table__th).pf-m-no-padding {
|
|
713
794
|
padding-block-start: 0;
|
|
@@ -718,6 +799,7 @@ thead .pf-v6-c-table__check .pf-v6-c-radio.pf-m-standalone {
|
|
|
718
799
|
.pf-v6-c-table__expandable-row td:where(.pf-v6-c-table__td).pf-m-no-padding .pf-v6-c-table__expandable-row-content,
|
|
719
800
|
.pf-v6-c-table__expandable-row th:where(.pf-v6-c-table__th).pf-m-no-padding .pf-v6-c-table__expandable-row-content {
|
|
720
801
|
padding: 0;
|
|
802
|
+
border-radius: 0;
|
|
721
803
|
}
|
|
722
804
|
.pf-v6-c-table__expandable-row .pf-v6-c-table__expandable-row-content {
|
|
723
805
|
padding-block-start: var(--pf-v6-c-table__expandable-row-content--PaddingBlockStart);
|
|
@@ -727,6 +809,9 @@ thead .pf-v6-c-table__check .pf-v6-c-radio.pf-m-standalone {
|
|
|
727
809
|
background-color: var(--pf-v6-c-table__expandable-row-content--BackgroundColor);
|
|
728
810
|
border-radius: var(--pf-v6-c-table__expandable-row-content--BorderRadius);
|
|
729
811
|
}
|
|
812
|
+
.pf-v6-c-table__expandable-row .pf-v6-c-table__expandable-row-content.pf-m-no-background {
|
|
813
|
+
background-color: transparent;
|
|
814
|
+
}
|
|
730
815
|
.pf-v6-c-table__expandable-row.pf-m-expanded {
|
|
731
816
|
border-block-end-color: var(--pf-v6-c-table__expandable-row--m-expanded--BorderBlockEndColor);
|
|
732
817
|
border-block-end-width: var(--pf-v6-c-table--border-width--base);
|
|
@@ -758,6 +843,10 @@ thead .pf-v6-c-table__check .pf-v6-c-radio.pf-m-standalone {
|
|
|
758
843
|
--pf-v6-c-table--cell--PaddingBlockStart: var(--pf-v6-c-table--m-compact__action--PaddingBlockStart);
|
|
759
844
|
--pf-v6-c-table--cell--PaddingBlockEnd: var(--pf-v6-c-table--m-compact__action--PaddingBlockEnd);
|
|
760
845
|
}
|
|
846
|
+
.pf-v6-c-table.pf-m-compact .pf-v6-c-table__td.pf-m-action {
|
|
847
|
+
--pf-v6-c-table--cell--PaddingBlockStart: var(--pf-v6-c-table--m-compact__td--m-action--PaddingBlockStart);
|
|
848
|
+
--pf-v6-c-table--cell--PaddingBlockEnd: var(--pf-v6-c-table--m-compact__td--m-action--PaddingBlockEnd);
|
|
849
|
+
}
|
|
761
850
|
.pf-v6-c-table.pf-m-compact .pf-v6-c-table__icon {
|
|
762
851
|
width: auto;
|
|
763
852
|
min-width: 0;
|
|
@@ -766,6 +855,7 @@ thead .pf-v6-c-table__check .pf-v6-c-radio.pf-m-standalone {
|
|
|
766
855
|
|
|
767
856
|
.pf-v6-c-table__thead {
|
|
768
857
|
--pf-v6-c-table__tr--BorderBlockEndWidth: 0;
|
|
858
|
+
--pf-v6-c-table__toggle--PaddingBlockStart: var(--pf-v6-c-table__thead__toggle--PaddingBlockStart);
|
|
769
859
|
--pf-v6-c-table__toggle--PaddingBlockEnd: var(--pf-v6-c-table__thead__toggle--PaddingBlockEnd);
|
|
770
860
|
vertical-align: bottom;
|
|
771
861
|
}
|
|
@@ -795,6 +885,9 @@ thead .pf-v6-c-table__check .pf-v6-c-radio.pf-m-standalone {
|
|
|
795
885
|
background-color: var(--pf-v6-c-table__control-row--BackgroundColor);
|
|
796
886
|
border-block-end: var(--pf-v6-c-table__control-row--BorderBlockEndWidth) solid var(--pf-v6-c-table__control-row__tbody--BorderBlockEndColor);
|
|
797
887
|
}
|
|
888
|
+
.pf-v6-c-table.pf-m-expandable .pf-v6-c-table__tbody.pf-m-expanded .pf-v6-c-table__control-row.pf-m-expanded {
|
|
889
|
+
border-block-end: 0;
|
|
890
|
+
}
|
|
798
891
|
|
|
799
892
|
.pf-v6-c-table__tr {
|
|
800
893
|
border-block-end: var(--pf-v6-c-table__tr--BorderBlockEndWidth) solid var(--pf-v6-c-table__tr--BorderBlockEndColor);
|
|
@@ -21,7 +21,8 @@
|
|
|
21
21
|
--#{$table}__thead--cell--FontWeight: var(--pf-t--global--font--weight--body--bold);
|
|
22
22
|
|
|
23
23
|
// * Table thead toggle
|
|
24
|
-
--#{$table}__thead__toggle--
|
|
24
|
+
--#{$table}__thead__toggle--PaddingBlockStart: var(--#{$table}--cell--Padding--base); // TODO - remove thead toggle custom padding in breaking change
|
|
25
|
+
--#{$table}__thead__toggle--PaddingBlockEnd: var(--#{$table}--cell--Padding--base); // TODO - remove thead toggle custom padding in breaking change
|
|
25
26
|
|
|
26
27
|
// * Table body cell
|
|
27
28
|
--#{$table}__tbody--cell--PaddingBlockStart: var(--#{$table}--cell--Padding--base);
|
|
@@ -118,6 +119,23 @@
|
|
|
118
119
|
--#{$table}__action--PaddingInlineStart: var(--pf-t--global--spacer--sm);
|
|
119
120
|
--#{$table}__action--PaddingInlineEnd: var(--pf-t--global--spacer--sm);
|
|
120
121
|
|
|
122
|
+
// * Table expandable row
|
|
123
|
+
--#{$table}__expandable-row--TransitionDuration--expand--slide: 0s;
|
|
124
|
+
--#{$table}__expandable-row--TransitionDuration--expand--fade: var(--pf-t--global--motion--duration--fade--default);
|
|
125
|
+
--#{$table}__expandable-row--TransitionDuration--collapse--slide: 0s;
|
|
126
|
+
--#{$table}__expandable-row--TransitionDuration--collapse--fade: var(--pf-t--global--motion--duration--fade--short);
|
|
127
|
+
--#{$table}__expandable-row--TransitionTimingFunction: var(--pf-t--global--motion--timing-function--default);
|
|
128
|
+
--#{$table}__expandable-row--Opacity: 0;
|
|
129
|
+
--#{$table}__tbody--m-expanded__expandable-row--Opacity: 1;
|
|
130
|
+
--#{$table}__expandable-row--TranslateY: 0;
|
|
131
|
+
--#{$table}__tbody--m-expanded__expandable-row--TranslateY: 0;
|
|
132
|
+
|
|
133
|
+
@media screen and (prefers-reduced-motion: no-preference) {
|
|
134
|
+
--#{$table}__expandable-row--TransitionDuration--expand--slide: var(--pf-t--global--motion--duration--fade--default);
|
|
135
|
+
--#{$table}__expandable-row--TransitionDuration--collapse--slide: var(--pf-t--global--motion--duration--fade--short);
|
|
136
|
+
--#{$table}__expandable-row--TranslateY: -.5rem;
|
|
137
|
+
}
|
|
138
|
+
|
|
121
139
|
// * Table expandable row content
|
|
122
140
|
--#{$table}__expandable-row-content--PaddingBlockStart: var(--pf-t--global--spacer--md);
|
|
123
141
|
--#{$table}__expandable-row-content--PaddingBlockEnd: var(--pf-t--global--spacer--md);
|
|
@@ -179,6 +197,14 @@
|
|
|
179
197
|
--#{$table}--m-compact--cell--PaddingBlockStart: var(--pf-t--global--spacer--sm);
|
|
180
198
|
--#{$table}--m-compact--cell--PaddingBlockEnd: var(--pf-t--global--spacer--sm);
|
|
181
199
|
|
|
200
|
+
// * Table cell with button
|
|
201
|
+
--#{$table}__td--m-action--PaddingBlockStart: var(--pf-t--global--spacer--sm);
|
|
202
|
+
--#{$table}__td--m-action--PaddingBlockEnd: var(--pf-t--global--spacer--sm);
|
|
203
|
+
|
|
204
|
+
// * Table compact cell with button
|
|
205
|
+
--#{$table}--m-compact__td--m-action--PaddingBlockStart: var(--pf-t--global--spacer--xs);
|
|
206
|
+
--#{$table}--m-compact__td--m-action--PaddingBlockEnd: var(--pf-t--global--spacer--xs);
|
|
207
|
+
|
|
182
208
|
// * Table compact action
|
|
183
209
|
--#{$table}--m-compact__action--PaddingBlockStart: var(--pf-t--global--spacer--xs);
|
|
184
210
|
--#{$table}--m-compact__action--PaddingBlockEnd: var(--pf-t--global--spacer--xs);
|
|
@@ -461,6 +487,11 @@
|
|
|
461
487
|
// }
|
|
462
488
|
// }
|
|
463
489
|
|
|
490
|
+
.#{$table}__td.pf-m-action {
|
|
491
|
+
--pf-v6-c-table--cell--PaddingBlockStart: var(--#{$table}__td--m-action--PaddingBlockStart);
|
|
492
|
+
--pf-v6-c-table--cell--PaddingBlockEnd: var(--#{$table}__td--m-action--PaddingBlockEnd);
|
|
493
|
+
}
|
|
494
|
+
|
|
464
495
|
// - Table sort
|
|
465
496
|
// set property here to increase specificity
|
|
466
497
|
.#{$table}__sort {
|
|
@@ -562,6 +593,74 @@
|
|
|
562
593
|
.#{$button} .#{$table}__sort-indicator {
|
|
563
594
|
--#{$table}__sort-indicator--MarginInlineStart: 0;
|
|
564
595
|
}
|
|
596
|
+
|
|
597
|
+
// stylelint-disable max-nesting-depth, selector-max-class
|
|
598
|
+
&.pf-m-animate-expand {
|
|
599
|
+
> .#{$table}__tbody {
|
|
600
|
+
&.pf-m-expanded {
|
|
601
|
+
> .#{$table}__control-row {
|
|
602
|
+
border-block-end: 0;
|
|
603
|
+
}
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
> .#{$table}__expandable-row {
|
|
607
|
+
display: var(--#{$table}__expandable-row--Display, revert);
|
|
608
|
+
visibility: hidden;
|
|
609
|
+
opacity: var(--#{$table}__expandable-row--Opacity);
|
|
610
|
+
transition-delay: 0s, 0s, var(--#{$table}__expandable-row--TransitionDuration--collapse--fade), var(--#{$table}__expandable-row--TransitionDuration--collapse--fade);
|
|
611
|
+
transition-timing-function: var(--#{$table}__expandable-row--TransitionTimingFunction);
|
|
612
|
+
transition-duration: var(--#{$table}__expandable-row--TransitionDuration--collapse--fade), var(--#{$table}__expandable-row--TransitionDuration--collapse--slide), 0s, 0s;
|
|
613
|
+
transition-property: opacity, translate, visibility, background-color;
|
|
614
|
+
translate: 0 var(--#{$table}__expandable-row--TranslateY);
|
|
615
|
+
|
|
616
|
+
&[hidden] {
|
|
617
|
+
display: var(--#{$table}__expandable-row--Display, revert);
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
&.pf-m-expanded {
|
|
621
|
+
visibility: visible;
|
|
622
|
+
opacity: var(--#{$table}__tbody--m-expanded__expandable-row--Opacity);
|
|
623
|
+
transition-delay: 0s;
|
|
624
|
+
transition-duration: var(--#{$table}__expandable-row--TransitionDuration--expand--fade), var(--#{$table}__expandable-row--TransitionDuration--expand--slide), 0s, 0s;
|
|
625
|
+
translate: 0 var(--#{$table}__tbody--m-expanded__expandable-row--TranslateY);
|
|
626
|
+
|
|
627
|
+
> :is(.#{$table}__td, .#{$table}__th) {
|
|
628
|
+
> .#{$table}__expandable-row-content {
|
|
629
|
+
max-height: 99999px;
|
|
630
|
+
}
|
|
631
|
+
}
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
&:not(.pf-m-expanded) {
|
|
635
|
+
> :is(.#{$table}__td, .#{$table}__th) {
|
|
636
|
+
&,
|
|
637
|
+
> .#{$table}__expandable-row-content {
|
|
638
|
+
padding: 0;
|
|
639
|
+
overflow: hidden;
|
|
640
|
+
transition-delay: var(--#{$table}__expandable-row--TransitionDuration--collapse--fade);
|
|
641
|
+
transition-property: padding, max-height, overflow;
|
|
642
|
+
}
|
|
643
|
+
|
|
644
|
+
> .#{$table}__expandable-row-content {
|
|
645
|
+
max-height: 0;
|
|
646
|
+
}
|
|
647
|
+
}
|
|
648
|
+
}
|
|
649
|
+
}
|
|
650
|
+
|
|
651
|
+
> .#{$table}__tr:has(~ .#{$table}__expandable-row) {
|
|
652
|
+
border-block-end: 0;
|
|
653
|
+
}
|
|
654
|
+
|
|
655
|
+
> .#{$table}__control-row.pf-m-no-animate-expand ~ .#{$table}__expandable-row {
|
|
656
|
+
--#{$table}__expandable-row--TransitionDuration--collapse--fade: 0s;
|
|
657
|
+
--#{$table}__expandable-row--TransitionDuration--collapse--slide: 0s;
|
|
658
|
+
--#{$table}__expandable-row--TransitionDuration--expand--fade: 0s;
|
|
659
|
+
--#{$table}__expandable-row--TransitionDuration--expand--slide: 0s;
|
|
660
|
+
}
|
|
661
|
+
}
|
|
662
|
+
}
|
|
663
|
+
// stylelint-enable
|
|
565
664
|
}
|
|
566
665
|
|
|
567
666
|
// - Table truncate - Table wrap - Table nowrap - Table fit content - Table wrap - Table break word
|
|
@@ -737,13 +836,20 @@
|
|
|
737
836
|
--#{$table}--cell--PaddingInlineStart: var(--#{$table}__toggle--PaddingInlineStart);
|
|
738
837
|
--#{$table}--cell--PaddingInlineEnd: var(--#{$table}__toggle--PaddingInlineEnd);
|
|
739
838
|
|
|
839
|
+
@at-root .#{$table}__thead & {
|
|
840
|
+
.#{$button} {
|
|
841
|
+
margin-block-start: calc(var(--#{$button}--PaddingBlockStart) * -1);
|
|
842
|
+
margin-block-end: calc(var(--#{$button}--PaddingBlockEnd) * -1);
|
|
843
|
+
line-height: 1lh; // set line-height instead of --LineHeight to avoid breaking the min-width calc for plain buttons
|
|
844
|
+
}
|
|
845
|
+
}
|
|
846
|
+
|
|
740
847
|
.#{$button} {
|
|
741
848
|
&.pf-m-expanded .#{$table}__toggle-icon {
|
|
742
849
|
transform: rotate(var(--#{$table}__toggle--c-button--m-expanded__toggle-icon--Rotate));
|
|
743
850
|
}
|
|
744
851
|
}
|
|
745
852
|
|
|
746
|
-
|
|
747
853
|
.#{$table}__toggle-icon {
|
|
748
854
|
@include pf-v6-mirror-inline-on-rtl;
|
|
749
855
|
|
|
@@ -899,6 +1005,10 @@
|
|
|
899
1005
|
.#{$table}__column-help-action {
|
|
900
1006
|
align-self: last baseline;
|
|
901
1007
|
margin-inline-start: var(--#{$table}__column-help--MarginInlineStart);
|
|
1008
|
+
|
|
1009
|
+
.#{$button} {
|
|
1010
|
+
line-height: 1lh; // set line-height instead of --LineHeight to avoid breaking the min-width calc for plain buttons
|
|
1011
|
+
}
|
|
902
1012
|
}
|
|
903
1013
|
|
|
904
1014
|
// - Table sort
|
|
@@ -954,13 +1064,21 @@
|
|
|
954
1064
|
position: relative;
|
|
955
1065
|
border-block-end: 0 solid transparent;
|
|
956
1066
|
|
|
957
|
-
|
|
1067
|
+
// remove top padding from expandable row cells by default
|
|
1068
|
+
:not(.#{$table}__control-row) ~ & {
|
|
958
1069
|
> .#{$table}__th,
|
|
959
1070
|
> .#{$table}__td {
|
|
960
1071
|
padding-block-start: 0;
|
|
961
1072
|
}
|
|
962
1073
|
}
|
|
963
1074
|
|
|
1075
|
+
// add back padding for compound expandable
|
|
1076
|
+
.#{$table}__control-row ~ &.pf-m-expanded {
|
|
1077
|
+
> :is(.#{$table}__th, .#{$table}__td):not(.pf-m-no-padding) {
|
|
1078
|
+
padding-block-start: var(--#{$table}--cell--PaddingBlockStart);
|
|
1079
|
+
}
|
|
1080
|
+
}
|
|
1081
|
+
|
|
964
1082
|
td:where(.#{$table}__td),
|
|
965
1083
|
th:where(.#{$table}__th) {
|
|
966
1084
|
&.pf-m-no-padding {
|
|
@@ -971,6 +1089,7 @@
|
|
|
971
1089
|
|
|
972
1090
|
.#{$table}__expandable-row-content {
|
|
973
1091
|
padding: 0;
|
|
1092
|
+
border-radius: 0;
|
|
974
1093
|
}
|
|
975
1094
|
}
|
|
976
1095
|
}
|
|
@@ -983,6 +1102,10 @@
|
|
|
983
1102
|
padding-inline-end: var(--#{$table}__expandable-row-content--PaddingInlineEnd);
|
|
984
1103
|
background-color: var(--#{$table}__expandable-row-content--BackgroundColor);
|
|
985
1104
|
border-radius: var(--#{$table}__expandable-row-content--BorderRadius);
|
|
1105
|
+
|
|
1106
|
+
&.pf-m-no-background {
|
|
1107
|
+
background-color: transparent;
|
|
1108
|
+
}
|
|
986
1109
|
}
|
|
987
1110
|
|
|
988
1111
|
// - Table expandable row content expanded
|
|
@@ -1031,6 +1154,11 @@
|
|
|
1031
1154
|
--#{$table}--cell--PaddingBlockEnd: var(--#{$table}--m-compact__action--PaddingBlockEnd);
|
|
1032
1155
|
}
|
|
1033
1156
|
|
|
1157
|
+
.#{$table}__td.pf-m-action {
|
|
1158
|
+
--pf-v6-c-table--cell--PaddingBlockStart: var(--#{$table}--m-compact__td--m-action--PaddingBlockStart);
|
|
1159
|
+
--pf-v6-c-table--cell--PaddingBlockEnd: var(--#{$table}--m-compact__td--m-action--PaddingBlockEnd);
|
|
1160
|
+
}
|
|
1161
|
+
|
|
1034
1162
|
.#{$table}__icon {
|
|
1035
1163
|
width: auto;
|
|
1036
1164
|
min-width: 0;
|
|
@@ -1041,6 +1169,7 @@
|
|
|
1041
1169
|
// - Table thead
|
|
1042
1170
|
.#{$table}__thead {
|
|
1043
1171
|
--#{$table}__tr--BorderBlockEndWidth: 0;
|
|
1172
|
+
--#{$table}__toggle--PaddingBlockStart: var(--#{$table}__thead__toggle--PaddingBlockStart);
|
|
1044
1173
|
--#{$table}__toggle--PaddingBlockEnd: var(--#{$table}__thead__toggle--PaddingBlockEnd);
|
|
1045
1174
|
|
|
1046
1175
|
vertical-align: bottom;
|
|
@@ -1086,6 +1215,12 @@
|
|
|
1086
1215
|
.#{$table}__control-row {
|
|
1087
1216
|
background-color: var(--#{$table}__control-row--BackgroundColor);
|
|
1088
1217
|
border-block-end: var(--#{$table}__control-row--BorderBlockEndWidth) solid var(--#{$table}__control-row__tbody--BorderBlockEndColor);
|
|
1218
|
+
|
|
1219
|
+
// stylelint-disable max-nesting-depth, selector-max-class
|
|
1220
|
+
&.pf-m-expanded {
|
|
1221
|
+
border-block-end: 0; // TODO this is a dupe of the block above, consolidate in a breaking change
|
|
1222
|
+
}
|
|
1223
|
+
// stylelint-enable
|
|
1089
1224
|
}
|
|
1090
1225
|
}
|
|
1091
1226
|
}
|