@patternfly/patternfly 6.3.0-prerelease.9 → 6.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (109) hide show
  1. package/assets/images/icon-outlined-star.hbs +3 -0
  2. package/assets/images/icon-star.hbs +3 -0
  3. package/base/patternfly-common.css +46 -11
  4. package/base/patternfly-common.scss +58 -13
  5. package/components/Accordion/accordion.css +72 -3
  6. package/components/Accordion/accordion.scss +78 -6
  7. package/components/Alert/alert-group.css +52 -31
  8. package/components/Alert/alert-group.scss +77 -46
  9. package/components/Button/button.css +154 -6
  10. package/components/Button/button.scss +160 -8
  11. package/components/DataList/data-list.css +2 -2
  12. package/components/DataList/data-list.scss +2 -2
  13. package/components/DualListSelector/dual-list-selector.css +36 -0
  14. package/components/DualListSelector/dual-list-selector.scss +43 -0
  15. package/components/ExpandableSection/expandable-section.css +63 -1
  16. package/components/ExpandableSection/expandable-section.scss +76 -2
  17. package/components/FileUpload/file-upload.css +3 -3
  18. package/components/FileUpload/file-upload.scss +3 -3
  19. package/components/Form/form.css +40 -1
  20. package/components/Form/form.scss +47 -1
  21. package/components/FormControl/form-control.css +16 -0
  22. package/components/FormControl/form-control.scss +9 -0
  23. package/components/InputGroup/input-group.css +80 -0
  24. package/components/InputGroup/input-group.scss +95 -0
  25. package/components/Menu/menu.css +24 -4
  26. package/components/Menu/menu.scss +20 -5
  27. package/components/MenuToggle/menu-toggle.css +30 -0
  28. package/components/MenuToggle/menu-toggle.scss +33 -0
  29. package/components/Nav/nav.css +22 -8
  30. package/components/Nav/nav.scss +22 -9
  31. package/components/Page/page.css +62 -3
  32. package/components/Page/page.scss +44 -3
  33. package/components/Progress/progress.css +16 -0
  34. package/components/Progress/progress.scss +11 -1
  35. package/components/ProgressStepper/progress-stepper.scss +1 -0
  36. package/components/Spinner/spinner.css +5 -0
  37. package/components/Spinner/spinner.scss +6 -0
  38. package/components/Table/table-grid.css +51 -5
  39. package/components/Table/table-grid.scss +22 -1
  40. package/components/Table/table.css +95 -2
  41. package/components/Table/table.scss +138 -3
  42. package/components/Tabs/tabs.css +25 -15
  43. package/components/Tabs/tabs.scss +26 -13
  44. package/components/TextInputGroup/text-input-group.css +20 -0
  45. package/components/TextInputGroup/text-input-group.scss +12 -0
  46. package/components/Timestamp/timestamp.css +4 -0
  47. package/components/Timestamp/timestamp.scss +7 -0
  48. package/components/TreeView/tree-view.css +39 -0
  49. package/components/TreeView/tree-view.scss +42 -2
  50. package/components/Truncate/truncate.css +1 -0
  51. package/components/Truncate/truncate.scss +3 -0
  52. package/components/_index.css +912 -84
  53. package/docs/components/Breadcrumb/examples/Breadcrumb.md +1 -1
  54. package/docs/components/Button/examples/Button.md +148 -5
  55. package/docs/components/Card/examples/Card.md +8 -8
  56. package/docs/components/CodeBlock/examples/CodeBlock.md +5 -5
  57. package/docs/components/DataList/examples/DataList.md +23 -23
  58. package/docs/components/DualListSelector/examples/DualListSelector.md +534 -16
  59. package/docs/components/ExpandableSection/examples/ExpandableSection.md +17 -12
  60. package/docs/components/Form/examples/Form.md +1047 -126
  61. package/docs/components/Hint/examples/Hint.md +3 -3
  62. package/docs/components/InlineEdit/examples/InlineEdit.md +2 -2
  63. package/docs/components/InputGroup/examples/InputGroup.md +5 -1
  64. package/docs/components/JumpLinks/examples/JumpLinks.md +1 -1
  65. package/docs/components/Masthead/examples/masthead.md +90 -12
  66. package/docs/components/Menu/examples/Menu.md +122 -6
  67. package/docs/components/MenuToggle/examples/MenuToggle.md +90 -51
  68. package/docs/components/MultipleFileUpload/examples/MultipleFileUpload.md +2 -10
  69. package/docs/components/OverflowMenu/examples/overflow-menu.md +5 -5
  70. package/docs/components/Page/examples/Page.md +147 -14
  71. package/docs/components/Pagination/examples/Pagination.md +12 -12
  72. package/docs/components/ProgressStepper/examples/ProgressStepper.md +32 -6
  73. package/docs/components/Slider/examples/Slider.md +2 -2
  74. package/docs/components/Spinner/examples/Spinner.md +10 -0
  75. package/docs/components/Table/examples/Table.md +9428 -6173
  76. package/docs/components/Tabs/examples/Tabs.md +1214 -6729
  77. package/docs/components/TextInputGroup/examples/TextInputGroup.md +45 -5
  78. package/docs/components/Toolbar/examples/Toolbar.md +7 -7
  79. package/docs/demos/AboutModal/examples/AboutModal.md +22 -3
  80. package/docs/demos/Alert/examples/Alert.md +66 -9
  81. package/docs/demos/BackToTop/examples/BackToTop.md +22 -3
  82. package/docs/demos/Banner/examples/Banner.md +47 -6
  83. package/docs/demos/Card/examples/Card.md +5 -62
  84. package/docs/demos/CardView/examples/CardView.md +24 -5
  85. package/docs/demos/Dashboard/examples/Dashboard.md +24 -5
  86. package/docs/demos/DataList/examples/DataList.md +100 -24
  87. package/docs/demos/DescriptionList/examples/DescriptionList.md +66 -47
  88. package/docs/demos/Drawer/examples/Drawer.md +110 -53
  89. package/docs/demos/Form/examples/BasicForms.md +12 -12
  90. package/docs/demos/JumpLinks/examples/JumpLinks.md +132 -18
  91. package/docs/demos/Masthead/examples/Masthead.md +170 -18
  92. package/docs/demos/Modal/examples/Modal.md +132 -18
  93. package/docs/demos/Nav/examples/Nav.md +111 -16
  94. package/docs/demos/NotificationDrawer/examples/NotificationDrawer.md +110 -15
  95. package/docs/demos/Page/examples/Page.md +309 -43
  96. package/docs/demos/PrimaryDetail/examples/PrimaryDetail.md +160 -103
  97. package/docs/demos/Skeleton/examples/Skeleton.md +22 -3
  98. package/docs/demos/Table/examples/Table.md +449 -155
  99. package/docs/demos/Tabs/examples/Tabs.md +137 -593
  100. package/docs/demos/Toolbar/examples/Toolbar.md +72 -34
  101. package/docs/demos/Wizard/examples/Wizard.md +198 -27
  102. package/package.json +5 -5
  103. package/patternfly-base-no-globals.css +45 -11
  104. package/patternfly-base.css +45 -11
  105. package/patternfly-no-globals.css +957 -95
  106. package/patternfly.css +957 -95
  107. package/patternfly.min.css +1 -1
  108. package/patternfly.min.css.map +1 -1
  109. package/sass-utilities/mixins.scss +54 -0
@@ -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>
@@ -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 {