@patternfly/patternfly 6.3.0-prerelease.5 → 6.3.0-prerelease.51

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.
Files changed (129) hide show
  1. package/README.md +8 -6
  2. package/assets/images/icon-help.hbs +3 -0
  3. package/assets/images/icon-outlined-star.hbs +3 -0
  4. package/assets/images/icon-star.hbs +3 -0
  5. package/base/normalize.scss +4 -0
  6. package/base/patternfly-common.css +46 -11
  7. package/base/patternfly-common.scss +58 -13
  8. package/components/Accordion/accordion.css +72 -3
  9. package/components/Accordion/accordion.scss +78 -6
  10. package/components/Alert/alert-group.css +52 -31
  11. package/components/Alert/alert-group.scss +77 -46
  12. package/components/Button/button.css +155 -6
  13. package/components/Button/button.scss +161 -8
  14. package/components/Card/card.css +0 -1
  15. package/components/Card/card.scss +0 -1
  16. package/components/DataList/data-list.css +2 -2
  17. package/components/DataList/data-list.scss +2 -2
  18. package/components/DualListSelector/dual-list-selector.css +36 -0
  19. package/components/DualListSelector/dual-list-selector.scss +43 -0
  20. package/components/ExpandableSection/expandable-section.css +63 -1
  21. package/components/ExpandableSection/expandable-section.scss +76 -2
  22. package/components/FileUpload/file-upload.css +3 -3
  23. package/components/FileUpload/file-upload.scss +3 -3
  24. package/components/Form/form.css +40 -1
  25. package/components/Form/form.scss +47 -1
  26. package/components/FormControl/form-control.css +16 -0
  27. package/components/FormControl/form-control.scss +9 -0
  28. package/components/InputGroup/input-group.css +80 -0
  29. package/components/InputGroup/input-group.scss +95 -0
  30. package/components/Menu/menu.css +24 -4
  31. package/components/Menu/menu.scss +20 -5
  32. package/components/MenuToggle/menu-toggle.css +38 -4
  33. package/components/MenuToggle/menu-toggle.scss +48 -3
  34. package/components/Nav/nav.css +22 -8
  35. package/components/Nav/nav.scss +22 -9
  36. package/components/Page/page.css +66 -6
  37. package/components/Page/page.scss +48 -5
  38. package/components/Progress/progress.css +16 -0
  39. package/components/Progress/progress.scss +11 -1
  40. package/components/ProgressStepper/progress-stepper.scss +1 -0
  41. package/components/Skeleton/skeleton.css +22 -2
  42. package/components/Skeleton/skeleton.scss +25 -3
  43. package/components/Spinner/spinner.css +5 -0
  44. package/components/Spinner/spinner.scss +6 -0
  45. package/components/Table/table-grid.css +51 -5
  46. package/components/Table/table-grid.scss +22 -1
  47. package/components/Table/table.css +95 -2
  48. package/components/Table/table.scss +138 -3
  49. package/components/Tabs/tabs.css +25 -15
  50. package/components/Tabs/tabs.scss +26 -13
  51. package/components/TextInputGroup/text-input-group.css +23 -0
  52. package/components/TextInputGroup/text-input-group.scss +16 -1
  53. package/components/Timestamp/timestamp.css +4 -0
  54. package/components/Timestamp/timestamp.scss +7 -0
  55. package/components/TreeView/tree-view.css +39 -0
  56. package/components/TreeView/tree-view.scss +42 -2
  57. package/components/Truncate/truncate.css +1 -0
  58. package/components/Truncate/truncate.scss +3 -0
  59. package/components/Wizard/wizard.css +11 -5
  60. package/components/Wizard/wizard.scss +13 -5
  61. package/components/_index.css +961 -99
  62. package/docs/components/Breadcrumb/examples/Breadcrumb.md +1 -1
  63. package/docs/components/Button/examples/Button.md +161 -6
  64. package/docs/components/Card/examples/Card.md +8 -8
  65. package/docs/components/ClipboardCopy/examples/ClipboardCopy.md +24 -29
  66. package/docs/components/CodeBlock/examples/CodeBlock.md +11 -11
  67. package/docs/components/CodeEditor/examples/CodeEditor.md +29 -5
  68. package/docs/components/DataList/examples/DataList.md +23 -23
  69. package/docs/components/DescriptionList/examples/DescriptionList.md +78 -22
  70. package/docs/components/DualListSelector/examples/DualListSelector.md +534 -16
  71. package/docs/components/EmptyState/examples/EmptyState.md +6 -6
  72. package/docs/components/ExpandableSection/examples/ExpandableSection.md +32 -21
  73. package/docs/components/Form/examples/Form.md +1179 -114
  74. package/docs/components/Hint/examples/Hint.md +3 -3
  75. package/docs/components/InlineEdit/examples/InlineEdit.md +2 -6
  76. package/docs/components/InputGroup/examples/InputGroup.md +5 -1
  77. package/docs/components/JumpLinks/examples/JumpLinks.md +1 -1
  78. package/docs/components/Label/examples/Label.md +2 -2
  79. package/docs/components/Masthead/examples/masthead.md +90 -12
  80. package/docs/components/Menu/examples/Menu.md +122 -6
  81. package/docs/components/MenuToggle/examples/MenuToggle.md +93 -55
  82. package/docs/components/ModalBox/examples/ModalBox.md +13 -1
  83. package/docs/components/MultipleFileUpload/examples/MultipleFileUpload.md +2 -10
  84. package/docs/components/OverflowMenu/examples/overflow-menu.md +5 -5
  85. package/docs/components/Page/examples/Page.md +148 -14
  86. package/docs/components/Pagination/examples/Pagination.md +12 -12
  87. package/docs/components/Popover/examples/Popover.md +0 -4
  88. package/docs/components/ProgressStepper/examples/ProgressStepper.md +32 -6
  89. package/docs/components/Skeleton/examples/Skeleton.md +21 -7
  90. package/docs/components/Slider/examples/Slider.md +2 -2
  91. package/docs/components/Spinner/examples/Spinner.md +10 -0
  92. package/docs/components/Table/examples/Table.md +9462 -6183
  93. package/docs/components/Tabs/examples/Tabs.md +1214 -6729
  94. package/docs/components/TextInputGroup/examples/TextInputGroup.md +168 -49
  95. package/docs/components/Title/examples/Title.md +8 -8
  96. package/docs/components/Toolbar/examples/Toolbar.md +7 -7
  97. package/docs/components/Wizard/examples/Wizard.md +583 -0
  98. package/docs/demos/AboutModal/examples/AboutModal.md +22 -3
  99. package/docs/demos/Alert/examples/Alert.md +66 -9
  100. package/docs/demos/BackToTop/examples/BackToTop.md +22 -3
  101. package/docs/demos/Banner/examples/Banner.md +47 -6
  102. package/docs/demos/Card/examples/Card.md +13 -67
  103. package/docs/demos/CardView/examples/CardView.md +24 -5
  104. package/docs/demos/Dashboard/examples/Dashboard.md +29 -7
  105. package/docs/demos/DataList/examples/DataList.md +100 -24
  106. package/docs/demos/DescriptionList/examples/DescriptionList.md +79 -50
  107. package/docs/demos/Drawer/examples/Drawer.md +110 -53
  108. package/docs/demos/Form/examples/BasicForms.md +142 -22
  109. package/docs/demos/JumpLinks/examples/JumpLinks.md +132 -18
  110. package/docs/demos/Masthead/examples/Masthead.md +171 -19
  111. package/docs/demos/Modal/examples/Modal.md +171 -21
  112. package/docs/demos/Nav/examples/Nav.md +113 -18
  113. package/docs/demos/NotificationDrawer/examples/NotificationDrawer.md +110 -15
  114. package/docs/demos/Page/examples/Page.md +661 -40
  115. package/docs/demos/PasswordGenerator/examples/PasswordGenerator.md +13 -1
  116. package/docs/demos/PrimaryDetail/examples/PrimaryDetail.md +160 -103
  117. package/docs/demos/Skeleton/examples/Skeleton.md +25 -4
  118. package/docs/demos/Table/examples/Table.md +475 -157
  119. package/docs/demos/Tabs/examples/Tabs.md +139 -594
  120. package/docs/demos/Toolbar/examples/Toolbar.md +72 -34
  121. package/docs/demos/Wizard/examples/Wizard.md +198 -27
  122. package/package.json +9 -6
  123. package/patternfly-base-no-globals.css +45 -11
  124. package/patternfly-base.css +49 -11
  125. package/patternfly-no-globals.css +1006 -110
  126. package/patternfly.css +1010 -110
  127. package/patternfly.min.css +1 -1
  128. package/patternfly.min.css.map +1 -1
  129. package/sass-utilities/mixins.scss +54 -0
package/README.md CHANGED
@@ -16,11 +16,13 @@ Any of the files above are meant for use in consuming the library. The recommend
16
16
 
17
17
  ## Development
18
18
 
19
- **PatternFly Development requires Node v18.0.0 or greater**
19
+ **PatternFly Development requires Node v20.18.3 or greater**
20
20
 
21
21
  To setup the PatternFly development environment:
22
22
 
23
23
  - clone the project
24
+ - ensure you have Node.js v20.18.3 or greater installed
25
+ - enable corepack: `corepack enable`
24
26
  - run `yarn install` from the project root
25
27
  - run `yarn start`
26
28
  - open your browser to `http://localhost:8001`
@@ -63,19 +65,19 @@ When making visual changes to a full page example, new example preview screensho
63
65
 
64
66
  ## Guidelines for CSS development
65
67
 
66
- - For issues created in Core that will affect a component in PF-React, a follow up issue must be created in PF-React once the Pull Request is merged. The issue should include the Core PR #, the Core Release, a link to the component in https://core-staging.patternfly.org, and information detailing the change.
68
+ - For issues created in Core that will affect a component in PF-React, a follow up issue must be created in PF-React once the Pull Request is merged. The issue should include the Core PR #, the Core Release, a link to the component in https://pf-core-staging.patternfly.org, and information detailing the change.
67
69
  - If global variables are modified in Core, a React issue should be opened to address this.
68
70
  - CSS developers should ensure that animation is well documented and communicated to the respective React developer.
69
71
  - Once the component/enhancement is complete it should receive sign off from a visual designer who can then update the master sketch file with any changes.
70
72
 
71
73
  ### Handlebars guidelines
72
- [For information on how to contribute, refer to our guidelines.](https://core-staging.patternfly.org/contribution)
74
+ [For information on how to contribute, refer to our guidelines.](https://pf-core-staging.patternfly.org/contribution)
73
75
 
74
76
  ### CSS/Sass guidelines
75
- [For more information on using CSS and Sass, refer to our guidelines.](https://core-staging.patternfly.org/guidelines)
77
+ [For more information on using CSS and Sass, refer to our guidelines.](https://pf-core-staging.patternfly.org/guidelines)
76
78
 
77
79
  ### Custom icon guidelines
78
- [For more information on custom icons, refer to our guidelines.](https://core-staging.patternfly.org/adding-custom-icons)
80
+ [For more information on custom icons, refer to our guidelines.](https://pf-core-staging.patternfly.org/adding-custom-icons)
79
81
 
80
82
  ## Beta components
81
83
 
@@ -112,7 +114,7 @@ If you have any suggestions about ways that we can improve how we use this tool,
112
114
  ## FAQ
113
115
 
114
116
  #### CSS Variables
115
- [How do I use CSS variables to customize the library?](https://core-staging.patternfly.org/guidelines#variables)
117
+ [How do I use CSS variables to customize the library?](https://pf-core-staging.patternfly.org/guidelines#variables)
116
118
 
117
119
  #### Browser support
118
120
  PatternFly is supported on the latest two major versions of the following browsers:
@@ -0,0 +1,3 @@
1
+ <svg class="pf-v6-svg" viewBox="0 0 1024 1024" fill="currentColor" aria-hidden="true" role="img" width="1em" height="1em">
2
+ <path d="M521.3,576 C627.5,576 713.7,502 713.7,413.7 C713.7,325.4 627.6,253.6 521.3,253.6 C366,253.6 334.5,337.7 329.2,407.2 C329.2,414.3 335.2,416 343.5,416 L445,416 C450.5,416 458,415.5 460.8,406.5 C460.8,362.6 582.9,357.1 582.9,413.6 C582.9,441.9 556.2,470.9 521.3,473 C486.4,475.1 447.3,479.8 447.3,521.7 L447.3,553.8 C447.3,570.8 456.1,576 472,576 C487.9,576 521.3,576 521.3,576 M575.3,751.3 L575.3,655.3 C575.313862,651.055109 573.620137,646.982962 570.6,644 C567.638831,640.947672 563.552355,639.247987 559.3,639.29884 L463.3,639.29884 C459.055109,639.286138 454.982962,640.979863 452,644 C448.947672,646.961169 447.247987,651.047645 447.29884,655.3 L447.29884,751.3 C447.286138,755.544891 448.979863,759.617038 452,762.6 C454.961169,765.652328 459.047645,767.352013 463.3,767.30116 L559.3,767.30116 C563.544891,767.313862 567.617038,765.620137 570.6,762.6 C573.659349,759.643612 575.360354,755.553963 575.3,751.3 M512,896 C300.2,896 128,723.9 128,512 C128,300.3 300.2,128 512,128 C723.8,128 896,300.2 896,512 C896,723.8 723.7,896 512,896 M512.1,0 C229.7,0 0,229.8 0,512 C0,794.2 229.8,1024 512.1,1024 C794.4,1024 1024,794.3 1024,512 C1024,229.7 794.4,0 512.1,0"></path>
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg class="pf-v6-svg" viewBox="0 0 576 512" fill="currentColor" aria-hidden="true" role="img" width="1em" height="1em">
2
+ <path d="M528.1 171.5L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6zM388.6 312.3l23.7 138.4L288 385.4l-124.3 65.3 23.7-138.4-100.6-98 139-20.2 62.2-126 62.2 126 139 20.2-100.6 98z"></path>
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg class="pf-v6-svg" viewBox="0 0 576 512" fill="currentColor" aria-hidden="true" role="img" width="1em" height="1em">
2
+ <path d="M259.3 17.8L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0z"></path>
3
+ </svg>
@@ -122,6 +122,10 @@
122
122
  cursor: pointer;
123
123
  }
124
124
 
125
+ :where(:root) {
126
+ color-scheme: light;
127
+ }
128
+
125
129
  :where(.pf-v6-theme-dark) {
126
130
  color-scheme: dark;
127
131
  }
@@ -44,15 +44,50 @@
44
44
  }
45
45
 
46
46
  .pf-v6-m-no-motion {
47
- --pf-t--global--delay--400: 0ms !important;
48
- --pf-t--global--delay--300: 0ms !important;
49
- --pf-t--global--delay--200: 0ms !important;
50
- --pf-t--global--delay--100: 0ms !important;
51
- --pf-t--global--duration--600: 0ms !important;
52
- --pf-t--global--duration--500: 0ms !important;
53
- --pf-t--global--duration--400: 0ms !important;
54
- --pf-t--global--duration--300: 0ms !important;
55
- --pf-t--global--duration--200: 0ms !important;
56
- --pf-t--global--duration--100: 0ms !important;
57
- --pf-t--global--duration--50: 0ms !important;
47
+ --pf-t--global--delay--400: 1ms !important;
48
+ --pf-t--global--delay--300: 1ms !important;
49
+ --pf-t--global--delay--200: 1ms !important;
50
+ --pf-t--global--delay--100: 1ms !important;
51
+ --pf-t--global--duration--600: 1ms !important;
52
+ --pf-t--global--duration--500: 1ms !important;
53
+ --pf-t--global--duration--400: 1ms !important;
54
+ --pf-t--global--duration--300: 1ms !important;
55
+ --pf-t--global--duration--200: 1ms !important;
56
+ --pf-t--global--duration--100: 1ms !important;
57
+ --pf-t--global--duration--50: 1ms !important;
58
+ }
59
+
60
+ :root {
61
+ --pf-v6-global--danger-jiggle--AnimationDuration--Transform: var(--pf-t--global--motion--duration--fade--default);
62
+ --pf-v6-global--danger-jiggle--AnimationTimingFunction--Transform: var(--pf-t--global--motion--timing-function--default);
63
+ }
64
+
65
+ @property --pf-v6-global--danger-jiggle--TranslateX {
66
+ syntax: "<length>";
67
+ inherits: false;
68
+ initial-value: 0;
69
+ }
70
+ @keyframes pf-v6-global-danger-jiggle-motion {
71
+ 33% {
72
+ --pf-v6-global--danger-jiggle--TranslateX: -2px;
73
+ }
74
+ 66% {
75
+ --pf-v6-global--danger-jiggle--TranslateX: 3px;
76
+ }
77
+ }
78
+ @keyframes pf-v6-global-fade-in {
79
+ from {
80
+ opacity: 0;
81
+ }
82
+ to {
83
+ opacity: 1;
84
+ }
85
+ }
86
+ @keyframes pf-v6-global-fade-out {
87
+ from {
88
+ opacity: 1;
89
+ }
90
+ to {
91
+ opacity: 0;
92
+ }
58
93
  }
@@ -50,20 +50,65 @@
50
50
  @include pf-v6-mirror-inline-on-rtl;
51
51
  }
52
52
 
53
- // Turn off all motion (for testing purposes) by setting all motion tokens to 0
53
+ // Turn off perceptible motion (for testing purposes) by setting all motion tokens to 1ms
54
54
  .#{$pf-prefix}m-no-motion {
55
55
  // stylelint-disable declaration-no-important
56
- --pf-t--global--delay--400: 0ms !important;
57
- --pf-t--global--delay--300: 0ms !important;
58
- --pf-t--global--delay--200: 0ms !important;
59
- --pf-t--global--delay--100: 0ms !important;
60
- --pf-t--global--duration--600: 0ms !important;
61
- --pf-t--global--duration--500: 0ms !important;
62
- --pf-t--global--duration--400: 0ms !important;
63
- --pf-t--global--duration--300: 0ms !important;
64
- --pf-t--global--duration--200: 0ms !important;
65
- --pf-t--global--duration--100: 0ms !important;
66
- --pf-t--global--duration--50: 0ms !important;
56
+ --pf-t--global--delay--400: 1ms !important;
57
+ --pf-t--global--delay--300: 1ms !important;
58
+ --pf-t--global--delay--200: 1ms !important;
59
+ --pf-t--global--delay--100: 1ms !important;
60
+ --pf-t--global--duration--600: 1ms !important;
61
+ --pf-t--global--duration--500: 1ms !important;
62
+ --pf-t--global--duration--400: 1ms !important;
63
+ --pf-t--global--duration--300: 1ms !important;
64
+ --pf-t--global--duration--200: 1ms !important;
65
+ --pf-t--global--duration--100: 1ms !important;
66
+ --pf-t--global--duration--50: 1ms !important;
67
67
 
68
68
  // stylelink-enable declaration-no-important
69
- }
69
+ }
70
+
71
+ :root {
72
+ --#{$pf-global}--danger-jiggle--AnimationDuration--Transform: var(--pf-t--global--motion--duration--fade--default);
73
+ --#{$pf-global}--danger-jiggle--AnimationTimingFunction--Transform: var(--pf-t--global--motion--timing-function--default);
74
+ }
75
+
76
+ // Register the property type for the custom property to be animatable
77
+ @property --#{$pf-global}--danger-jiggle--TranslateX {
78
+ syntax: "<length>";
79
+ inherits: false;
80
+ initial-value: 0;
81
+ }
82
+
83
+ // Animate danger jiggle
84
+ @keyframes #{$pf-global}-danger-jiggle-motion {
85
+ 33% {
86
+ --#{$pf-global}--danger-jiggle--TranslateX: -2px;
87
+ }
88
+
89
+ 66% {
90
+ --#{$pf-global}--danger-jiggle--TranslateX: 3px;
91
+ }
92
+ }
93
+
94
+ // Animate fade-in
95
+ @keyframes #{$pf-global}-fade-in {
96
+ from {
97
+ opacity: 0;
98
+ }
99
+
100
+ to {
101
+ opacity: 1;
102
+ }
103
+ }
104
+
105
+ // Animate fade-out
106
+ @keyframes #{$pf-global}-fade-out {
107
+ from {
108
+ opacity: 1;
109
+ }
110
+
111
+ to {
112
+ opacity: 0;
113
+ }
114
+ }
@@ -12,6 +12,7 @@
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);
15
16
  --pf-v6-c-accordion--m-toggle-start__toggle--ColumnGap: var(--pf-t--global--spacer--gap--text-to-element--default);
16
17
  --pf-v6-c-accordion__toggle-text--Color: var(--pf-t--global--text--color--regular);
17
18
  --pf-v6-c-accordion__toggle-text--FontWeight: var(--pf-t--global--font--weight--body--default);
@@ -29,6 +30,24 @@
29
30
  --pf-v6-c-accordion__expandable-content--Color: var(--pf-t--global--text--color--regular);
30
31
  --pf-v6-c-accordion__expandable-content--FontSize: var(--pf-t--global--font--size--body--default);
31
32
  --pf-v6-c-accordion__expandable-content--m-fixed--MaxHeight: 9.375rem;
33
+ --pf-v6-c-accordion__item--before--TransitionDuration--expand--fade: var(--pf-t--global--motion--duration--fade--default);
34
+ --pf-v6-c-accordion__item--before--TransitionDuration--collapse--fade: var(--pf-t--global--motion--duration--fade--short);
35
+ --pf-v6-c-accordion__item--before--TransitionDuration--fade: var(--pf-v6-c-accordion__item--before--TransitionDuration--collapse--fade);
36
+ --pf-v6-c-accordion__item--before--TransitionTimingFunction: var(--pf-t--global--motion--timing-function--default);
37
+ --pf-v6-c-accordion__item--before--Opacity: 0;
38
+ --pf-v6-c-accordion__item--m-expanded--before--Opacity: 1;
39
+ --pf-v6-c-accordion__item--m-expanded--before--TranslateY: 0;
40
+ --pf-v6-c-accordion__expandable-content--TransitionDuration--collapse--slide: 0s;
41
+ --pf-v6-c-accordion__expandable-content--TransitionDuration--collapse--fade: var(--pf-t--global--motion--duration--fade--short);
42
+ --pf-v6-c-accordion__expandable-content--TransitionDuration--expand--slide: 0s;
43
+ --pf-v6-c-accordion__expandable-content--TransitionDuration--expand--fade: var(--pf-t--global--motion--duration--fade--default);
44
+ --pf-v6-c-accordion__expandable-content--TransitionDuration--slide: var(--pf-v6-c-accordion__expandable-content--TransitionDuration--collapse--slide);
45
+ --pf-v6-c-accordion__expandable-content--TransitionDuration--fade: var(--pf-v6-c-accordion__expandable-content--TransitionDuration--collapse--fade);
46
+ --pf-v6-c-accordion__expandable-content--TransitionTimingFunction: var(--pf-t--global--motion--timing-function--default);
47
+ --pf-v6-c-accordion__expandable-content--Opacity: 0;
48
+ --pf-v6-c-accordion__item--m-expanded__expandable-content--Opacity: 1;
49
+ --pf-v6-c-accordion__expandable-content--TranslateY: 0;
50
+ --pf-v6-c-accordion__item--m-expanded__expandable-content--TranslateY: 0;
32
51
  --pf-v6-c-accordion__expandable-content-body--PaddingBlockStart: var(--pf-t--global--spacer--sm);
33
52
  --pf-v6-c-accordion__expandable-content-body--PaddingInlineEnd: var(--pf-t--global--spacer--sm);
34
53
  --pf-v6-c-accordion__expandable-content-body--PaddingBlockEnd: var(--pf-t--global--spacer--sm);
@@ -48,6 +67,16 @@
48
67
  --pf-v6-c-accordion__item--m-bordered--BorderBlockEndWidth: var(--pf-t--global--border--width--divider--default);
49
68
  --pf-v6-c-accordion__item--m-bordered--BorderBlockEndColor: var(--pf-t--global--border--color--default);
50
69
  }
70
+ @media screen and (prefers-reduced-motion: no-preference) {
71
+ .pf-v6-c-accordion {
72
+ --pf-v6-c-accordion__item--before--TransitionDuration--expand--slide: var(--pf-t--global--motion--duration--fade--default);
73
+ --pf-v6-c-accordion__item--before--TransitionDuration--collapse--slide: var(--pf-t--global--motion--duration--fade--short);
74
+ --pf-v6-c-accordion__item--before--TranslateY: -.5rem;
75
+ --pf-v6-c-accordion__expandable-content--TransitionDuration--expand--slide: var(--pf-t--global--motion--duration--fade--default);
76
+ --pf-v6-c-accordion__expandable-content--TransitionDuration--collapse--slide: var(--pf-t--global--motion--duration--fade--short);
77
+ --pf-v6-c-accordion__expandable-content--TranslateY: -.5rem;
78
+ }
79
+ }
51
80
 
52
81
  .pf-v6-c-accordion {
53
82
  display: flex;
@@ -81,18 +110,39 @@
81
110
  }
82
111
 
83
112
  .pf-v6-c-accordion__item {
113
+ position: relative;
114
+ }
115
+ .pf-v6-c-accordion__item::before {
116
+ position: absolute;
117
+ inset: 0;
118
+ pointer-events: none;
119
+ content: "";
120
+ background-color: var(--pf-v6-c-accordion__item--m-expanded--BackgroundColor);
84
121
  border-radius: var(--pf-v6-c-accordion__item--BorderRadius);
122
+ opacity: var(--pf-v6-c-accordion__item--before--Opacity);
123
+ transition-timing-function: var(--pf-v6-c-accordion__item--before--TransitionTimingFunction);
124
+ transition-duration: var(--pf-v6-c-accordion__item--before--TransitionDuration--fade);
125
+ transition-property: opacity;
85
126
  }
86
127
  .pf-v6-c-accordion__item.pf-m-expanded {
87
128
  --pf-v6-c-accordion__toggle--PaddingBlockEnd: var(--pf-v6-c-accordion__toggle--m-expanded--PaddingBlockEnd);
88
129
  --pf-v6-c-accordion__toggle-text--FontWeight: var(--pf-v6-c-accordion__toggle--m-expanded__toggle-text--FontWeight);
89
- background-color: var(--pf-v6-c-accordion__item--m-expanded--BackgroundColor);
130
+ --pf-v6-c-accordion__item--before--TransitionDuration--slide: var(--pf-v6-c-accordion__item--before--TransitionDuration--expand--slide);
131
+ --pf-v6-c-accordion__item--before--TransitionDuration--fade: var(--pf-v6-c-accordion__item--before--TransitionDuration--expand--fade);
132
+ --pf-v6-c-accordion__item--before--Opacity: var(--pf-v6-c-accordion__item--m-expanded--before--Opacity);
133
+ --pf-v6-c-accordion__item--before--TranslateY: var(--pf-v6-c-accordion__item--m-expanded--before--TranslateY);
134
+ --pf-v6-c-accordion__expandable-content--TransitionDuration--slide: var(--pf-v6-c-accordion__expandable-content--TransitionDuration--expand--slide);
135
+ --pf-v6-c-accordion__expandable-content--TransitionDuration--fade: var(--pf-v6-c-accordion__expandable-content--TransitionDuration--expand--fade);
136
+ --pf-v6-c-accordion__expandable-content--Opacity: var(--pf-v6-c-accordion__item--m-expanded__expandable-content--Opacity);
137
+ --pf-v6-c-accordion__expandable-content--TranslateY: var(--pf-v6-c-accordion__item--m-expanded__expandable-content--TranslateY);
90
138
  }
91
139
  .pf-v6-c-accordion__item.pf-m-expanded .pf-v6-c-accordion__toggle-icon {
92
140
  transform: rotate(var(--pf-v6-c-accordion__toggle--m-expanded__toggle-icon--Rotate));
93
141
  }
94
142
 
95
143
  .pf-v6-c-accordion__toggle {
144
+ position: relative;
145
+ z-index: var(--pf-v6-c-accordion__toggle--ZIndex);
96
146
  display: flex;
97
147
  column-gap: var(--pf-v6-c-accordion__toggle--ColumnGap);
98
148
  align-items: center;
@@ -128,19 +178,38 @@
128
178
  scale: -1 1;
129
179
  }
130
180
 
181
+ .pf-v6-c-accordion__expandable-content:where([hidden]) {
182
+ display: revert;
183
+ }
184
+
131
185
  .pf-v6-c-accordion__expandable-content {
132
- margin-block-end: var(--pf-v6-c-accordion__expandable-content--MarginBlockEnd);
186
+ max-height: 0;
133
187
  margin-inline-start: var(--pf-v6-c-accordion__expandable-content--MarginInlineStart);
134
188
  margin-inline-end: var(--pf-v6-c-accordion__expandable-content--MarginInlineEnd);
135
189
  font-size: var(--pf-v6-c-accordion__expandable-content--FontSize);
136
190
  color: var(--pf-v6-c-accordion__expandable-content--Color);
191
+ visibility: hidden;
137
192
  background-color: var(--pf-v6-c-accordion__expandable-content--BackgroundColor);
138
193
  border-radius: var(--pf-v6-c-accordion__expandable-content--BorderRadius);
194
+ opacity: var(--pf-v6-c-accordion__expandable-content--Opacity);
195
+ 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);
196
+ transition-timing-function: var(--pf-v6-c-accordion__expandable-content--TransitionTimingFunction);
197
+ transition-duration: var(--pf-v6-c-accordion__expandable-content--TransitionDuration--fade), var(--pf-v6-c-accordion__expandable-content--TransitionDuration--slide), 0s, 0s, 0s;
198
+ transition-property: opacity, translate, visibility, max-height, margin-block-end;
199
+ translate: 0 var(--pf-v6-c-accordion__expandable-content--TranslateY);
139
200
  }
140
201
  .pf-v6-c-accordion__expandable-content.pf-m-fixed {
141
- max-height: var(--pf-v6-c-accordion__expandable-content--m-fixed--MaxHeight);
142
202
  overflow-y: auto;
143
203
  }
204
+ .pf-v6-c-accordion__item.pf-m-expanded .pf-v6-c-accordion__expandable-content {
205
+ max-height: 99999px;
206
+ margin-block-end: var(--pf-v6-c-accordion__expandable-content--MarginBlockEnd);
207
+ visibility: revert;
208
+ transition-delay: 0s;
209
+ }
210
+ .pf-v6-c-accordion__item.pf-m-expanded .pf-v6-c-accordion__expandable-content.pf-m-fixed {
211
+ max-height: var(--pf-v6-c-accordion__expandable-content--m-fixed--MaxHeight);
212
+ }
144
213
 
145
214
  .pf-v6-c-accordion__expandable-content-body {
146
215
  padding-block-start: var(--pf-v6-c-accordion__expandable-content-body--PaddingBlockStart);
@@ -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,7 @@
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);
22
23
 
23
24
  // Accordion toggle toggle-start modifier
24
25
  // This decreases the gap between icon and text, alternative is calc it to * 2 the token or create a new token
@@ -46,6 +47,35 @@
46
47
  --#{$accordion}__expandable-content--FontSize: var(--pf-t--global--font--size--body--default);
47
48
  --#{$accordion}__expandable-content--m-fixed--MaxHeight: #{pf-size-prem(150px)};
48
49
 
50
+ // expand animation
51
+ --#{$accordion}__item--before--TransitionDuration--expand--fade: var(--pf-t--global--motion--duration--fade--default);
52
+ --#{$accordion}__item--before--TransitionDuration--collapse--fade: var(--pf-t--global--motion--duration--fade--short);
53
+ --#{$accordion}__item--before--TransitionDuration--fade: var(--#{$accordion}__item--before--TransitionDuration--collapse--fade);
54
+ --#{$accordion}__item--before--TransitionTimingFunction: var(--pf-t--global--motion--timing-function--default);
55
+ --#{$accordion}__item--before--Opacity: 0;
56
+ --#{$accordion}__item--m-expanded--before--Opacity: 1;
57
+ --#{$accordion}__item--m-expanded--before--TranslateY: 0;
58
+ --#{$accordion}__expandable-content--TransitionDuration--collapse--slide: 0s;
59
+ --#{$accordion}__expandable-content--TransitionDuration--collapse--fade: var(--pf-t--global--motion--duration--fade--short);
60
+ --#{$accordion}__expandable-content--TransitionDuration--expand--slide: 0s;
61
+ --#{$accordion}__expandable-content--TransitionDuration--expand--fade: var(--pf-t--global--motion--duration--fade--default);
62
+ --#{$accordion}__expandable-content--TransitionDuration--slide: var(--#{$accordion}__expandable-content--TransitionDuration--collapse--slide);
63
+ --#{$accordion}__expandable-content--TransitionDuration--fade: var(--#{$accordion}__expandable-content--TransitionDuration--collapse--fade);
64
+ --#{$accordion}__expandable-content--TransitionTimingFunction: var(--pf-t--global--motion--timing-function--default);
65
+ --#{$accordion}__expandable-content--Opacity: 0;
66
+ --#{$accordion}__item--m-expanded__expandable-content--Opacity: 1;
67
+ --#{$accordion}__expandable-content--TranslateY: 0;
68
+ --#{$accordion}__item--m-expanded__expandable-content--TranslateY: 0;
69
+
70
+ @media screen and (prefers-reduced-motion: no-preference) {
71
+ --#{$accordion}__item--before--TransitionDuration--expand--slide: var(--pf-t--global--motion--duration--fade--default);
72
+ --#{$accordion}__item--before--TransitionDuration--collapse--slide: var(--pf-t--global--motion--duration--fade--short);
73
+ --#{$accordion}__item--before--TranslateY: -.5rem; // TODO - replace with token
74
+ --#{$accordion}__expandable-content--TransitionDuration--expand--slide: var(--pf-t--global--motion--duration--fade--default);
75
+ --#{$accordion}__expandable-content--TransitionDuration--collapse--slide: var(--pf-t--global--motion--duration--fade--short);
76
+ --#{$accordion}__expandable-content--TranslateY: -.5rem; // TODO - replace with token
77
+ }
78
+
49
79
  // accordion expandable content body
50
80
  --#{$accordion}__expandable-content-body--PaddingBlockStart: var(--pf-t--global--spacer--sm);
51
81
  --#{$accordion}__expandable-content-body--PaddingInlineEnd: var(--pf-t--global--spacer--sm);
@@ -107,13 +137,32 @@
107
137
  }
108
138
 
109
139
  .#{$accordion}__item {
110
- border-radius: var(--#{$accordion}__item--BorderRadius);
140
+ position: relative;
141
+
142
+ &::before {
143
+ position: absolute;
144
+ inset: 0;
145
+ pointer-events: none;
146
+ content: "";
147
+ background-color: var(--#{$accordion}__item--m-expanded--BackgroundColor);
148
+ border-radius: var(--#{$accordion}__item--BorderRadius);
149
+ opacity: var(--#{$accordion}__item--before--Opacity);
150
+ transition-timing-function: var(--#{$accordion}__item--before--TransitionTimingFunction);
151
+ transition-duration: var(--#{$accordion}__item--before--TransitionDuration--fade);
152
+ transition-property: opacity;
153
+ }
111
154
 
112
155
  &.pf-m-expanded {
113
156
  --#{$accordion}__toggle--PaddingBlockEnd: var(--#{$accordion}__toggle--m-expanded--PaddingBlockEnd);
114
157
  --#{$accordion}__toggle-text--FontWeight: var(--#{$accordion}__toggle--m-expanded__toggle-text--FontWeight);
115
-
116
- background-color: var(--#{$accordion}__item--m-expanded--BackgroundColor);
158
+ --#{$accordion}__item--before--TransitionDuration--slide: var(--#{$accordion}__item--before--TransitionDuration--expand--slide);
159
+ --#{$accordion}__item--before--TransitionDuration--fade: var(--#{$accordion}__item--before--TransitionDuration--expand--fade);
160
+ --#{$accordion}__item--before--Opacity: var(--#{$accordion}__item--m-expanded--before--Opacity);
161
+ --#{$accordion}__item--before--TranslateY: var(--#{$accordion}__item--m-expanded--before--TranslateY);
162
+ --#{$accordion}__expandable-content--TransitionDuration--slide: var(--#{$accordion}__expandable-content--TransitionDuration--expand--slide);
163
+ --#{$accordion}__expandable-content--TransitionDuration--fade: var(--#{$accordion}__expandable-content--TransitionDuration--expand--fade);
164
+ --#{$accordion}__expandable-content--Opacity: var(--#{$accordion}__item--m-expanded__expandable-content--Opacity);
165
+ --#{$accordion}__expandable-content--TranslateY: var(--#{$accordion}__item--m-expanded__expandable-content--TranslateY);
117
166
 
118
167
  .#{$accordion}__toggle-icon {
119
168
  transform: rotate(var(--#{$accordion}__toggle--m-expanded__toggle-icon--Rotate));
@@ -122,6 +171,8 @@
122
171
  }
123
172
 
124
173
  .#{$accordion}__toggle {
174
+ position: relative;
175
+ z-index: var(--#{$accordion}__toggle--ZIndex);
125
176
  display: flex;
126
177
  column-gap: var(--#{$accordion}__toggle--ColumnGap);
127
178
  align-items: center;
@@ -156,19 +207,40 @@
156
207
  transition: var(--#{$accordion}__toggle-icon--Transition); // TODO remove shorthand property in breaking change
157
208
  }
158
209
 
210
+ .#{$accordion}__expandable-content:where([hidden]) {
211
+ display: revert;
212
+ }
213
+
159
214
  .#{$accordion}__expandable-content {
160
- margin-block-end: var(--#{$accordion}__expandable-content--MarginBlockEnd);
215
+ max-height: 0;
161
216
  margin-inline-start: var(--#{$accordion}__expandable-content--MarginInlineStart);
162
217
  margin-inline-end: var(--#{$accordion}__expandable-content--MarginInlineEnd);
163
218
  font-size: var(--#{$accordion}__expandable-content--FontSize);
164
219
  color: var(--#{$accordion}__expandable-content--Color);
220
+ visibility: hidden;
165
221
  background-color: var(--#{$accordion}__expandable-content--BackgroundColor);
166
222
  border-radius: var(--#{$accordion}__expandable-content--BorderRadius);
223
+ opacity: var(--#{$accordion}__expandable-content--Opacity);
224
+ transition-delay: 0s, 0s, var(--#{$accordion}__expandable-content--TransitionDuration--fade), var(--#{$accordion}__expandable-content--TransitionDuration--fade), var(--#{$accordion}__expandable-content--TransitionDuration--fade);
225
+ transition-timing-function: var(--#{$accordion}__expandable-content--TransitionTimingFunction);
226
+ transition-duration: var(--#{$accordion}__expandable-content--TransitionDuration--fade), var(--#{$accordion}__expandable-content--TransitionDuration--slide), 0s, 0s, 0s;
227
+ transition-property: opacity, translate, visibility, max-height, margin-block-end;
228
+ translate: 0 var(--#{$accordion}__expandable-content--TranslateY);
167
229
 
168
230
  &.pf-m-fixed {
169
- max-height: var(--#{$accordion}__expandable-content--m-fixed--MaxHeight);
170
231
  overflow-y: auto;
171
232
  }
233
+
234
+ .#{$accordion}__item.pf-m-expanded & {
235
+ max-height: 99999px;
236
+ margin-block-end: var(--#{$accordion}__expandable-content--MarginBlockEnd);
237
+ visibility: revert;
238
+ transition-delay: 0s;
239
+
240
+ &.pf-m-fixed {
241
+ max-height: var(--#{$accordion}__expandable-content--m-fixed--MaxHeight);
242
+ }
243
+ }
172
244
  }
173
245
 
174
246
  .#{$accordion}__expandable-content-body {
@@ -25,27 +25,45 @@
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-offstage-right--TransitionDuration--opacity--default: var(--pf-t--global--motion--duration--fade--default);
29
- --pf-v6-c-alert-group--m-toast__item--m-offstage-right--TransitionTimingFunction--opacity--default: var(--pf-t--global--motion--timing-function--accelerate);
30
- --pf-v6-c-alert-group--m-toast__item--m-offstage-right--TransitionDelay--grid-template-rows--default: var(--pf-t--global--motion--duration--fade--default);
31
- --pf-v6-c-alert-group--m-toast__item--m-offstage-right--TransitionDelay--margin-block--default: var(--pf-t--global--motion--duration--fade--default);
32
- --pf-v6-c-alert-group--m-toast__item--m-offstage-right--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--transform: var(--pf-t--global--motion--duration--slide-out--short);
34
- --pf-v6-c-alert-group--m-toast__item--m-offstage-right--TransitionTimingFunction--transform: var(--pf-t--global--motion--timing-function--accelerate);
35
- --pf-v6-c-alert-group--m-toast__item--m-offstage-right--TransitionDuration--opacity: var(--pf-t--global--motion--duration--slide-out--short);
36
- --pf-v6-c-alert-group--m-toast__item--m-offstage-right--TransitionTimingFunction--opacity: var(--pf-t--global--motion--timing-function--accelerate);
37
- --pf-v6-c-alert-group--m-toast__item--m-offstage-right--TransitionDuration--margin-block: var(--pf-t--global--motion--duration--fade--short);
38
- --pf-v6-c-alert-group--m-toast__item--m-offstage-right--TransitionTimingFunction--margin-block: var(--pf-t--global--motion--timing-function--accelerate);
39
- --pf-v6-c-alert-group--m-toast__item--m-offstage-right--TransitionDelay--margin-block: var(--pf-t--global--motion--duration--slide-out--short);
40
- --pf-v6-c-alert-group--m-toast__item--m-offstage-right--TransitionDuration--grid-template-rows: var(--pf-t--global--motion--duration--slide-in--short);
41
- --pf-v6-c-alert-group--m-toast__item--m-offstage-right--TransitionTimingFunction--grid-template-rows: var(--pf-t--global--motion--timing-function--accelerate);
42
- --pf-v6-c-alert-group--m-toast__item--m-offstage-right--TransitionDelay--grid-template-rows: var(--pf-t--global--motion--duration--slide-out--short);
43
- --pf-v6-c-alert-group--m-toast__item--m-offstage-right--c-alert--TransitionDuration: var(--pf-t--global--motion--duration--slide-out--short);
44
- --pf-v6-c-alert-group--m-toast__item--m-offstage-right--c-alert--TransitionTimingFunction: var(--pf-t--global--motion--timing-function--accelerate);
45
- --pf-v6-c-alert-group--m-toast__item--m-offstage-right--c-alert--Transition: all
46
- var(--pf-v6-c-alert-group--m-toast__item--m-offstage-right--c-alert--TransitionDuration)
47
- var(--pf-v6-c-alert-group--m-toast__item--m-offstage-right--c-alert--TransitionTimingFunction)
48
- var(--pf-v6-c-alert-group--m-toast__item--m-offstage-right--c-alert--TransitionDuration);
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;
49
67
  --pf-v6-c-alert-group__overflow-button--BorderWidth: 0;
50
68
  --pf-v6-c-alert-group__overflow-button--BorderRadius: var(--pf-t--global--border--radius--medium);
51
69
  --pf-v6-c-alert-group__overflow-button--PaddingBlockStart: var(--pf-t--global--spacer--md);
@@ -105,40 +123,43 @@
105
123
  transition: var(--pf-v6-c-alert-group--m-toast__item--c-alert--Transition);
106
124
  }
107
125
  }
108
- .pf-v6-c-alert-group__item.pf-m-offstage-top:first-child {
126
+ .pf-v6-c-alert-group__item.pf-m-offstage-top:first-child, .pf-v6-c-alert-group__item.pf-m-incoming:first-child {
109
127
  grid-template-rows: 0fr;
110
128
  margin-block: 0;
111
129
  overflow: hidden;
112
130
  opacity: 0;
113
131
  transform: translateY(-100%);
114
132
  }
115
- .pf-v6-c-alert-group__item.pf-m-offstage-top:first-child .pf-v6-c-alert {
133
+ .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
134
  min-height: 0;
117
135
  padding-block-start: 0;
118
136
  padding-block-end: 0;
119
137
  border-width: 0;
120
138
  }
121
- .pf-v6-c-alert-group__item.pf-m-offstage-right {
139
+ .pf-v6-c-alert-group__item.pf-m-offstage-right, .pf-v6-c-alert-group__item.pf-m-outgoing {
122
140
  grid-template-rows: 0fr;
123
141
  margin-block: 0;
124
142
  overflow: hidden;
125
143
  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);
144
+ 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
145
  }
128
- .pf-v6-c-alert-group__item.pf-m-offstage-right .pf-v6-c-alert {
146
+ .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
147
  min-height: 0;
130
148
  padding-block-start: 0;
131
149
  padding-block-end: 0;
132
150
  border-width: 0;
133
- transition: all 0s var(--pf-v6-c-alert-group--m-toast__item--m-offstage-right--c-alert--TransitionDelay--default);
151
+ 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
152
  }
135
153
  @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);
154
+ .pf-v6-c-alert-group__item.pf-m-offstage-right, .pf-v6-c-alert-group__item.pf-m-outgoing {
155
+ 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
156
  transform: translateX(100%);
139
157
  }
140
- .pf-v6-c-alert-group__item.pf-m-offstage-right .pf-v6-c-alert {
141
- transition: var(--pf-v6-c-alert-group--m-toast__item--m-offstage-right--c-alert--Transition);
158
+ :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 {
159
+ transform: translateX(calc(100% * var(--pf-v6-global--inverse--multiplier)));
160
+ }
161
+ .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 {
162
+ 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
163
  }
143
164
  }
144
165
  .pf-v6-c-alert-group__item:hover {