@patternfly/patternfly 6.3.0-prerelease.8 → 6.3.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/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/Skeleton/skeleton.css +22 -2
- package/components/Skeleton/skeleton.scss +25 -3
- 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 +83 -1
- package/components/Table/table.scss +123 -1
- package/components/Tabs/tabs.css +25 -15
- package/components/Tabs/tabs.scss +26 -13
- package/components/TextInputGroup/text-input-group.css +16 -0
- package/components/TextInputGroup/text-input-group.scss +8 -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 +918 -85
- 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 +963 -96
- package/patternfly.css +963 -96
- package/patternfly.min.css +1 -1
- package/patternfly.min.css.map +1 -1
- package/sass-utilities/mixins.scss +54 -0
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
--pf-v6-c-spinner--StrokeWidth: 10;
|
|
9
9
|
--pf-v6-c-spinner__path--StrokeWidth: var(--pf-v6-c-spinner--StrokeWidth);
|
|
10
10
|
--pf-v6-c-spinner__path--AnimationTimingFunction: ease-in-out;
|
|
11
|
+
--pf-v6-c-spinner--m-xs--diameter: var(--pf-t--global--icon--size--sm);
|
|
11
12
|
--pf-v6-c-spinner--m-sm--diameter: var(--pf-t--global--icon--size--md);
|
|
12
13
|
--pf-v6-c-spinner--m-md--diameter: var(--pf-t--global--icon--size--lg);
|
|
13
14
|
--pf-v6-c-spinner--m-lg--diameter: var(--pf-t--global--icon--size--xl);
|
|
@@ -24,6 +25,10 @@
|
|
|
24
25
|
.pf-v6-c-spinner.pf-m-inline {
|
|
25
26
|
--pf-v6-c-spinner--diameter: var(--pf-v6-c-spinner--m-inline--diameter);
|
|
26
27
|
}
|
|
28
|
+
.pf-v6-c-spinner.pf-m-xs {
|
|
29
|
+
--pf-v6-c-spinner--diameter: var(--pf-v6-c-spinner--m-xs--diameter);
|
|
30
|
+
--pf-v6-c-spinner--StrokeWidth: 15;
|
|
31
|
+
}
|
|
27
32
|
.pf-v6-c-spinner.pf-m-sm {
|
|
28
33
|
--pf-v6-c-spinner--diameter: var(--pf-v6-c-spinner--m-sm--diameter);
|
|
29
34
|
}
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
--#{$spinner}__path--AnimationTimingFunction: ease-in-out;
|
|
15
15
|
|
|
16
16
|
// sizes
|
|
17
|
+
--#{$spinner}--m-xs--diameter: var(--pf-t--global--icon--size--sm);
|
|
17
18
|
--#{$spinner}--m-sm--diameter: var(--pf-t--global--icon--size--md);
|
|
18
19
|
--#{$spinner}--m-md--diameter: var(--pf-t--global--icon--size--lg);
|
|
19
20
|
--#{$spinner}--m-lg--diameter: var(--pf-t--global--icon--size--xl);
|
|
@@ -34,6 +35,11 @@
|
|
|
34
35
|
--#{$spinner}--diameter: var(--#{$spinner}--m-inline--diameter);
|
|
35
36
|
}
|
|
36
37
|
|
|
38
|
+
&.pf-m-xs {
|
|
39
|
+
--#{$spinner}--diameter: var(--#{$spinner}--m-xs--diameter);
|
|
40
|
+
--#{$spinner}--StrokeWidth: 15;
|
|
41
|
+
}
|
|
42
|
+
|
|
37
43
|
&.pf-m-sm {
|
|
38
44
|
--#{$spinner}--diameter: var(--#{$spinner}--m-sm--diameter);
|
|
39
45
|
}
|
|
@@ -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
|
}
|
|
@@ -74,6 +74,15 @@
|
|
|
74
74
|
--pf-v6-c-table__action--PaddingBlockEnd: var(--pf-t--global--spacer--sm);
|
|
75
75
|
--pf-v6-c-table__action--PaddingInlineStart: var(--pf-t--global--spacer--sm);
|
|
76
76
|
--pf-v6-c-table__action--PaddingInlineEnd: var(--pf-t--global--spacer--sm);
|
|
77
|
+
--pf-v6-c-table__expandable-row--TransitionDuration--expand--slide: 0s;
|
|
78
|
+
--pf-v6-c-table__expandable-row--TransitionDuration--expand--fade: var(--pf-t--global--motion--duration--fade--default);
|
|
79
|
+
--pf-v6-c-table__expandable-row--TransitionDuration--collapse--slide: 0s;
|
|
80
|
+
--pf-v6-c-table__expandable-row--TransitionDuration--collapse--fade: var(--pf-t--global--motion--duration--fade--short);
|
|
81
|
+
--pf-v6-c-table__expandable-row--TransitionTimingFunction: var(--pf-t--global--motion--timing-function--default);
|
|
82
|
+
--pf-v6-c-table__expandable-row--Opacity: 0;
|
|
83
|
+
--pf-v6-c-table__tbody--m-expanded__expandable-row--Opacity: 1;
|
|
84
|
+
--pf-v6-c-table__expandable-row--TranslateY: 0;
|
|
85
|
+
--pf-v6-c-table__tbody--m-expanded__expandable-row--TranslateY: 0;
|
|
77
86
|
--pf-v6-c-table__expandable-row-content--PaddingBlockStart: var(--pf-t--global--spacer--md);
|
|
78
87
|
--pf-v6-c-table__expandable-row-content--PaddingBlockEnd: var(--pf-t--global--spacer--md);
|
|
79
88
|
--pf-v6-c-table__expandable-row-content--PaddingInlineStart: var(--pf-t--global--spacer--md);
|
|
@@ -109,6 +118,10 @@
|
|
|
109
118
|
--pf-v6-c-table--m-compact__th--PaddingBlockEnd: var(--pf-t--global--spacer--sm);
|
|
110
119
|
--pf-v6-c-table--m-compact--cell--PaddingBlockStart: var(--pf-t--global--spacer--sm);
|
|
111
120
|
--pf-v6-c-table--m-compact--cell--PaddingBlockEnd: var(--pf-t--global--spacer--sm);
|
|
121
|
+
--pf-v6-c-table__td--m-action--PaddingBlockStart: var(--pf-t--global--spacer--sm);
|
|
122
|
+
--pf-v6-c-table__td--m-action--PaddingBlockEnd: var(--pf-t--global--spacer--sm);
|
|
123
|
+
--pf-v6-c-table--m-compact__td--m-action--PaddingBlockStart: var(--pf-t--global--spacer--xs);
|
|
124
|
+
--pf-v6-c-table--m-compact__td--m-action--PaddingBlockEnd: var(--pf-t--global--spacer--xs);
|
|
112
125
|
--pf-v6-c-table--m-compact__action--PaddingBlockStart: var(--pf-t--global--spacer--xs);
|
|
113
126
|
--pf-v6-c-table--m-compact__action--PaddingBlockEnd: var(--pf-t--global--spacer--xs);
|
|
114
127
|
--pf-v6-c-table__expandable-row--m-expanded--BorderBlockEndColor: var(--pf-t--global--border--color--default);
|
|
@@ -134,6 +147,13 @@
|
|
|
134
147
|
--pf-v6-c-table--m-sticky-header--ZIndex: calc(var(--pf-t--global--z-index--xs) + 1);
|
|
135
148
|
--pf-v6-c-table--m-sticky-header--border--ZIndex: calc(var(--pf-t--global--z-index--xs) + 2);
|
|
136
149
|
}
|
|
150
|
+
@media screen and (prefers-reduced-motion: no-preference) {
|
|
151
|
+
.pf-v6-c-table {
|
|
152
|
+
--pf-v6-c-table__expandable-row--TransitionDuration--expand--slide: var(--pf-t--global--motion--duration--fade--default);
|
|
153
|
+
--pf-v6-c-table__expandable-row--TransitionDuration--collapse--slide: var(--pf-t--global--motion--duration--fade--short);
|
|
154
|
+
--pf-v6-c-table__expandable-row--TranslateY: -.5rem;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
137
157
|
|
|
138
158
|
.pf-v6-c-table {
|
|
139
159
|
width: 100%;
|
|
@@ -330,6 +350,10 @@
|
|
|
330
350
|
.pf-v6-c-table tbody:where(.pf-v6-c-table__tbody) > tr:where(.pf-v6-c-table__tr) > :where(th, td) {
|
|
331
351
|
overflow-wrap: break-word;
|
|
332
352
|
}
|
|
353
|
+
.pf-v6-c-table .pf-v6-c-table__td.pf-m-action {
|
|
354
|
+
--pf-v6-c-table--cell--PaddingBlockStart: var(--pf-v6-c-table__td--m-action--PaddingBlockStart);
|
|
355
|
+
--pf-v6-c-table--cell--PaddingBlockEnd: var(--pf-v6-c-table__td--m-action--PaddingBlockEnd);
|
|
356
|
+
}
|
|
333
357
|
.pf-v6-c-table .pf-v6-c-table__sort {
|
|
334
358
|
min-width: var(--pf-v6-c-table__sort--MinWidth);
|
|
335
359
|
}
|
|
@@ -398,6 +422,51 @@
|
|
|
398
422
|
.pf-v6-c-table .pf-v6-c-button .pf-v6-c-table__sort-indicator {
|
|
399
423
|
--pf-v6-c-table__sort-indicator--MarginInlineStart: 0;
|
|
400
424
|
}
|
|
425
|
+
.pf-v6-c-table.pf-m-animate-expand > .pf-v6-c-table__tbody.pf-m-expanded > .pf-v6-c-table__control-row {
|
|
426
|
+
border-block-end: 0;
|
|
427
|
+
}
|
|
428
|
+
.pf-v6-c-table.pf-m-animate-expand > .pf-v6-c-table__tbody > .pf-v6-c-table__expandable-row {
|
|
429
|
+
display: var(--pf-v6-c-table__expandable-row--Display, revert);
|
|
430
|
+
visibility: hidden;
|
|
431
|
+
opacity: var(--pf-v6-c-table__expandable-row--Opacity);
|
|
432
|
+
transition-delay: 0s, 0s, var(--pf-v6-c-table__expandable-row--TransitionDuration--collapse--fade), var(--pf-v6-c-table__expandable-row--TransitionDuration--collapse--fade);
|
|
433
|
+
transition-timing-function: var(--pf-v6-c-table__expandable-row--TransitionTimingFunction);
|
|
434
|
+
transition-duration: var(--pf-v6-c-table__expandable-row--TransitionDuration--collapse--fade), var(--pf-v6-c-table__expandable-row--TransitionDuration--collapse--slide), 0s, 0s;
|
|
435
|
+
transition-property: opacity, translate, visibility, background-color;
|
|
436
|
+
translate: 0 var(--pf-v6-c-table__expandable-row--TranslateY);
|
|
437
|
+
}
|
|
438
|
+
.pf-v6-c-table.pf-m-animate-expand > .pf-v6-c-table__tbody > .pf-v6-c-table__expandable-row[hidden] {
|
|
439
|
+
display: var(--pf-v6-c-table__expandable-row--Display, revert);
|
|
440
|
+
}
|
|
441
|
+
.pf-v6-c-table.pf-m-animate-expand > .pf-v6-c-table__tbody > .pf-v6-c-table__expandable-row.pf-m-expanded {
|
|
442
|
+
visibility: visible;
|
|
443
|
+
opacity: var(--pf-v6-c-table__tbody--m-expanded__expandable-row--Opacity);
|
|
444
|
+
transition-delay: 0s;
|
|
445
|
+
transition-duration: var(--pf-v6-c-table__expandable-row--TransitionDuration--expand--fade), var(--pf-v6-c-table__expandable-row--TransitionDuration--expand--slide), 0s, 0s;
|
|
446
|
+
translate: 0 var(--pf-v6-c-table__tbody--m-expanded__expandable-row--TranslateY);
|
|
447
|
+
}
|
|
448
|
+
.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 {
|
|
449
|
+
max-height: 99999px;
|
|
450
|
+
}
|
|
451
|
+
.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),
|
|
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) > .pf-v6-c-table__expandable-row-content {
|
|
453
|
+
padding: 0;
|
|
454
|
+
overflow: hidden;
|
|
455
|
+
transition-delay: var(--pf-v6-c-table__expandable-row--TransitionDuration--collapse--fade);
|
|
456
|
+
transition-property: padding, max-height, overflow;
|
|
457
|
+
}
|
|
458
|
+
.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 {
|
|
459
|
+
max-height: 0;
|
|
460
|
+
}
|
|
461
|
+
.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) {
|
|
462
|
+
border-block-end: 0;
|
|
463
|
+
}
|
|
464
|
+
.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 {
|
|
465
|
+
--pf-v6-c-table__expandable-row--TransitionDuration--collapse--fade: 0s;
|
|
466
|
+
--pf-v6-c-table__expandable-row--TransitionDuration--collapse--slide: 0s;
|
|
467
|
+
--pf-v6-c-table__expandable-row--TransitionDuration--expand--fade: 0s;
|
|
468
|
+
--pf-v6-c-table__expandable-row--TransitionDuration--expand--slide: 0s;
|
|
469
|
+
}
|
|
401
470
|
|
|
402
471
|
[class*=pf-v6-c-table].pf-m-truncate {
|
|
403
472
|
--pf-v6-c-table--cell--MinWidth: var(--pf-v6-c-table--m-truncate--cell--MinWidth);
|
|
@@ -707,7 +776,9 @@ thead .pf-v6-c-table__check .pf-v6-c-radio.pf-m-standalone {
|
|
|
707
776
|
:not(.pf-v6-c-table__control-row) ~ .pf-v6-c-table__expandable-row > .pf-v6-c-table__td {
|
|
708
777
|
padding-block-start: 0;
|
|
709
778
|
}
|
|
710
|
-
|
|
779
|
+
.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) {
|
|
780
|
+
padding-block-start: var(--pf-v6-c-table--cell--PaddingBlockStart);
|
|
781
|
+
}
|
|
711
782
|
.pf-v6-c-table__expandable-row td:where(.pf-v6-c-table__td).pf-m-no-padding,
|
|
712
783
|
.pf-v6-c-table__expandable-row th:where(.pf-v6-c-table__th).pf-m-no-padding {
|
|
713
784
|
padding-block-start: 0;
|
|
@@ -718,6 +789,7 @@ thead .pf-v6-c-table__check .pf-v6-c-radio.pf-m-standalone {
|
|
|
718
789
|
.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
790
|
.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
791
|
padding: 0;
|
|
792
|
+
border-radius: 0;
|
|
721
793
|
}
|
|
722
794
|
.pf-v6-c-table__expandable-row .pf-v6-c-table__expandable-row-content {
|
|
723
795
|
padding-block-start: var(--pf-v6-c-table__expandable-row-content--PaddingBlockStart);
|
|
@@ -727,6 +799,9 @@ thead .pf-v6-c-table__check .pf-v6-c-radio.pf-m-standalone {
|
|
|
727
799
|
background-color: var(--pf-v6-c-table__expandable-row-content--BackgroundColor);
|
|
728
800
|
border-radius: var(--pf-v6-c-table__expandable-row-content--BorderRadius);
|
|
729
801
|
}
|
|
802
|
+
.pf-v6-c-table__expandable-row .pf-v6-c-table__expandable-row-content.pf-m-no-background {
|
|
803
|
+
background-color: transparent;
|
|
804
|
+
}
|
|
730
805
|
.pf-v6-c-table__expandable-row.pf-m-expanded {
|
|
731
806
|
border-block-end-color: var(--pf-v6-c-table__expandable-row--m-expanded--BorderBlockEndColor);
|
|
732
807
|
border-block-end-width: var(--pf-v6-c-table--border-width--base);
|
|
@@ -758,6 +833,10 @@ thead .pf-v6-c-table__check .pf-v6-c-radio.pf-m-standalone {
|
|
|
758
833
|
--pf-v6-c-table--cell--PaddingBlockStart: var(--pf-v6-c-table--m-compact__action--PaddingBlockStart);
|
|
759
834
|
--pf-v6-c-table--cell--PaddingBlockEnd: var(--pf-v6-c-table--m-compact__action--PaddingBlockEnd);
|
|
760
835
|
}
|
|
836
|
+
.pf-v6-c-table.pf-m-compact .pf-v6-c-table__td.pf-m-action {
|
|
837
|
+
--pf-v6-c-table--cell--PaddingBlockStart: var(--pf-v6-c-table--m-compact__td--m-action--PaddingBlockStart);
|
|
838
|
+
--pf-v6-c-table--cell--PaddingBlockEnd: var(--pf-v6-c-table--m-compact__td--m-action--PaddingBlockEnd);
|
|
839
|
+
}
|
|
761
840
|
.pf-v6-c-table.pf-m-compact .pf-v6-c-table__icon {
|
|
762
841
|
width: auto;
|
|
763
842
|
min-width: 0;
|
|
@@ -795,6 +874,9 @@ thead .pf-v6-c-table__check .pf-v6-c-radio.pf-m-standalone {
|
|
|
795
874
|
background-color: var(--pf-v6-c-table__control-row--BackgroundColor);
|
|
796
875
|
border-block-end: var(--pf-v6-c-table__control-row--BorderBlockEndWidth) solid var(--pf-v6-c-table__control-row__tbody--BorderBlockEndColor);
|
|
797
876
|
}
|
|
877
|
+
.pf-v6-c-table.pf-m-expandable .pf-v6-c-table__tbody.pf-m-expanded .pf-v6-c-table__control-row.pf-m-expanded {
|
|
878
|
+
border-block-end: 0;
|
|
879
|
+
}
|
|
798
880
|
|
|
799
881
|
.pf-v6-c-table__tr {
|
|
800
882
|
border-block-end: var(--pf-v6-c-table__tr--BorderBlockEndWidth) solid var(--pf-v6-c-table__tr--BorderBlockEndColor);
|
|
@@ -118,6 +118,23 @@
|
|
|
118
118
|
--#{$table}__action--PaddingInlineStart: var(--pf-t--global--spacer--sm);
|
|
119
119
|
--#{$table}__action--PaddingInlineEnd: var(--pf-t--global--spacer--sm);
|
|
120
120
|
|
|
121
|
+
// * Table expandable row
|
|
122
|
+
--#{$table}__expandable-row--TransitionDuration--expand--slide: 0s;
|
|
123
|
+
--#{$table}__expandable-row--TransitionDuration--expand--fade: var(--pf-t--global--motion--duration--fade--default);
|
|
124
|
+
--#{$table}__expandable-row--TransitionDuration--collapse--slide: 0s;
|
|
125
|
+
--#{$table}__expandable-row--TransitionDuration--collapse--fade: var(--pf-t--global--motion--duration--fade--short);
|
|
126
|
+
--#{$table}__expandable-row--TransitionTimingFunction: var(--pf-t--global--motion--timing-function--default);
|
|
127
|
+
--#{$table}__expandable-row--Opacity: 0;
|
|
128
|
+
--#{$table}__tbody--m-expanded__expandable-row--Opacity: 1;
|
|
129
|
+
--#{$table}__expandable-row--TranslateY: 0;
|
|
130
|
+
--#{$table}__tbody--m-expanded__expandable-row--TranslateY: 0;
|
|
131
|
+
|
|
132
|
+
@media screen and (prefers-reduced-motion: no-preference) {
|
|
133
|
+
--#{$table}__expandable-row--TransitionDuration--expand--slide: var(--pf-t--global--motion--duration--fade--default);
|
|
134
|
+
--#{$table}__expandable-row--TransitionDuration--collapse--slide: var(--pf-t--global--motion--duration--fade--short);
|
|
135
|
+
--#{$table}__expandable-row--TranslateY: -.5rem;
|
|
136
|
+
}
|
|
137
|
+
|
|
121
138
|
// * Table expandable row content
|
|
122
139
|
--#{$table}__expandable-row-content--PaddingBlockStart: var(--pf-t--global--spacer--md);
|
|
123
140
|
--#{$table}__expandable-row-content--PaddingBlockEnd: var(--pf-t--global--spacer--md);
|
|
@@ -179,6 +196,14 @@
|
|
|
179
196
|
--#{$table}--m-compact--cell--PaddingBlockStart: var(--pf-t--global--spacer--sm);
|
|
180
197
|
--#{$table}--m-compact--cell--PaddingBlockEnd: var(--pf-t--global--spacer--sm);
|
|
181
198
|
|
|
199
|
+
// * Table cell with button
|
|
200
|
+
--#{$table}__td--m-action--PaddingBlockStart: var(--pf-t--global--spacer--sm);
|
|
201
|
+
--#{$table}__td--m-action--PaddingBlockEnd: var(--pf-t--global--spacer--sm);
|
|
202
|
+
|
|
203
|
+
// * Table compact cell with button
|
|
204
|
+
--#{$table}--m-compact__td--m-action--PaddingBlockStart: var(--pf-t--global--spacer--xs);
|
|
205
|
+
--#{$table}--m-compact__td--m-action--PaddingBlockEnd: var(--pf-t--global--spacer--xs);
|
|
206
|
+
|
|
182
207
|
// * Table compact action
|
|
183
208
|
--#{$table}--m-compact__action--PaddingBlockStart: var(--pf-t--global--spacer--xs);
|
|
184
209
|
--#{$table}--m-compact__action--PaddingBlockEnd: var(--pf-t--global--spacer--xs);
|
|
@@ -461,6 +486,11 @@
|
|
|
461
486
|
// }
|
|
462
487
|
// }
|
|
463
488
|
|
|
489
|
+
.#{$table}__td.pf-m-action {
|
|
490
|
+
--pf-v6-c-table--cell--PaddingBlockStart: var(--#{$table}__td--m-action--PaddingBlockStart);
|
|
491
|
+
--pf-v6-c-table--cell--PaddingBlockEnd: var(--#{$table}__td--m-action--PaddingBlockEnd);
|
|
492
|
+
}
|
|
493
|
+
|
|
464
494
|
// - Table sort
|
|
465
495
|
// set property here to increase specificity
|
|
466
496
|
.#{$table}__sort {
|
|
@@ -562,6 +592,74 @@
|
|
|
562
592
|
.#{$button} .#{$table}__sort-indicator {
|
|
563
593
|
--#{$table}__sort-indicator--MarginInlineStart: 0;
|
|
564
594
|
}
|
|
595
|
+
|
|
596
|
+
// stylelint-disable max-nesting-depth, selector-max-class
|
|
597
|
+
&.pf-m-animate-expand {
|
|
598
|
+
> .#{$table}__tbody {
|
|
599
|
+
&.pf-m-expanded {
|
|
600
|
+
> .#{$table}__control-row {
|
|
601
|
+
border-block-end: 0;
|
|
602
|
+
}
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
> .#{$table}__expandable-row {
|
|
606
|
+
display: var(--#{$table}__expandable-row--Display, revert);
|
|
607
|
+
visibility: hidden;
|
|
608
|
+
opacity: var(--#{$table}__expandable-row--Opacity);
|
|
609
|
+
transition-delay: 0s, 0s, var(--#{$table}__expandable-row--TransitionDuration--collapse--fade), var(--#{$table}__expandable-row--TransitionDuration--collapse--fade);
|
|
610
|
+
transition-timing-function: var(--#{$table}__expandable-row--TransitionTimingFunction);
|
|
611
|
+
transition-duration: var(--#{$table}__expandable-row--TransitionDuration--collapse--fade), var(--#{$table}__expandable-row--TransitionDuration--collapse--slide), 0s, 0s;
|
|
612
|
+
transition-property: opacity, translate, visibility, background-color;
|
|
613
|
+
translate: 0 var(--#{$table}__expandable-row--TranslateY);
|
|
614
|
+
|
|
615
|
+
&[hidden] {
|
|
616
|
+
display: var(--#{$table}__expandable-row--Display, revert);
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
&.pf-m-expanded {
|
|
620
|
+
visibility: visible;
|
|
621
|
+
opacity: var(--#{$table}__tbody--m-expanded__expandable-row--Opacity);
|
|
622
|
+
transition-delay: 0s;
|
|
623
|
+
transition-duration: var(--#{$table}__expandable-row--TransitionDuration--expand--fade), var(--#{$table}__expandable-row--TransitionDuration--expand--slide), 0s, 0s;
|
|
624
|
+
translate: 0 var(--#{$table}__tbody--m-expanded__expandable-row--TranslateY);
|
|
625
|
+
|
|
626
|
+
> :is(.#{$table}__td, .#{$table}__th) {
|
|
627
|
+
> .#{$table}__expandable-row-content {
|
|
628
|
+
max-height: 99999px;
|
|
629
|
+
}
|
|
630
|
+
}
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
&:not(.pf-m-expanded) {
|
|
634
|
+
> :is(.#{$table}__td, .#{$table}__th) {
|
|
635
|
+
&,
|
|
636
|
+
> .#{$table}__expandable-row-content {
|
|
637
|
+
padding: 0;
|
|
638
|
+
overflow: hidden;
|
|
639
|
+
transition-delay: var(--#{$table}__expandable-row--TransitionDuration--collapse--fade);
|
|
640
|
+
transition-property: padding, max-height, overflow;
|
|
641
|
+
}
|
|
642
|
+
|
|
643
|
+
> .#{$table}__expandable-row-content {
|
|
644
|
+
max-height: 0;
|
|
645
|
+
}
|
|
646
|
+
}
|
|
647
|
+
}
|
|
648
|
+
}
|
|
649
|
+
|
|
650
|
+
> .#{$table}__tr:has(~ .#{$table}__expandable-row) {
|
|
651
|
+
border-block-end: 0;
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
> .#{$table}__control-row.pf-m-no-animate-expand ~ .#{$table}__expandable-row {
|
|
655
|
+
--#{$table}__expandable-row--TransitionDuration--collapse--fade: 0s;
|
|
656
|
+
--#{$table}__expandable-row--TransitionDuration--collapse--slide: 0s;
|
|
657
|
+
--#{$table}__expandable-row--TransitionDuration--expand--fade: 0s;
|
|
658
|
+
--#{$table}__expandable-row--TransitionDuration--expand--slide: 0s;
|
|
659
|
+
}
|
|
660
|
+
}
|
|
661
|
+
}
|
|
662
|
+
// stylelint-enable
|
|
565
663
|
}
|
|
566
664
|
|
|
567
665
|
// - Table truncate - Table wrap - Table nowrap - Table fit content - Table wrap - Table break word
|
|
@@ -954,13 +1052,21 @@
|
|
|
954
1052
|
position: relative;
|
|
955
1053
|
border-block-end: 0 solid transparent;
|
|
956
1054
|
|
|
957
|
-
|
|
1055
|
+
// remove top padding from expandable row cells by default
|
|
1056
|
+
:not(.#{$table}__control-row) ~ & {
|
|
958
1057
|
> .#{$table}__th,
|
|
959
1058
|
> .#{$table}__td {
|
|
960
1059
|
padding-block-start: 0;
|
|
961
1060
|
}
|
|
962
1061
|
}
|
|
963
1062
|
|
|
1063
|
+
// add back padding for compound expandable
|
|
1064
|
+
.#{$table}__control-row ~ &.pf-m-expanded {
|
|
1065
|
+
> :is(.#{$table}__th, .#{$table}__td):not(.pf-m-no-padding) {
|
|
1066
|
+
padding-block-start: var(--#{$table}--cell--PaddingBlockStart);
|
|
1067
|
+
}
|
|
1068
|
+
}
|
|
1069
|
+
|
|
964
1070
|
td:where(.#{$table}__td),
|
|
965
1071
|
th:where(.#{$table}__th) {
|
|
966
1072
|
&.pf-m-no-padding {
|
|
@@ -971,6 +1077,7 @@
|
|
|
971
1077
|
|
|
972
1078
|
.#{$table}__expandable-row-content {
|
|
973
1079
|
padding: 0;
|
|
1080
|
+
border-radius: 0;
|
|
974
1081
|
}
|
|
975
1082
|
}
|
|
976
1083
|
}
|
|
@@ -983,6 +1090,10 @@
|
|
|
983
1090
|
padding-inline-end: var(--#{$table}__expandable-row-content--PaddingInlineEnd);
|
|
984
1091
|
background-color: var(--#{$table}__expandable-row-content--BackgroundColor);
|
|
985
1092
|
border-radius: var(--#{$table}__expandable-row-content--BorderRadius);
|
|
1093
|
+
|
|
1094
|
+
&.pf-m-no-background {
|
|
1095
|
+
background-color: transparent;
|
|
1096
|
+
}
|
|
986
1097
|
}
|
|
987
1098
|
|
|
988
1099
|
// - Table expandable row content expanded
|
|
@@ -1031,6 +1142,11 @@
|
|
|
1031
1142
|
--#{$table}--cell--PaddingBlockEnd: var(--#{$table}--m-compact__action--PaddingBlockEnd);
|
|
1032
1143
|
}
|
|
1033
1144
|
|
|
1145
|
+
.#{$table}__td.pf-m-action {
|
|
1146
|
+
--pf-v6-c-table--cell--PaddingBlockStart: var(--#{$table}--m-compact__td--m-action--PaddingBlockStart);
|
|
1147
|
+
--pf-v6-c-table--cell--PaddingBlockEnd: var(--#{$table}--m-compact__td--m-action--PaddingBlockEnd);
|
|
1148
|
+
}
|
|
1149
|
+
|
|
1034
1150
|
.#{$table}__icon {
|
|
1035
1151
|
width: auto;
|
|
1036
1152
|
min-width: 0;
|
|
@@ -1086,6 +1202,12 @@
|
|
|
1086
1202
|
.#{$table}__control-row {
|
|
1087
1203
|
background-color: var(--#{$table}__control-row--BackgroundColor);
|
|
1088
1204
|
border-block-end: var(--#{$table}__control-row--BorderBlockEndWidth) solid var(--#{$table}__control-row__tbody--BorderBlockEndColor);
|
|
1205
|
+
|
|
1206
|
+
// stylelint-disable max-nesting-depth, selector-max-class
|
|
1207
|
+
&.pf-m-expanded {
|
|
1208
|
+
border-block-end: 0; // TODO this is a dupe of the block above, consolidate in a breaking change
|
|
1209
|
+
}
|
|
1210
|
+
// stylelint-enable
|
|
1089
1211
|
}
|
|
1090
1212
|
}
|
|
1091
1213
|
}
|