@patternfly/patternfly 6.3.0-prerelease.6 → 6.3.0-prerelease.60
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +22 -14
- package/assets/images/icon-help.hbs +3 -0
- package/assets/images/icon-outlined-star.hbs +3 -0
- package/assets/images/icon-star.hbs +3 -0
- package/base/normalize.scss +4 -0
- package/base/patternfly-common.css +46 -11
- package/base/patternfly-common.scss +58 -13
- package/base/patternfly-variables.css +1172 -1
- package/base/patternfly-variables.scss +10 -0
- package/base/tokens/tokens-charts-dark.scss +1 -1
- package/base/tokens/tokens-charts.scss +1 -1
- package/base/tokens/tokens-dark.scss +13 -1
- package/base/tokens/tokens-default.scss +60 -2
- package/base/tokens/tokens-highcontrast-dark.scss +396 -0
- package/base/tokens/tokens-highcontrast.scss +703 -0
- package/base/tokens/tokens-local.scss +1 -0
- package/base/tokens/tokens-palette.scss +9 -1
- package/components/Accordion/accordion.css +102 -6
- package/components/Accordion/accordion.scss +112 -10
- package/components/Alert/alert-group.css +67 -33
- package/components/Alert/alert-group.scss +95 -48
- package/components/Badge/badge.css +2 -0
- package/components/Badge/badge.scss +2 -0
- package/components/Banner/banner.css +4 -0
- package/components/Banner/banner.scss +4 -0
- package/components/Button/button.css +187 -9
- package/components/Button/button.scss +195 -13
- package/components/CalendarMonth/calendar-month.css +16 -0
- package/components/CalendarMonth/calendar-month.scss +16 -0
- package/components/Card/card.css +5 -4
- package/components/Card/card.scss +5 -4
- package/components/CodeBlock/code-block.css +3 -0
- package/components/CodeBlock/code-block.scss +3 -0
- package/components/CodeEditor/code-editor.css +8 -3
- package/components/CodeEditor/code-editor.scss +11 -6
- package/components/DataList/data-list.css +2 -2
- package/components/DataList/data-list.scss +2 -2
- package/components/DatePicker/date-picker.css +3 -0
- package/components/DatePicker/date-picker.scss +4 -0
- package/components/Drawer/drawer.css +44 -41
- package/components/Drawer/drawer.scss +42 -36
- package/components/DualListSelector/dual-list-selector.css +55 -1
- package/components/DualListSelector/dual-list-selector.scss +63 -1
- 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/Label/label.css +20 -11
- package/components/Label/label.scss +21 -11
- package/components/Login/login.css +3 -0
- package/components/Login/login.scss +3 -0
- package/components/Menu/menu.css +35 -4
- package/components/Menu/menu.scss +32 -6
- package/components/MenuToggle/menu-toggle.css +51 -10
- package/components/MenuToggle/menu-toggle.scss +61 -9
- package/components/ModalBox/modal-box.css +3 -0
- package/components/ModalBox/modal-box.scss +3 -0
- package/components/Nav/nav.css +39 -8
- package/components/Nav/nav.scss +42 -9
- package/components/Page/page.css +124 -26
- package/components/Page/page.scss +86 -16
- package/components/Pagination/pagination.css +14 -1
- package/components/Pagination/pagination.scss +14 -1
- package/components/Panel/panel.css +7 -1
- package/components/Panel/panel.scss +7 -1
- package/components/Popover/popover.css +4 -0
- package/components/Popover/popover.scss +4 -0
- package/components/Progress/progress.css +26 -0
- package/components/Progress/progress.scss +22 -1
- package/components/ProgressStepper/progress-stepper.scss +1 -0
- package/components/SimpleList/simple-list.css +15 -0
- package/components/SimpleList/simple-list.scss +17 -1
- 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 +124 -2
- package/components/Table/table.scss +171 -3
- package/components/Tabs/tabs.css +32 -15
- package/components/Tabs/tabs.scss +34 -14
- package/components/TextInputGroup/text-input-group.css +23 -0
- package/components/TextInputGroup/text-input-group.scss +16 -1
- package/components/Timestamp/timestamp.css +4 -0
- package/components/Timestamp/timestamp.scss +7 -0
- package/components/TreeView/tree-view.css +54 -0
- package/components/TreeView/tree-view.scss +59 -2
- package/components/Truncate/truncate.css +1 -0
- package/components/Truncate/truncate.scss +3 -0
- package/components/Wizard/wizard.css +33 -6
- package/components/Wizard/wizard.scss +38 -8
- package/components/_index.css +1390 -195
- package/docs/components/Alert/examples/Alert.md +2 -2
- package/docs/components/Breadcrumb/examples/Breadcrumb.md +1 -1
- package/docs/components/Button/examples/Button.md +159 -6
- package/docs/components/Card/examples/Card.md +8 -8
- package/docs/components/ClipboardCopy/examples/ClipboardCopy.md +24 -32
- package/docs/components/CodeBlock/examples/CodeBlock.md +10 -10
- package/docs/components/CodeEditor/examples/CodeEditor.md +29 -5
- package/docs/components/DataList/examples/DataList.md +83 -207
- package/docs/components/DescriptionList/examples/DescriptionList.md +78 -22
- package/docs/components/DualListSelector/examples/DualListSelector.md +642 -319
- package/docs/components/EmptyState/examples/EmptyState.md +6 -6
- package/docs/components/ExpandableSection/examples/ExpandableSection.md +26 -15
- package/docs/components/Form/examples/Form.md +1178 -113
- package/docs/components/Hint/examples/Hint.md +3 -3
- package/docs/components/InlineEdit/examples/InlineEdit.md +2 -6
- package/docs/components/InputGroup/examples/InputGroup.md +5 -1
- package/docs/components/Label/examples/Label.md +2 -2
- package/docs/components/Login/examples/Login.md +22 -22
- 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 +93 -55
- package/docs/components/ModalBox/examples/ModalBox.md +13 -1
- 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 +123 -12
- package/docs/components/Popover/examples/Popover.md +0 -4
- package/docs/components/Progress/examples/Progress.md +222 -210
- package/docs/components/ProgressStepper/examples/ProgressStepper.md +32 -6
- package/docs/components/Skeleton/examples/Skeleton.md +21 -7
- 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 +7699 -4896
- package/docs/components/Tabs/examples/Tabs.md +1214 -6729
- package/docs/components/TextInputGroup/examples/TextInputGroup.md +168 -49
- package/docs/components/Title/examples/Title.md +8 -8
- package/docs/components/Toolbar/examples/Toolbar.md +7 -7
- package/docs/components/Wizard/examples/Wizard.md +583 -0
- 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 +13 -67
- package/docs/demos/CardView/examples/CardView.md +24 -5
- package/docs/demos/Dashboard/examples/Dashboard.md +34 -27
- package/docs/demos/DataList/examples/DataList.md +628 -192
- package/docs/demos/DescriptionList/examples/DescriptionList.md +79 -50
- package/docs/demos/Drawer/examples/Drawer.md +110 -53
- package/docs/demos/Form/examples/BasicForms.md +146 -26
- 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 +171 -21
- package/docs/demos/Nav/examples/Nav.md +111 -16
- package/docs/demos/NotificationDrawer/examples/NotificationDrawer.md +114 -19
- package/docs/demos/Page/examples/Page.md +309 -43
- package/docs/demos/PasswordGenerator/examples/PasswordGenerator.md +13 -1
- package/docs/demos/PrimaryDetail/examples/PrimaryDetail.md +886 -415
- package/docs/demos/Skeleton/examples/Skeleton.md +25 -4
- package/docs/demos/Table/examples/Table.md +480 -177
- package/docs/demos/Tabs/examples/Tabs.md +139 -594
- package/docs/demos/Toolbar/examples/Toolbar.md +72 -34
- package/docs/demos/Wizard/examples/Wizard.md +198 -27
- package/package.json +12 -7
- package/patternfly-base-no-globals.css +1217 -12
- package/patternfly-base.css +1221 -12
- package/patternfly-no-globals.css +2837 -437
- package/patternfly.css +2839 -435
- package/patternfly.min.css +1 -1
- package/patternfly.min.css.map +1 -1
- package/sass-utilities/mixins.scss +54 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
// Do not edit directly
|
|
3
|
-
// Generated on
|
|
3
|
+
// Generated on Tue, 02 Sep 2025 22:55:03 GMT
|
|
4
4
|
|
|
5
5
|
@mixin pf-v6-tokens {
|
|
6
6
|
--pf-t--color--black: #000000;
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
--pf-t--color--blue--50: #0066cc;
|
|
12
12
|
--pf-t--color--blue--60: #004d99;
|
|
13
13
|
--pf-t--color--blue--70: #003366;
|
|
14
|
+
--pf-t--color--blue--80: #032142;
|
|
14
15
|
--pf-t--color--gray--10: #f2f2f2;
|
|
15
16
|
--pf-t--color--gray--20: #e0e0e0;
|
|
16
17
|
--pf-t--color--gray--30: #c7c7c7;
|
|
@@ -28,6 +29,7 @@
|
|
|
28
29
|
--pf-t--color--green--50: #63993d;
|
|
29
30
|
--pf-t--color--green--60: #3d7317;
|
|
30
31
|
--pf-t--color--green--70: #204d00;
|
|
32
|
+
--pf-t--color--green--80: #183301;
|
|
31
33
|
--pf-t--color--orange--10: #ffe8cc;
|
|
32
34
|
--pf-t--color--orange--20: #fccb8f;
|
|
33
35
|
--pf-t--color--orange--30: #f8ae54;
|
|
@@ -35,6 +37,7 @@
|
|
|
35
37
|
--pf-t--color--orange--50: #ca6c0f;
|
|
36
38
|
--pf-t--color--orange--60: #9e4a06;
|
|
37
39
|
--pf-t--color--orange--70: #732e00;
|
|
40
|
+
--pf-t--color--orange--80: #4d1f00;
|
|
38
41
|
--pf-t--color--purple--10: #ece6ff;
|
|
39
42
|
--pf-t--color--purple--20: #d0c5f4;
|
|
40
43
|
--pf-t--color--purple--30: #b6a6e9;
|
|
@@ -42,6 +45,7 @@
|
|
|
42
45
|
--pf-t--color--purple--50: #5e40be;
|
|
43
46
|
--pf-t--color--purple--60: #3d2785;
|
|
44
47
|
--pf-t--color--purple--70: #21134d;
|
|
48
|
+
--pf-t--color--purple--80: #1b0d33;
|
|
45
49
|
--pf-t--color--red--10: #fce3e3;
|
|
46
50
|
--pf-t--color--red--20: #fbc5c5;
|
|
47
51
|
--pf-t--color--red--30: #f9a8a8;
|
|
@@ -49,6 +53,7 @@
|
|
|
49
53
|
--pf-t--color--red--50: #ee0000;
|
|
50
54
|
--pf-t--color--red--60: #a60000;
|
|
51
55
|
--pf-t--color--red--70: #5f0000;
|
|
56
|
+
--pf-t--color--red--80: #3f0000;
|
|
52
57
|
--pf-t--color--red-orange--10: #ffe3d9;
|
|
53
58
|
--pf-t--color--red-orange--20: #fbbea8;
|
|
54
59
|
--pf-t--color--red-orange--30: #f89b78;
|
|
@@ -56,6 +61,7 @@
|
|
|
56
61
|
--pf-t--color--red-orange--50: #f0561d;
|
|
57
62
|
--pf-t--color--red-orange--60: #b1380b;
|
|
58
63
|
--pf-t--color--red-orange--70: #731f00;
|
|
64
|
+
--pf-t--color--red-orange--80: #4c1405;
|
|
59
65
|
--pf-t--color--teal--10: #daf2f2;
|
|
60
66
|
--pf-t--color--teal--20: #b9e5e5;
|
|
61
67
|
--pf-t--color--teal--30: #9ad8d8;
|
|
@@ -63,6 +69,7 @@
|
|
|
63
69
|
--pf-t--color--teal--50: #37a3a3;
|
|
64
70
|
--pf-t--color--teal--60: #147878;
|
|
65
71
|
--pf-t--color--teal--70: #004d4d;
|
|
72
|
+
--pf-t--color--teal--80: #003333;
|
|
66
73
|
--pf-t--color--white: #ffffff;
|
|
67
74
|
--pf-t--color--yellow--10: #fff4cc;
|
|
68
75
|
--pf-t--color--yellow--20: #ffe072;
|
|
@@ -71,4 +78,5 @@
|
|
|
71
78
|
--pf-t--color--yellow--50: #b98412;
|
|
72
79
|
--pf-t--color--yellow--60: #96640f;
|
|
73
80
|
--pf-t--color--yellow--70: #73480b;
|
|
81
|
+
--pf-t--color--yellow--80: #54330b;
|
|
74
82
|
}
|
|
@@ -12,6 +12,10 @@
|
|
|
12
12
|
--pf-v6-c-accordion__toggle--BackgroundColor: var(--pf-t--global--background--color--action--plain--default);
|
|
13
13
|
--pf-v6-c-accordion__toggle--hover--BackgroundColor: var(--pf-t--global--background--color--action--plain--hover);
|
|
14
14
|
--pf-v6-c-accordion__toggle--BorderRadius: var(--pf-t--global--border--radius--small);
|
|
15
|
+
--pf-v6-c-accordion__toggle--ZIndex: var(--pf-t--global--z-index--xs);
|
|
16
|
+
--pf-v6-c-accordion__toggle--BorderWidth: var(--pf-t--global--border--width--action--plain--default);
|
|
17
|
+
--pf-v6-c-accordion__toggle--BorderColor: var(--pf-t--global--border--color--high-contrast);
|
|
18
|
+
--pf-v6-c-accordion__toggle--hover--BorderWidth: var(--pf-t--global--border--width--action--plain--hover);
|
|
15
19
|
--pf-v6-c-accordion--m-toggle-start__toggle--ColumnGap: var(--pf-t--global--spacer--gap--text-to-element--default);
|
|
16
20
|
--pf-v6-c-accordion__toggle-text--Color: var(--pf-t--global--text--color--regular);
|
|
17
21
|
--pf-v6-c-accordion__toggle-text--FontWeight: var(--pf-t--global--font--weight--body--default);
|
|
@@ -20,15 +24,40 @@
|
|
|
20
24
|
--pf-v6-c-accordion__toggle-icon--TransitionTimingFunction: var(--pf-t--global--motion--timing-function--default);
|
|
21
25
|
--pf-v6-c-accordion__toggle-icon--TransitionDuration: var(--pf-t--global--motion--duration--icon--default);
|
|
22
26
|
--pf-v6-c-accordion__toggle-icon--Transition: transform var(--pf-v6-c-accordion__toggle-icon--TransitionDuration) var(--pf-v6-c-accordion__toggle-icon--TransitionTimingFunction);
|
|
27
|
+
--pf-v6-c-accordion__toggle-icon--Rotate: 0;
|
|
23
28
|
--pf-v6-c-accordion__toggle--m-expanded__toggle-icon--Rotate: 90deg;
|
|
24
29
|
--pf-v6-c-accordion__expandable-content--MarginInlineEnd: var(--pf-t--global--spacer--md);
|
|
25
|
-
--pf-v6-c-accordion__expandable-content--MarginBlockEnd:
|
|
30
|
+
--pf-v6-c-accordion__expandable-content--MarginBlockEnd: 0;
|
|
26
31
|
--pf-v6-c-accordion__expandable-content--MarginInlineStart: var(--pf-t--global--spacer--md);
|
|
27
32
|
--pf-v6-c-accordion__expandable-content--BackgroundColor: var(--pf-t--global--background--color--primary--default);
|
|
28
33
|
--pf-v6-c-accordion__expandable-content--BorderRadius: var(--pf-t--global--border--radius--small);
|
|
29
34
|
--pf-v6-c-accordion__expandable-content--Color: var(--pf-t--global--text--color--regular);
|
|
30
35
|
--pf-v6-c-accordion__expandable-content--FontSize: var(--pf-t--global--font--size--body--default);
|
|
36
|
+
--pf-v6-c-accordion__expandable-content--m-fixed--MaxHeight--base: 0;
|
|
31
37
|
--pf-v6-c-accordion__expandable-content--m-fixed--MaxHeight: 9.375rem;
|
|
38
|
+
--pf-v6-c-accordion__expandable-content--MaxHeight: 0;
|
|
39
|
+
--pf-v6-c-accordion__expandable-content--Visibility: hidden;
|
|
40
|
+
--pf-v6-c-accordion__item--m-expanded__expandable-content--Visibility: visible;
|
|
41
|
+
--pf-v6-c-accordion__item--m-expanded__expandable-content--MaxHeight: 99999px;
|
|
42
|
+
--pf-v6-c-accordion__item--m-expanded__expandable-content--MarginBlockEnd: var(--pf-t--global--spacer--md);
|
|
43
|
+
--pf-v6-c-accordion__item--before--TransitionDuration--expand--fade: var(--pf-t--global--motion--duration--fade--default);
|
|
44
|
+
--pf-v6-c-accordion__item--before--TransitionDuration--collapse--fade: var(--pf-t--global--motion--duration--fade--short);
|
|
45
|
+
--pf-v6-c-accordion__item--before--TransitionDuration--fade: var(--pf-v6-c-accordion__item--before--TransitionDuration--collapse--fade);
|
|
46
|
+
--pf-v6-c-accordion__item--before--TransitionTimingFunction: var(--pf-t--global--motion--timing-function--default);
|
|
47
|
+
--pf-v6-c-accordion__item--before--Opacity: 0;
|
|
48
|
+
--pf-v6-c-accordion__item--m-expanded--before--Opacity: 1;
|
|
49
|
+
--pf-v6-c-accordion__item--m-expanded--before--TranslateY: 0;
|
|
50
|
+
--pf-v6-c-accordion__expandable-content--TransitionDuration--collapse--slide: 0s;
|
|
51
|
+
--pf-v6-c-accordion__expandable-content--TransitionDuration--collapse--fade: var(--pf-t--global--motion--duration--fade--short);
|
|
52
|
+
--pf-v6-c-accordion__expandable-content--TransitionDuration--expand--slide: 0s;
|
|
53
|
+
--pf-v6-c-accordion__expandable-content--TransitionDuration--expand--fade: var(--pf-t--global--motion--duration--fade--default);
|
|
54
|
+
--pf-v6-c-accordion__expandable-content--TransitionDuration--slide: var(--pf-v6-c-accordion__expandable-content--TransitionDuration--collapse--slide);
|
|
55
|
+
--pf-v6-c-accordion__expandable-content--TransitionDuration--fade: var(--pf-v6-c-accordion__expandable-content--TransitionDuration--collapse--fade);
|
|
56
|
+
--pf-v6-c-accordion__expandable-content--TransitionTimingFunction: var(--pf-t--global--motion--timing-function--default);
|
|
57
|
+
--pf-v6-c-accordion__expandable-content--Opacity: 0;
|
|
58
|
+
--pf-v6-c-accordion__item--m-expanded__expandable-content--Opacity: 1;
|
|
59
|
+
--pf-v6-c-accordion__expandable-content--TranslateY: 0;
|
|
60
|
+
--pf-v6-c-accordion__item--m-expanded__expandable-content--TranslateY: 0;
|
|
32
61
|
--pf-v6-c-accordion__expandable-content-body--PaddingBlockStart: var(--pf-t--global--spacer--sm);
|
|
33
62
|
--pf-v6-c-accordion__expandable-content-body--PaddingInlineEnd: var(--pf-t--global--spacer--sm);
|
|
34
63
|
--pf-v6-c-accordion__expandable-content-body--PaddingBlockEnd: var(--pf-t--global--spacer--sm);
|
|
@@ -47,6 +76,22 @@
|
|
|
47
76
|
--pf-v6-c-accordion--m-bordered--RowGap: 0;
|
|
48
77
|
--pf-v6-c-accordion__item--m-bordered--BorderBlockEndWidth: var(--pf-t--global--border--width--divider--default);
|
|
49
78
|
--pf-v6-c-accordion__item--m-bordered--BorderBlockEndColor: var(--pf-t--global--border--color--default);
|
|
79
|
+
--pf-v6-c-accordion__item--BorderWidth: 0;
|
|
80
|
+
--pf-v6-c-accordion__item--BorderColor: var(--pf-t--global--border--color--high-contrast);
|
|
81
|
+
--pf-v6-c-accordion__item--m-expanded--BorderWidth: var(--pf-t--global--border--width--high-contrast--regular);
|
|
82
|
+
--pf-v6-c-accordion__expandable-content--BorderWidth: 0;
|
|
83
|
+
--pf-v6-c-accordion__expandable-content--BorderColor: var(--pf-t--global--border--color--high-contrast);
|
|
84
|
+
--pf-v6-c-accordion__item--m-expanded__expandable-content--BorderWidth: var(--pf-t--global--border--width--high-contrast--regular);
|
|
85
|
+
}
|
|
86
|
+
@media screen and (prefers-reduced-motion: no-preference) {
|
|
87
|
+
.pf-v6-c-accordion {
|
|
88
|
+
--pf-v6-c-accordion__item--before--TransitionDuration--expand--slide: var(--pf-t--global--motion--duration--fade--default);
|
|
89
|
+
--pf-v6-c-accordion__item--before--TransitionDuration--collapse--slide: var(--pf-t--global--motion--duration--fade--short);
|
|
90
|
+
--pf-v6-c-accordion__item--before--TranslateY: -.5rem;
|
|
91
|
+
--pf-v6-c-accordion__expandable-content--TransitionDuration--expand--slide: var(--pf-t--global--motion--duration--fade--default);
|
|
92
|
+
--pf-v6-c-accordion__expandable-content--TransitionDuration--collapse--slide: var(--pf-t--global--motion--duration--fade--short);
|
|
93
|
+
--pf-v6-c-accordion__expandable-content--TranslateY: -.5rem;
|
|
94
|
+
}
|
|
50
95
|
}
|
|
51
96
|
|
|
52
97
|
.pf-v6-c-accordion {
|
|
@@ -75,24 +120,52 @@
|
|
|
75
120
|
--pf-v6-c-accordion--RowGap: var(--pf-v6-c-accordion--m-bordered--RowGap);
|
|
76
121
|
--pf-v6-c-accordion__item--BorderRadius: 0;
|
|
77
122
|
--pf-v6-c-accordion__toggle--BorderRadius: 0;
|
|
123
|
+
--pf-v6-c-accordion__item--BorderWidth: 0;
|
|
78
124
|
}
|
|
79
125
|
.pf-v6-c-accordion.pf-m-bordered .pf-v6-c-accordion__item {
|
|
80
126
|
border-block-end: var(--pf-v6-c-accordion__item--m-bordered--BorderBlockEndWidth) solid var(--pf-v6-c-accordion__item--m-bordered--BorderBlockEndColor);
|
|
81
127
|
}
|
|
82
128
|
|
|
83
129
|
.pf-v6-c-accordion__item {
|
|
130
|
+
position: relative;
|
|
131
|
+
}
|
|
132
|
+
.pf-v6-c-accordion__item::before {
|
|
133
|
+
position: absolute;
|
|
134
|
+
inset: 0;
|
|
135
|
+
pointer-events: none;
|
|
136
|
+
content: "";
|
|
137
|
+
background-color: var(--pf-v6-c-accordion__item--m-expanded--BackgroundColor);
|
|
138
|
+
border: var(--pf-v6-c-accordion__item--BorderWidth) solid var(--pf-v6-c-accordion__item--BorderColor);
|
|
84
139
|
border-radius: var(--pf-v6-c-accordion__item--BorderRadius);
|
|
140
|
+
opacity: var(--pf-v6-c-accordion__item--before--Opacity);
|
|
141
|
+
transition-timing-function: var(--pf-v6-c-accordion__item--before--TransitionTimingFunction);
|
|
142
|
+
transition-duration: var(--pf-v6-c-accordion__item--before--TransitionDuration--fade);
|
|
143
|
+
transition-property: opacity;
|
|
85
144
|
}
|
|
86
145
|
.pf-v6-c-accordion__item.pf-m-expanded {
|
|
87
146
|
--pf-v6-c-accordion__toggle--PaddingBlockEnd: var(--pf-v6-c-accordion__toggle--m-expanded--PaddingBlockEnd);
|
|
88
147
|
--pf-v6-c-accordion__toggle-text--FontWeight: var(--pf-v6-c-accordion__toggle--m-expanded__toggle-text--FontWeight);
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
148
|
+
--pf-v6-c-accordion__toggle-icon--Rotate: var(--pf-v6-c-accordion__toggle--m-expanded__toggle-icon--Rotate);
|
|
149
|
+
--pf-v6-c-accordion__item--before--TransitionDuration--slide: var(--pf-v6-c-accordion__item--before--TransitionDuration--expand--slide);
|
|
150
|
+
--pf-v6-c-accordion__item--before--TransitionDuration--fade: var(--pf-v6-c-accordion__item--before--TransitionDuration--expand--fade);
|
|
151
|
+
--pf-v6-c-accordion__item--before--Opacity: var(--pf-v6-c-accordion__item--m-expanded--before--Opacity);
|
|
152
|
+
--pf-v6-c-accordion__item--before--TranslateY: var(--pf-v6-c-accordion__item--m-expanded--before--TranslateY);
|
|
153
|
+
--pf-v6-c-accordion__item--BorderWidth: var(--pf-v6-c-accordion__item--m-expanded--BorderWidth);
|
|
154
|
+
--pf-v6-c-accordion__expandable-content--TransitionDuration--slide: var(--pf-v6-c-accordion__expandable-content--TransitionDuration--expand--slide);
|
|
155
|
+
--pf-v6-c-accordion__expandable-content--TransitionDuration--fade: var(--pf-v6-c-accordion__expandable-content--TransitionDuration--expand--fade);
|
|
156
|
+
--pf-v6-c-accordion__expandable-content--Opacity: var(--pf-v6-c-accordion__item--m-expanded__expandable-content--Opacity);
|
|
157
|
+
--pf-v6-c-accordion__expandable-content--TranslateY: var(--pf-v6-c-accordion__item--m-expanded__expandable-content--TranslateY);
|
|
158
|
+
--pf-v6-c-accordion__expandable-content--MarginBlockEnd: var(--pf-v6-c-accordion__item--m-expanded__expandable-content--MarginBlockEnd);
|
|
159
|
+
--pf-v6-c-accordion__expandable-content--MaxHeight: var(--pf-v6-c-accordion__item--m-expanded__expandable-content--MaxHeight);
|
|
160
|
+
--pf-v6-c-accordion__expandable-content--Visibility: var(--pf-v6-c-accordion__item--m-expanded__expandable-content--Visibility);
|
|
161
|
+
--pf-v6-c-accordion__expandable-content--TransitionDuration--fade: 0s;
|
|
162
|
+
--pf-v6-c-accordion__expandable-content--m-fixed--MaxHeight--base: var(--pf-v6-c-accordion__expandable-content--m-fixed--MaxHeight);
|
|
163
|
+
--pf-v6-c-accordion__expandable-content--BorderWidth: var(--pf-v6-c-accordion__item--m-expanded__expandable-content--BorderWidth);
|
|
93
164
|
}
|
|
94
165
|
|
|
95
166
|
.pf-v6-c-accordion__toggle {
|
|
167
|
+
position: relative;
|
|
168
|
+
z-index: var(--pf-v6-c-accordion__toggle--ZIndex);
|
|
96
169
|
display: flex;
|
|
97
170
|
column-gap: var(--pf-v6-c-accordion__toggle--ColumnGap);
|
|
98
171
|
align-items: center;
|
|
@@ -108,8 +181,17 @@
|
|
|
108
181
|
border: 0;
|
|
109
182
|
border-radius: var(--pf-v6-c-accordion__toggle--BorderRadius);
|
|
110
183
|
}
|
|
184
|
+
.pf-v6-c-accordion__toggle::after {
|
|
185
|
+
position: absolute;
|
|
186
|
+
inset: 0;
|
|
187
|
+
pointer-events: none;
|
|
188
|
+
content: "";
|
|
189
|
+
border: var(--pf-v6-c-accordion__toggle--BorderWidth) solid var(--pf-v6-c-accordion__toggle--BorderColor);
|
|
190
|
+
border-radius: inherit;
|
|
191
|
+
}
|
|
111
192
|
.pf-v6-c-accordion__toggle:is(:hover, :focus) {
|
|
112
193
|
--pf-v6-c-accordion__toggle--BackgroundColor: var(--pf-v6-c-accordion__toggle--hover--BackgroundColor);
|
|
194
|
+
--pf-v6-c-accordion__toggle--BorderWidth: var(--pf-v6-c-accordion__toggle--hover--BorderWidth);
|
|
113
195
|
}
|
|
114
196
|
|
|
115
197
|
.pf-v6-c-accordion__toggle-text {
|
|
@@ -123,22 +205,36 @@
|
|
|
123
205
|
|
|
124
206
|
.pf-v6-c-accordion__toggle-icon {
|
|
125
207
|
transition: var(--pf-v6-c-accordion__toggle-icon--Transition);
|
|
208
|
+
transform: rotate(var(--pf-v6-c-accordion__toggle-icon--Rotate));
|
|
126
209
|
}
|
|
127
210
|
:where(.pf-v6-m-dir-rtl, [dir=rtl]) .pf-v6-c-accordion__toggle-icon {
|
|
128
211
|
scale: -1 1;
|
|
129
212
|
}
|
|
130
213
|
|
|
214
|
+
.pf-v6-c-accordion__expandable-content:where([hidden]) {
|
|
215
|
+
display: revert;
|
|
216
|
+
}
|
|
217
|
+
|
|
131
218
|
.pf-v6-c-accordion__expandable-content {
|
|
219
|
+
max-height: var(--pf-v6-c-accordion__expandable-content--MaxHeight);
|
|
132
220
|
margin-block-end: var(--pf-v6-c-accordion__expandable-content--MarginBlockEnd);
|
|
133
221
|
margin-inline-start: var(--pf-v6-c-accordion__expandable-content--MarginInlineStart);
|
|
134
222
|
margin-inline-end: var(--pf-v6-c-accordion__expandable-content--MarginInlineEnd);
|
|
135
223
|
font-size: var(--pf-v6-c-accordion__expandable-content--FontSize);
|
|
136
224
|
color: var(--pf-v6-c-accordion__expandable-content--Color);
|
|
225
|
+
visibility: var(--pf-v6-c-accordion__expandable-content--Visibility);
|
|
137
226
|
background-color: var(--pf-v6-c-accordion__expandable-content--BackgroundColor);
|
|
227
|
+
border: var(--pf-v6-c-accordion__expandable-content--BorderWidth) solid var(--pf-v6-c-accordion__expandable-content--BorderColor);
|
|
138
228
|
border-radius: var(--pf-v6-c-accordion__expandable-content--BorderRadius);
|
|
229
|
+
opacity: var(--pf-v6-c-accordion__expandable-content--Opacity);
|
|
230
|
+
transition-delay: 0s, 0s, var(--pf-v6-c-accordion__expandable-content--TransitionDuration--fade), var(--pf-v6-c-accordion__expandable-content--TransitionDuration--fade), var(--pf-v6-c-accordion__expandable-content--TransitionDuration--fade);
|
|
231
|
+
transition-timing-function: var(--pf-v6-c-accordion__expandable-content--TransitionTimingFunction);
|
|
232
|
+
transition-duration: var(--pf-v6-c-accordion__expandable-content--TransitionDuration--fade), var(--pf-v6-c-accordion__expandable-content--TransitionDuration--slide), 0s, 0s, 0s;
|
|
233
|
+
transition-property: opacity, translate, visibility, max-height, margin-block-end;
|
|
234
|
+
translate: 0 var(--pf-v6-c-accordion__expandable-content--TranslateY);
|
|
139
235
|
}
|
|
140
236
|
.pf-v6-c-accordion__expandable-content.pf-m-fixed {
|
|
141
|
-
max-height: var(--pf-v6-c-accordion__expandable-content--m-fixed--MaxHeight);
|
|
237
|
+
max-height: var(--pf-v6-c-accordion__expandable-content--m-fixed--MaxHeight--base);
|
|
142
238
|
overflow-y: auto;
|
|
143
239
|
}
|
|
144
240
|
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
// accordion item
|
|
9
9
|
--#{$accordion}__item--BorderRadius: var(--pf-t--global--border--radius--200);
|
|
10
|
-
--#{$accordion}__item--m-expanded--BackgroundColor: var(--pf-t--global--background--color--action--plain--clicked);
|
|
10
|
+
--#{$accordion}__item--m-expanded--BackgroundColor: var(--pf-t--global--background--color--action--plain--clicked); // TODO - remove "m-expanded" in breaking change
|
|
11
11
|
|
|
12
12
|
// accordion toggle
|
|
13
13
|
--#{$accordion}__toggle--ColumnGap: var(--pf-t--global--spacer--gap--text-to-element--default);
|
|
@@ -19,6 +19,10 @@
|
|
|
19
19
|
--#{$accordion}__toggle--BackgroundColor: var(--pf-t--global--background--color--action--plain--default);
|
|
20
20
|
--#{$accordion}__toggle--hover--BackgroundColor: var(--pf-t--global--background--color--action--plain--hover);
|
|
21
21
|
--#{$accordion}__toggle--BorderRadius: var(--pf-t--global--border--radius--small);
|
|
22
|
+
--#{$accordion}__toggle--ZIndex: var(--pf-t--global--z-index--xs);
|
|
23
|
+
--#{$accordion}__toggle--BorderWidth: var(--pf-t--global--border--width--action--plain--default);
|
|
24
|
+
--#{$accordion}__toggle--BorderColor: var(--pf-t--global--border--color--high-contrast);
|
|
25
|
+
--#{$accordion}__toggle--hover--BorderWidth: var(--pf-t--global--border--width--action--plain--hover);
|
|
22
26
|
|
|
23
27
|
// Accordion toggle toggle-start modifier
|
|
24
28
|
// This decreases the gap between icon and text, alternative is calc it to * 2 the token or create a new token
|
|
@@ -34,17 +38,53 @@
|
|
|
34
38
|
--#{$accordion}__toggle-icon--TransitionTimingFunction: var(--pf-t--global--motion--timing-function--default);
|
|
35
39
|
--#{$accordion}__toggle-icon--TransitionDuration: var(--pf-t--global--motion--duration--icon--default);
|
|
36
40
|
--#{$accordion}__toggle-icon--Transition: transform var(--#{$accordion}__toggle-icon--TransitionDuration) var(--#{$accordion}__toggle-icon--TransitionTimingFunction); // TODO remove in breaking change along with shorthand property
|
|
41
|
+
--#{$accordion}__toggle-icon--Rotate: 0;
|
|
37
42
|
--#{$accordion}__toggle--m-expanded__toggle-icon--Rotate: 90deg;
|
|
38
43
|
|
|
39
44
|
// accordion expandable content
|
|
40
45
|
--#{$accordion}__expandable-content--MarginInlineEnd: var(--pf-t--global--spacer--md);
|
|
41
|
-
--#{$accordion}__expandable-content--MarginBlockEnd:
|
|
46
|
+
--#{$accordion}__expandable-content--MarginBlockEnd: 0;
|
|
42
47
|
--#{$accordion}__expandable-content--MarginInlineStart: var(--pf-t--global--spacer--md);
|
|
43
48
|
--#{$accordion}__expandable-content--BackgroundColor: var(--pf-t--global--background--color--primary--default);
|
|
44
49
|
--#{$accordion}__expandable-content--BorderRadius: var(--pf-t--global--border--radius--small);
|
|
45
50
|
--#{$accordion}__expandable-content--Color: var(--pf-t--global--text--color--regular);
|
|
46
51
|
--#{$accordion}__expandable-content--FontSize: var(--pf-t--global--font--size--body--default);
|
|
52
|
+
--#{$accordion}__expandable-content--m-fixed--MaxHeight--base: 0;
|
|
47
53
|
--#{$accordion}__expandable-content--m-fixed--MaxHeight: #{pf-size-prem(150px)};
|
|
54
|
+
--#{$accordion}__expandable-content--MaxHeight: 0;
|
|
55
|
+
--#{$accordion}__expandable-content--Visibility: hidden;
|
|
56
|
+
--#{$accordion}__item--m-expanded__expandable-content--Visibility: visible;
|
|
57
|
+
--#{$accordion}__item--m-expanded__expandable-content--MaxHeight: 99999px;
|
|
58
|
+
--#{$accordion}__item--m-expanded__expandable-content--MarginBlockEnd: var(--pf-t--global--spacer--md);
|
|
59
|
+
|
|
60
|
+
// expand animation
|
|
61
|
+
--#{$accordion}__item--before--TransitionDuration--expand--fade: var(--pf-t--global--motion--duration--fade--default);
|
|
62
|
+
--#{$accordion}__item--before--TransitionDuration--collapse--fade: var(--pf-t--global--motion--duration--fade--short);
|
|
63
|
+
--#{$accordion}__item--before--TransitionDuration--fade: var(--#{$accordion}__item--before--TransitionDuration--collapse--fade);
|
|
64
|
+
--#{$accordion}__item--before--TransitionTimingFunction: var(--pf-t--global--motion--timing-function--default);
|
|
65
|
+
--#{$accordion}__item--before--Opacity: 0;
|
|
66
|
+
--#{$accordion}__item--m-expanded--before--Opacity: 1;
|
|
67
|
+
--#{$accordion}__item--m-expanded--before--TranslateY: 0;
|
|
68
|
+
--#{$accordion}__expandable-content--TransitionDuration--collapse--slide: 0s;
|
|
69
|
+
--#{$accordion}__expandable-content--TransitionDuration--collapse--fade: var(--pf-t--global--motion--duration--fade--short);
|
|
70
|
+
--#{$accordion}__expandable-content--TransitionDuration--expand--slide: 0s;
|
|
71
|
+
--#{$accordion}__expandable-content--TransitionDuration--expand--fade: var(--pf-t--global--motion--duration--fade--default);
|
|
72
|
+
--#{$accordion}__expandable-content--TransitionDuration--slide: var(--#{$accordion}__expandable-content--TransitionDuration--collapse--slide);
|
|
73
|
+
--#{$accordion}__expandable-content--TransitionDuration--fade: var(--#{$accordion}__expandable-content--TransitionDuration--collapse--fade);
|
|
74
|
+
--#{$accordion}__expandable-content--TransitionTimingFunction: var(--pf-t--global--motion--timing-function--default);
|
|
75
|
+
--#{$accordion}__expandable-content--Opacity: 0;
|
|
76
|
+
--#{$accordion}__item--m-expanded__expandable-content--Opacity: 1;
|
|
77
|
+
--#{$accordion}__expandable-content--TranslateY: 0;
|
|
78
|
+
--#{$accordion}__item--m-expanded__expandable-content--TranslateY: 0;
|
|
79
|
+
|
|
80
|
+
@media screen and (prefers-reduced-motion: no-preference) {
|
|
81
|
+
--#{$accordion}__item--before--TransitionDuration--expand--slide: var(--pf-t--global--motion--duration--fade--default);
|
|
82
|
+
--#{$accordion}__item--before--TransitionDuration--collapse--slide: var(--pf-t--global--motion--duration--fade--short);
|
|
83
|
+
--#{$accordion}__item--before--TranslateY: -.5rem; // TODO - replace with token
|
|
84
|
+
--#{$accordion}__expandable-content--TransitionDuration--expand--slide: var(--pf-t--global--motion--duration--fade--default);
|
|
85
|
+
--#{$accordion}__expandable-content--TransitionDuration--collapse--slide: var(--pf-t--global--motion--duration--fade--short);
|
|
86
|
+
--#{$accordion}__expandable-content--TranslateY: -.5rem; // TODO - replace with token
|
|
87
|
+
}
|
|
48
88
|
|
|
49
89
|
// accordion expandable content body
|
|
50
90
|
--#{$accordion}__expandable-content-body--PaddingBlockStart: var(--pf-t--global--spacer--sm);
|
|
@@ -69,6 +109,16 @@
|
|
|
69
109
|
--#{$accordion}--m-bordered--RowGap: 0;
|
|
70
110
|
--#{$accordion}__item--m-bordered--BorderBlockEndWidth: var(--pf-t--global--border--width--divider--default);
|
|
71
111
|
--#{$accordion}__item--m-bordered--BorderBlockEndColor: var(--pf-t--global--border--color--default);
|
|
112
|
+
|
|
113
|
+
// accordion item border for high contrast
|
|
114
|
+
--#{$accordion}__item--BorderWidth: 0;
|
|
115
|
+
--#{$accordion}__item--BorderColor: var(--pf-t--global--border--color--high-contrast);
|
|
116
|
+
--#{$accordion}__item--m-expanded--BorderWidth: var(--pf-t--global--border--width--high-contrast--regular);
|
|
117
|
+
|
|
118
|
+
// expandable content border for high contrast
|
|
119
|
+
--#{$accordion}__expandable-content--BorderWidth: 0;
|
|
120
|
+
--#{$accordion}__expandable-content--BorderColor: var(--pf-t--global--border--color--high-contrast);
|
|
121
|
+
--#{$accordion}__item--m-expanded__expandable-content--BorderWidth: var(--pf-t--global--border--width--high-contrast--regular);
|
|
72
122
|
}
|
|
73
123
|
|
|
74
124
|
.#{$accordion} {
|
|
@@ -99,7 +149,8 @@
|
|
|
99
149
|
--#{$accordion}--RowGap: var(--#{$accordion}--m-bordered--RowGap);
|
|
100
150
|
--#{$accordion}__item--BorderRadius: 0;
|
|
101
151
|
--#{$accordion}__toggle--BorderRadius: 0;
|
|
102
|
-
|
|
152
|
+
--#{$accordion}__item--BorderWidth: 0;
|
|
153
|
+
|
|
103
154
|
.#{$accordion}__item {
|
|
104
155
|
border-block-end: var(--#{$accordion}__item--m-bordered--BorderBlockEndWidth) solid var(--#{$accordion}__item--m-bordered--BorderBlockEndColor);
|
|
105
156
|
}
|
|
@@ -107,21 +158,48 @@
|
|
|
107
158
|
}
|
|
108
159
|
|
|
109
160
|
.#{$accordion}__item {
|
|
110
|
-
|
|
161
|
+
position: relative;
|
|
162
|
+
|
|
163
|
+
&::before {
|
|
164
|
+
position: absolute;
|
|
165
|
+
inset: 0;
|
|
166
|
+
pointer-events: none;
|
|
167
|
+
content: "";
|
|
168
|
+
background-color: var(--#{$accordion}__item--m-expanded--BackgroundColor);
|
|
169
|
+
border: var(--#{$accordion}__item--BorderWidth) solid var(--#{$accordion}__item--BorderColor);
|
|
170
|
+
border-radius: var(--#{$accordion}__item--BorderRadius);
|
|
171
|
+
opacity: var(--#{$accordion}__item--before--Opacity);
|
|
172
|
+
transition-timing-function: var(--#{$accordion}__item--before--TransitionTimingFunction);
|
|
173
|
+
transition-duration: var(--#{$accordion}__item--before--TransitionDuration--fade);
|
|
174
|
+
transition-property: opacity;
|
|
175
|
+
}
|
|
111
176
|
|
|
112
177
|
&.pf-m-expanded {
|
|
113
178
|
--#{$accordion}__toggle--PaddingBlockEnd: var(--#{$accordion}__toggle--m-expanded--PaddingBlockEnd);
|
|
114
179
|
--#{$accordion}__toggle-text--FontWeight: var(--#{$accordion}__toggle--m-expanded__toggle-text--FontWeight);
|
|
180
|
+
--#{$accordion}__toggle-icon--Rotate: var(--#{$accordion}__toggle--m-expanded__toggle-icon--Rotate);
|
|
181
|
+
--#{$accordion}__item--before--TransitionDuration--slide: var(--#{$accordion}__item--before--TransitionDuration--expand--slide);
|
|
182
|
+
--#{$accordion}__item--before--TransitionDuration--fade: var(--#{$accordion}__item--before--TransitionDuration--expand--fade);
|
|
183
|
+
--#{$accordion}__item--before--Opacity: var(--#{$accordion}__item--m-expanded--before--Opacity);
|
|
184
|
+
--#{$accordion}__item--before--TranslateY: var(--#{$accordion}__item--m-expanded--before--TranslateY);
|
|
185
|
+
--#{$accordion}__item--BorderWidth: var(--#{$accordion}__item--m-expanded--BorderWidth);
|
|
186
|
+
--#{$accordion}__expandable-content--TransitionDuration--slide: var(--#{$accordion}__expandable-content--TransitionDuration--expand--slide);
|
|
187
|
+
--#{$accordion}__expandable-content--TransitionDuration--fade: var(--#{$accordion}__expandable-content--TransitionDuration--expand--fade);
|
|
188
|
+
--#{$accordion}__expandable-content--Opacity: var(--#{$accordion}__item--m-expanded__expandable-content--Opacity);
|
|
189
|
+
--#{$accordion}__expandable-content--TranslateY: var(--#{$accordion}__item--m-expanded__expandable-content--TranslateY);
|
|
190
|
+
--#{$accordion}__expandable-content--MarginBlockEnd: var(--#{$accordion}__item--m-expanded__expandable-content--MarginBlockEnd);
|
|
191
|
+
--#{$accordion}__expandable-content--MaxHeight: var(--#{$accordion}__item--m-expanded__expandable-content--MaxHeight);
|
|
192
|
+
--#{$accordion}__expandable-content--Visibility: var(--#{$accordion}__item--m-expanded__expandable-content--Visibility);
|
|
193
|
+
--#{$accordion}__expandable-content--TransitionDuration--fade: 0s;
|
|
194
|
+
--#{$accordion}__expandable-content--m-fixed--MaxHeight--base: var(--#{$accordion}__expandable-content--m-fixed--MaxHeight);
|
|
195
|
+
--#{$accordion}__expandable-content--BorderWidth: var(--#{$accordion}__item--m-expanded__expandable-content--BorderWidth);
|
|
115
196
|
|
|
116
|
-
background-color: var(--#{$accordion}__item--m-expanded--BackgroundColor);
|
|
117
|
-
|
|
118
|
-
.#{$accordion}__toggle-icon {
|
|
119
|
-
transform: rotate(var(--#{$accordion}__toggle--m-expanded__toggle-icon--Rotate));
|
|
120
|
-
}
|
|
121
197
|
}
|
|
122
198
|
}
|
|
123
199
|
|
|
124
200
|
.#{$accordion}__toggle {
|
|
201
|
+
position: relative;
|
|
202
|
+
z-index: var(--#{$accordion}__toggle--ZIndex);
|
|
125
203
|
display: flex;
|
|
126
204
|
column-gap: var(--#{$accordion}__toggle--ColumnGap);
|
|
127
205
|
align-items: center;
|
|
@@ -137,8 +215,18 @@
|
|
|
137
215
|
border: 0;
|
|
138
216
|
border-radius: var(--#{$accordion}__toggle--BorderRadius);
|
|
139
217
|
|
|
218
|
+
&::after {
|
|
219
|
+
position: absolute;
|
|
220
|
+
inset: 0;
|
|
221
|
+
pointer-events: none;
|
|
222
|
+
content: "";
|
|
223
|
+
border: var(--#{$accordion}__toggle--BorderWidth) solid var(--#{$accordion}__toggle--BorderColor);
|
|
224
|
+
border-radius: inherit;
|
|
225
|
+
}
|
|
226
|
+
|
|
140
227
|
&:is(:hover, :focus) {
|
|
141
228
|
--#{$accordion}__toggle--BackgroundColor: var(--#{$accordion}__toggle--hover--BackgroundColor);
|
|
229
|
+
--#{$accordion}__toggle--BorderWidth: var(--#{$accordion}__toggle--hover--BorderWidth);
|
|
142
230
|
}
|
|
143
231
|
}
|
|
144
232
|
|
|
@@ -154,19 +242,33 @@
|
|
|
154
242
|
@include pf-v6-mirror-inline-on-rtl;
|
|
155
243
|
|
|
156
244
|
transition: var(--#{$accordion}__toggle-icon--Transition); // TODO remove shorthand property in breaking change
|
|
245
|
+
transform: rotate(var(--#{$accordion}__toggle-icon--Rotate));
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
.#{$accordion}__expandable-content:where([hidden]) {
|
|
249
|
+
display: revert;
|
|
157
250
|
}
|
|
158
251
|
|
|
159
252
|
.#{$accordion}__expandable-content {
|
|
253
|
+
max-height: var(--#{$accordion}__expandable-content--MaxHeight);
|
|
160
254
|
margin-block-end: var(--#{$accordion}__expandable-content--MarginBlockEnd);
|
|
161
255
|
margin-inline-start: var(--#{$accordion}__expandable-content--MarginInlineStart);
|
|
162
256
|
margin-inline-end: var(--#{$accordion}__expandable-content--MarginInlineEnd);
|
|
163
257
|
font-size: var(--#{$accordion}__expandable-content--FontSize);
|
|
164
258
|
color: var(--#{$accordion}__expandable-content--Color);
|
|
259
|
+
visibility: var(--#{$accordion}__expandable-content--Visibility);
|
|
165
260
|
background-color: var(--#{$accordion}__expandable-content--BackgroundColor);
|
|
261
|
+
border: var(--#{$accordion}__expandable-content--BorderWidth) solid var(--#{$accordion}__expandable-content--BorderColor);
|
|
166
262
|
border-radius: var(--#{$accordion}__expandable-content--BorderRadius);
|
|
263
|
+
opacity: var(--#{$accordion}__expandable-content--Opacity);
|
|
264
|
+
transition-delay: 0s, 0s, var(--#{$accordion}__expandable-content--TransitionDuration--fade), var(--#{$accordion}__expandable-content--TransitionDuration--fade), var(--#{$accordion}__expandable-content--TransitionDuration--fade);
|
|
265
|
+
transition-timing-function: var(--#{$accordion}__expandable-content--TransitionTimingFunction);
|
|
266
|
+
transition-duration: var(--#{$accordion}__expandable-content--TransitionDuration--fade), var(--#{$accordion}__expandable-content--TransitionDuration--slide), 0s, 0s, 0s;
|
|
267
|
+
transition-property: opacity, translate, visibility, max-height, margin-block-end;
|
|
268
|
+
translate: 0 var(--#{$accordion}__expandable-content--TranslateY);
|
|
167
269
|
|
|
168
270
|
&.pf-m-fixed {
|
|
169
|
-
max-height: var(--#{$accordion}__expandable-content--m-fixed--MaxHeight);
|
|
271
|
+
max-height: var(--#{$accordion}__expandable-content--m-fixed--MaxHeight--base);
|
|
170
272
|
overflow-y: auto;
|
|
171
273
|
}
|
|
172
274
|
}
|
|
@@ -25,28 +25,47 @@
|
|
|
25
25
|
var(--pf-v6-c-alert-group--m-toast__item--c-alert--TransitionDuration)
|
|
26
26
|
var(--pf-v6-c-alert-group--m-toast__item--c-alert--TransitionTimingFunction)
|
|
27
27
|
0s;
|
|
28
|
-
--pf-v6-c-alert-group--m-toast__item--m-
|
|
29
|
-
--pf-v6-c-alert-group--m-toast__item--m-
|
|
30
|
-
--pf-v6-c-alert-group--m-toast__item--m-
|
|
31
|
-
--pf-v6-c-alert-group--m-toast__item--m-
|
|
32
|
-
--pf-v6-c-alert-group--m-toast__item--m-
|
|
33
|
-
--pf-v6-c-alert-group--m-toast__item--m-offstage-right--TransitionDuration--
|
|
34
|
-
--pf-v6-c-alert-group--m-toast__item--m-offstage-right--TransitionTimingFunction--
|
|
35
|
-
--pf-v6-c-alert-group--m-toast__item--m-offstage-right--
|
|
36
|
-
--pf-v6-c-alert-group--m-toast__item--m-offstage-right--
|
|
37
|
-
--pf-v6-c-alert-group--m-toast__item--m-offstage-right--
|
|
38
|
-
--pf-v6-c-alert-group--m-toast__item--m-
|
|
39
|
-
--pf-v6-c-alert-group--m-toast__item--m-
|
|
40
|
-
--pf-v6-c-alert-group--m-toast__item--m-
|
|
41
|
-
--pf-v6-c-alert-group--m-toast__item--m-
|
|
42
|
-
--pf-v6-c-alert-group--m-toast__item--m-
|
|
43
|
-
--pf-v6-c-alert-group--m-toast__item--m-
|
|
44
|
-
--pf-v6-c-alert-group--m-toast__item--m-
|
|
45
|
-
--pf-v6-c-alert-group--m-toast__item--m-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
--pf-v6-c-alert-
|
|
28
|
+
--pf-v6-c-alert-group--m-toast__item--m-outgoing--TransitionDuration--opacity--default: var(--pf-t--global--motion--duration--fade--default);
|
|
29
|
+
--pf-v6-c-alert-group--m-toast__item--m-outgoing--TransitionTimingFunction--opacity--default: var(--pf-t--global--motion--timing-function--accelerate);
|
|
30
|
+
--pf-v6-c-alert-group--m-toast__item--m-outgoing--TransitionDelay--grid-template-rows--default: var(--pf-t--global--motion--duration--fade--default);
|
|
31
|
+
--pf-v6-c-alert-group--m-toast__item--m-outgoing--TransitionDelay--margin-block--default: var(--pf-t--global--motion--duration--fade--default);
|
|
32
|
+
--pf-v6-c-alert-group--m-toast__item--m-outgoing--c-alert--TransitionDelay--default: var(--pf-t--global--motion--duration--fade--default);
|
|
33
|
+
--pf-v6-c-alert-group--m-toast__item--m-offstage-right--TransitionDuration--opacity--default: initial;
|
|
34
|
+
--pf-v6-c-alert-group--m-toast__item--m-offstage-right--TransitionTimingFunction--opacity--default: initial;
|
|
35
|
+
--pf-v6-c-alert-group--m-toast__item--m-offstage-right--TransitionDelay--grid-template-rows--default: initial;
|
|
36
|
+
--pf-v6-c-alert-group--m-toast__item--m-offstage-right--TransitionDelay--margin-block--default: initial;
|
|
37
|
+
--pf-v6-c-alert-group--m-toast__item--m-offstage-right--c-alert--TransitionDelay--default: initial;
|
|
38
|
+
--pf-v6-c-alert-group--m-toast__item--m-outgoing--TransitionDuration--transform: var(--pf-t--global--motion--duration--slide-out--short);
|
|
39
|
+
--pf-v6-c-alert-group--m-toast__item--m-outgoing--TransitionTimingFunction--transform: var(--pf-t--global--motion--timing-function--accelerate);
|
|
40
|
+
--pf-v6-c-alert-group--m-toast__item--m-outgoing--TransitionDuration--opacity: var(--pf-t--global--motion--duration--slide-out--short);
|
|
41
|
+
--pf-v6-c-alert-group--m-toast__item--m-outgoing--TransitionTimingFunction--opacity: var(--pf-t--global--motion--timing-function--accelerate);
|
|
42
|
+
--pf-v6-c-alert-group--m-toast__item--m-outgoing--TransitionDuration--margin-block: var(--pf-t--global--motion--duration--fade--short);
|
|
43
|
+
--pf-v6-c-alert-group--m-toast__item--m-outgoing--TransitionTimingFunction--margin-block: var(--pf-t--global--motion--timing-function--accelerate);
|
|
44
|
+
--pf-v6-c-alert-group--m-toast__item--m-outgoing--TransitionDelay--margin-block: var(--pf-t--global--motion--duration--slide-out--short);
|
|
45
|
+
--pf-v6-c-alert-group--m-toast__item--m-outgoing--TransitionDuration--grid-template-rows: var(--pf-t--global--motion--duration--slide-in--short);
|
|
46
|
+
--pf-v6-c-alert-group--m-toast__item--m-outgoing--TransitionTimingFunction--grid-template-rows: var(--pf-t--global--motion--timing-function--accelerate);
|
|
47
|
+
--pf-v6-c-alert-group--m-toast__item--m-outgoing--TransitionDelay--grid-template-rows: var(--pf-t--global--motion--duration--slide-out--short);
|
|
48
|
+
--pf-v6-c-alert-group--m-toast__item--m-offstage-right--TransitionDuration--transform: initial;
|
|
49
|
+
--pf-v6-c-alert-group--m-toast__item--m-offstage-right--TransitionTimingFunction--transform: initial;
|
|
50
|
+
--pf-v6-c-alert-group--m-toast__item--m-offstage-right--TransitionDuration--opacity: initial;
|
|
51
|
+
--pf-v6-c-alert-group--m-toast__item--m-offstage-right--TransitionTimingFunction--opacity: initial;
|
|
52
|
+
--pf-v6-c-alert-group--m-toast__item--m-offstage-right--TransitionDuration--margin-block: initial;
|
|
53
|
+
--pf-v6-c-alert-group--m-toast__item--m-offstage-right--TransitionTimingFunction--margin-block: initial;
|
|
54
|
+
--pf-v6-c-alert-group--m-toast__item--m-offstage-right--TransitionDelay--margin-block: initial;
|
|
55
|
+
--pf-v6-c-alert-group--m-toast__item--m-offstage-right--TransitionDuration--grid-template-rows: initial;
|
|
56
|
+
--pf-v6-c-alert-group--m-toast__item--m-offstage-right--TransitionTimingFunction--grid-template-rows: initial;
|
|
57
|
+
--pf-v6-c-alert-group--m-toast__item--m-offstage-right--TransitionDelay--grid-template-rows: initial;
|
|
58
|
+
--pf-v6-c-alert-group--m-toast__item--m-outgoing--c-alert--TransitionDuration: var(--pf-t--global--motion--duration--slide-out--short);
|
|
59
|
+
--pf-v6-c-alert-group--m-toast__item--m-outgoing--c-alert--TransitionTimingFunction: var(--pf-t--global--motion--timing-function--accelerate);
|
|
60
|
+
--pf-v6-c-alert-group--m-toast__item--m-outgoing--c-alert--Transition: all
|
|
61
|
+
var(--pf-v6-c-alert-group--m-toast__item--m-outgoing--c-alert--TransitionDuration)
|
|
62
|
+
var(--pf-v6-c-alert-group--m-toast__item--m-outgoing--c-alert--TransitionTimingFunction)
|
|
63
|
+
var(--pf-v6-c-alert-group--m-toast__item--m-outgoing--c-alert--TransitionDuration);
|
|
64
|
+
--pf-v6-c-alert-group--m-toast__item--m-offstage-right--c-alert--TransitionDuration: initial;
|
|
65
|
+
--pf-v6-c-alert-group--m-toast__item--m-offstage-right--c-alert--TransitionTimingFunction: initial;
|
|
66
|
+
--pf-v6-c-alert-group--m-toast__item--m-offstage-right--c-alert--Transition: initial;
|
|
67
|
+
--pf-v6-c-alert-group__overflow-button--BorderWidth: var(--pf-t--global--border--width--action--plain--default);
|
|
68
|
+
--pf-v6-c-alert-group__overflow-button--BorderColor: var(--pf-t--global--border--color--high-contrast);
|
|
50
69
|
--pf-v6-c-alert-group__overflow-button--BorderRadius: var(--pf-t--global--border--radius--medium);
|
|
51
70
|
--pf-v6-c-alert-group__overflow-button--PaddingBlockStart: var(--pf-t--global--spacer--md);
|
|
52
71
|
--pf-v6-c-alert-group__overflow-button--PaddingInlineEnd: var(--pf-t--global--spacer--md);
|
|
@@ -55,6 +74,7 @@
|
|
|
55
74
|
--pf-v6-c-alert-group__overflow-button--Color: var(--pf-t--global--text--color--link--default);
|
|
56
75
|
--pf-v6-c-alert-group__overflow-button--BoxShadow: var(--pf-t--global--box-shadow--lg);
|
|
57
76
|
--pf-v6-c-alert-group__overflow-button--BackgroundColor: var(--pf-t--global--background--color--floating--default);
|
|
77
|
+
--pf-v6-c-alert-group__overflow-button--hover--BorderWidth: var(--pf-t--global--border--width--action--plain--hover);
|
|
58
78
|
--pf-v6-c-alert-group__overflow-button--hover--Color: var(--pf-t--global--text--color--link--hover);
|
|
59
79
|
--pf-v6-c-alert-group__overflow-button--hover--BackgroundColor: var(--pf-t--global--background--color--floating--hover);
|
|
60
80
|
--pf-v6-c-alert-group__overflow-button--hover--BoxShadow: var(--pf-t--global--box-shadow--lg), var(--pf-t--global--box-shadow--lg--bottom);
|
|
@@ -85,10 +105,21 @@
|
|
|
85
105
|
padding-inline-end: var(--pf-v6-c-alert-group__overflow-button--PaddingInlineEnd);
|
|
86
106
|
color: var(--pf-v6-c-alert-group__overflow-button--Color);
|
|
87
107
|
background-color: var(--pf-v6-c-alert-group__overflow-button--BackgroundColor);
|
|
88
|
-
border
|
|
108
|
+
border: 0;
|
|
89
109
|
border-radius: var(--pf-v6-c-alert-group__overflow-button--BorderRadius);
|
|
90
110
|
box-shadow: var(--pf-v6-c-alert-group__overflow-button--BoxShadow);
|
|
91
111
|
}
|
|
112
|
+
.pf-v6-c-alert-group__overflow-button::after {
|
|
113
|
+
position: absolute;
|
|
114
|
+
inset: 0;
|
|
115
|
+
pointer-events: none;
|
|
116
|
+
content: "";
|
|
117
|
+
border: var(--pf-v6-c-alert-group__overflow-button--BorderWidth) solid var(--pf-v6-c-alert-group__overflow-button--BorderColor);
|
|
118
|
+
border-radius: inherit;
|
|
119
|
+
}
|
|
120
|
+
.pf-v6-c-alert-group__overflow-button:hover, .pf-v6-c-alert-group__overflow-button:focus {
|
|
121
|
+
--pf-v6-c-alert-group__overflow-button--BorderWidth: var(--pf-v6-c-alert-group__overflow-button--hover--BorderWidth);
|
|
122
|
+
}
|
|
92
123
|
|
|
93
124
|
.pf-v6-c-alert-group__item {
|
|
94
125
|
display: grid;
|
|
@@ -105,40 +136,43 @@
|
|
|
105
136
|
transition: var(--pf-v6-c-alert-group--m-toast__item--c-alert--Transition);
|
|
106
137
|
}
|
|
107
138
|
}
|
|
108
|
-
.pf-v6-c-alert-group__item.pf-m-offstage-top:first-child {
|
|
139
|
+
.pf-v6-c-alert-group__item.pf-m-offstage-top:first-child, .pf-v6-c-alert-group__item.pf-m-incoming:first-child {
|
|
109
140
|
grid-template-rows: 0fr;
|
|
110
141
|
margin-block: 0;
|
|
111
142
|
overflow: hidden;
|
|
112
143
|
opacity: 0;
|
|
113
144
|
transform: translateY(-100%);
|
|
114
145
|
}
|
|
115
|
-
.pf-v6-c-alert-group__item.pf-m-offstage-top:first-child .pf-v6-c-alert {
|
|
146
|
+
.pf-v6-c-alert-group__item.pf-m-offstage-top:first-child .pf-v6-c-alert, .pf-v6-c-alert-group__item.pf-m-incoming:first-child .pf-v6-c-alert {
|
|
116
147
|
min-height: 0;
|
|
117
148
|
padding-block-start: 0;
|
|
118
149
|
padding-block-end: 0;
|
|
119
150
|
border-width: 0;
|
|
120
151
|
}
|
|
121
|
-
.pf-v6-c-alert-group__item.pf-m-offstage-right {
|
|
152
|
+
.pf-v6-c-alert-group__item.pf-m-offstage-right, .pf-v6-c-alert-group__item.pf-m-outgoing {
|
|
122
153
|
grid-template-rows: 0fr;
|
|
123
154
|
margin-block: 0;
|
|
124
155
|
overflow: hidden;
|
|
125
156
|
opacity: 0;
|
|
126
|
-
transition: grid-template-rows 0s var(--pf-v6-c-alert-group--m-toast__item--m-offstage-right--TransitionDelay--grid-template-rows--default), margin-block 0s var(--pf-v6-c-alert-group--m-toast__item--m-offstage-right--TransitionDelay--margin-block--default), opacity var(--pf-v6-c-alert-group--m-toast__item--m-offstage-right--TransitionDuration--opacity--default) var(--pf-v6-c-alert-group--m-toast__item--m-offstage-right--TransitionTimingFunction--opacity--default);
|
|
157
|
+
transition: grid-template-rows 0s var(--pf-v6-c-alert-group--m-toast__item--m-offstage-right--TransitionDelay--grid-template-rows--default, var(--pf-v6-c-alert-group--m-toast__item--m-outgoing--TransitionDelay--grid-template-rows--default)), margin-block 0s var(--pf-v6-c-alert-group--m-toast__item--m-offstage-right--TransitionDelay--margin-block--default, var(--pf-v6-c-alert-group--m-toast__item--m-outgoing--TransitionDelay--margin-block--default)), opacity var(--pf-v6-c-alert-group--m-toast__item--m-offstage-right--TransitionDuration--opacity--default, var(--pf-v6-c-alert-group--m-toast__item--m-outgoing--TransitionDuration--opacity--default)) var(--pf-v6-c-alert-group--m-toast__item--m-offstage-right--TransitionTimingFunction--opacity--default, var(--pf-v6-c-alert-group--m-toast__item--m-outgoing--TransitionTimingFunction--opacity--default));
|
|
127
158
|
}
|
|
128
|
-
.pf-v6-c-alert-group__item.pf-m-offstage-right .pf-v6-c-alert {
|
|
159
|
+
.pf-v6-c-alert-group__item.pf-m-offstage-right .pf-v6-c-alert, .pf-v6-c-alert-group__item.pf-m-outgoing .pf-v6-c-alert {
|
|
129
160
|
min-height: 0;
|
|
130
161
|
padding-block-start: 0;
|
|
131
162
|
padding-block-end: 0;
|
|
132
163
|
border-width: 0;
|
|
133
|
-
transition: all 0s var(--pf-v6-c-alert-group--m-toast__item--m-offstage-right--c-alert--TransitionDelay--default);
|
|
164
|
+
transition: all 0s var(--pf-v6-c-alert-group--m-toast__item--m-offstage-right--c-alert--TransitionDelay--default, var(--pf-v6-c-alert-group--m-toast__item--m-outgoing--c-alert--TransitionDelay--default));
|
|
134
165
|
}
|
|
135
166
|
@media screen and (prefers-reduced-motion: no-preference) {
|
|
136
|
-
.pf-v6-c-alert-group__item.pf-m-offstage-right {
|
|
137
|
-
transition: transform var(--pf-v6-c-alert-group--m-toast__item--m-offstage-right--TransitionDuration--transform) var(--pf-v6-c-alert-group--m-toast__item--m-offstage-right--TransitionTimingFunction--transform), opacity var(--pf-v6-c-alert-group--m-toast__item--m-offstage-right--TransitionDuration--opacity) var(--pf-v6-c-alert-group--m-toast__item--m-offstage-right--TransitionTimingFunction--opacity), margin-block var(--pf-v6-c-alert-group--m-toast__item--m-offstage-right--TransitionDuration--margin-block) var(--pf-v6-c-alert-group--m-toast__item--m-offstage-right--TransitionTimingFunction--margin-block) var(--pf-v6-c-alert-group--m-toast__item--m-offstage-right--TransitionDelay--margin-block), grid-template-rows var(--pf-v6-c-alert-group--m-toast__item--m-offstage-right--TransitionDuration--grid-template-rows) var(--pf-v6-c-alert-group--m-toast__item--m-offstage-right--TransitionTimingFunction--grid-template-rows) var(--pf-v6-c-alert-group--m-toast__item--m-offstage-right--TransitionDelay--grid-template-rows);
|
|
167
|
+
.pf-v6-c-alert-group__item.pf-m-offstage-right, .pf-v6-c-alert-group__item.pf-m-outgoing {
|
|
168
|
+
transition: transform var(--pf-v6-c-alert-group--m-toast__item--m-offstage-right--TransitionDuration--transform, var(--pf-v6-c-alert-group--m-toast__item--m-outgoing--TransitionDuration--transform)) var(--pf-v6-c-alert-group--m-toast__item--m-offstage-right--TransitionTimingFunction--transform, var(--pf-v6-c-alert-group--m-toast__item--m-outgoing--TransitionTimingFunction--transform)), opacity var(--pf-v6-c-alert-group--m-toast__item--m-offstage-right--TransitionDuration--opacity, var(--pf-v6-c-alert-group--m-toast__item--m-outgoing--TransitionDuration--opacity)) var(--pf-v6-c-alert-group--m-toast__item--m-offstage-right--TransitionTimingFunction--opacity, var(--pf-v6-c-alert-group--m-toast__item--m-outgoing--TransitionTimingFunction--opacity)), margin-block var(--pf-v6-c-alert-group--m-toast__item--m-offstage-right--TransitionDuration--margin-block, var(--pf-v6-c-alert-group--m-toast__item--m-outgoing--TransitionDuration--margin-block)) var(--pf-v6-c-alert-group--m-toast__item--m-offstage-right--TransitionTimingFunction--margin-block, var(--pf-v6-c-alert-group--m-toast__item--m-outgoing--TransitionTimingFunction--margin-block)) var(--pf-v6-c-alert-group--m-toast__item--m-offstage-right--TransitionDelay--margin-block, var(--pf-v6-c-alert-group--m-toast__item--m-outgoing--TransitionDelay--margin-block)), grid-template-rows var(--pf-v6-c-alert-group--m-toast__item--m-offstage-right--TransitionDuration--grid-template-rows, var(--pf-v6-c-alert-group--m-toast__item--m-outgoing--TransitionDuration--grid-template-rows)) var(--pf-v6-c-alert-group--m-toast__item--m-offstage-right--TransitionTimingFunction--grid-template-rows, var(--pf-v6-c-alert-group--m-toast__item--m-outgoing--TransitionTimingFunction--grid-template-rows)) var(--pf-v6-c-alert-group--m-toast__item--m-offstage-right--TransitionDelay--grid-template-rows, var(--pf-v6-c-alert-group--m-toast__item--m-outgoing--TransitionDelay--grid-template-rows));
|
|
138
169
|
transform: translateX(100%);
|
|
139
170
|
}
|
|
140
|
-
.pf-v6-c-alert-group__item.pf-m-offstage-right .pf-v6-c-alert {
|
|
141
|
-
|
|
171
|
+
:where(.pf-v6-m-dir-rtl, [dir=rtl]) .pf-v6-c-alert-group__item.pf-m-offstage-right, .pf-v6-c-alert-group__item.pf-m-outgoing {
|
|
172
|
+
transform: translateX(calc(100% * var(--pf-v6-global--inverse--multiplier)));
|
|
173
|
+
}
|
|
174
|
+
.pf-v6-c-alert-group__item.pf-m-offstage-right .pf-v6-c-alert, .pf-v6-c-alert-group__item.pf-m-outgoing .pf-v6-c-alert {
|
|
175
|
+
transition: var(--pf-v6-c-alert-group--m-toast__item--m-offstage-right--c-alert--Transition, var(--pf-v6-c-alert-group--m-toast__item--m-outgoing--c-alert--Transition));
|
|
142
176
|
}
|
|
143
177
|
}
|
|
144
178
|
.pf-v6-c-alert-group__item:hover {
|