@patternfly/patternfly 6.3.0-prerelease.1 → 6.3.0-prerelease.3

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.
@@ -15,9 +15,15 @@
15
15
  --pf-v6-c-drawer__panel--RowGap: var(--pf-t--global--spacer--sm);
16
16
  --pf-v6-c-drawer__panel--PaddingBlockStart: var(--pf-t--global--spacer--sm);
17
17
  --pf-v6-c-drawer__panel--PaddingBlockEnd: var(--pf-t--global--spacer--sm);
18
+ --pf-v6-c-drawer__panel--TransitionDelay: 0s, var(--pf-v6-c-drawer__panel--TransitionDelay--focus), var(--pf-v6-c-drawer__panel--TransitionDelay--focus);
19
+ --pf-v6-c-drawer__panel--TransitionDelay--focus: var(--pf-v6-c-drawer__panel--TransitionDuration--fade);
20
+ --pf-v6-c-drawer__panel--TransitionDelay--expand--focus: 0s;
18
21
  --pf-v6-c-drawer__panel--TransitionTimingFunction: var(--pf-t--global--motion--timing-function--decelerate);
19
- --pf-v6-c-drawer__panel--TransitionDuration: var(--pf-t--global--motion--duration--slide-in--short);
20
- --pf-v6-c-drawer__panel--TransitionProperty: margin, transform, box-shadow, flex-basis;
22
+ --pf-v6-c-drawer__panel--TransitionDuration--fade: var(--pf-t--global--motion--duration--fade--default);
23
+ --pf-v6-c-drawer__panel--TransitionDuration: var(--pf-v6-c-drawer__panel--TransitionDuration--fade), 0s, 0s;
24
+ --pf-v6-c-drawer__panel--TransitionProperty: opacity, visibility, transform;
25
+ --pf-v6-c-drawer__panel--Opacity: 0;
26
+ --pf-v6-c-drawer--m-expanded__panel--Opacity: 1;
21
27
  --pf-v6-c-drawer__panel--FlexBasis: 100%;
22
28
  --pf-v6-c-drawer__panel--md--FlexBasis--min: 1.5rem;
23
29
  --pf-v6-c-drawer__panel--md--FlexBasis: 50%;
@@ -107,6 +113,17 @@
107
113
  --pf-v6-c-drawer--m-panel-left--m-inline__panel--PaddingInlineEnd: var(--pf-v6-c-drawer__panel--after--Width);
108
114
  --pf-v6-c-drawer--m-panel-bottom--m-inline__panel--PaddingBlockStart: var(--pf-v6-c-drawer__panel--after--Width);
109
115
  }
116
+ @media screen and (prefers-reduced-motion: no-preference) {
117
+ .pf-v6-c-drawer {
118
+ --pf-v6-c-drawer__panel--TransitionDuration--slide: var(--pf-t--global--motion--duration--slide-in--short);
119
+ --pf-v6-c-drawer__panel--TransitionDelay--focus: var(--pf-v6-c-drawer__panel--TransitionDuration--slide);
120
+ --pf-v6-c-drawer__panel--TransitionDelay: 0s, 0s, 0s, 0s, var(--pf-v6-c-drawer__panel--TransitionDelay--focus);
121
+ --pf-v6-c-drawer__panel--TransitionTimingFunction: var(--pf-t--global--motion--timing-function--decelerate);
122
+ --pf-v6-c-drawer__panel--TransitionDuration: 0s, var(--pf-v6-c-drawer__panel--TransitionDuration--slide), 0s, 0s, 0s;
123
+ --pf-v6-c-drawer__panel--TransitionProperty: margin, transform, box-shadow, flex-basis, visibility;
124
+ --pf-v6-c-drawer__panel--Opacity: 1;
125
+ }
126
+ }
110
127
  @media screen and (min-width: 75rem) {
111
128
  .pf-v6-c-drawer {
112
129
  --pf-v6-c-drawer__panel--MinWidth: var(--pf-v6-c-drawer__panel--xl--MinWidth);
@@ -154,8 +171,13 @@
154
171
  .pf-v6-c-drawer.pf-m-panel-bottom > .pf-v6-c-drawer__main {
155
172
  flex-direction: column;
156
173
  }
174
+ .pf-v6-c-drawer.pf-m-expanded {
175
+ --pf-v6-c-drawer__panel--TransitionDelay--focus: var(--pf-v6-c-drawer__panel--TransitionDelay--expand--focus);
176
+ }
157
177
  .pf-v6-c-drawer.pf-m-expanded > .pf-v6-c-drawer__main > .pf-v6-c-drawer__panel {
158
178
  transform: translateX(-100%);
179
+ --pf-v6-c-drawer__panel--Opacity: var(--pf-v6-c-drawer--m-expanded__panel--Opacity);
180
+ visibility: visible;
159
181
  }
160
182
  :where(.pf-v6-m-dir-rtl, [dir=rtl]) .pf-v6-c-drawer.pf-m-expanded > .pf-v6-c-drawer__main > .pf-v6-c-drawer__panel {
161
183
  transform: translateX(calc(-100% * var(--pf-v6-global--inverse--multiplier)));
@@ -228,8 +250,11 @@
228
250
  order: 1;
229
251
  max-height: var(--pf-v6-c-drawer__panel--MaxHeight);
230
252
  overflow: auto;
253
+ visibility: hidden;
231
254
  background-color: var(--pf-v6-c-drawer__panel--BackgroundColor);
232
255
  box-shadow: var(--pf-v6-c-drawer__panel--BoxShadow);
256
+ opacity: var(--pf-v6-c-drawer__panel--Opacity);
257
+ transition-delay: var(--pf-v6-c-drawer__panel--TransitionDelay);
233
258
  transition-timing-function: var(--pf-v6-c-drawer__panel--TransitionTimingFunction);
234
259
  transition-duration: var(--pf-v6-c-drawer__panel--TransitionDuration);
235
260
  transition-property: var(--pf-v6-c-drawer__panel--TransitionProperty);
@@ -286,17 +311,6 @@
286
311
  padding-block-end: var(--pf-v6-c-drawer__panel--PaddingBlockEnd);
287
312
  }
288
313
 
289
- @keyframes pf-remove-tab-focus {
290
- to {
291
- visibility: hidden;
292
- }
293
- }
294
- .pf-v6-c-drawer__panel[hidden] {
295
- animation-name: pf-remove-tab-focus;
296
- animation-delay: var(--pf-v6-c-drawer__panel--TransitionDuration);
297
- animation-fill-mode: forwards;
298
- }
299
-
300
314
  .pf-v6-c-drawer__head {
301
315
  display: grid;
302
316
  grid-template-columns: auto;
@@ -404,7 +418,7 @@
404
418
  .pf-v6-c-drawer {
405
419
  min-width: var(--pf-v6-c-drawer__panel--MinWidth);
406
420
  }
407
- .pf-v6-c-drawer.pf-m-expanded > .pf-v6-c-drawer__main > .pf-v6-c-drawer__panel {
421
+ .pf-v6-c-drawer > .pf-v6-c-drawer__main > .pf-v6-c-drawer__panel {
408
422
  box-shadow: var(--pf-v6-c-drawer--m-expanded__panel--BoxShadow);
409
423
  }
410
424
  .pf-v6-c-drawer > .pf-v6-c-drawer__main > .pf-v6-c-drawer__panel.pf-m-resizable {
@@ -27,9 +27,15 @@ $pf-v6-c-drawer__panel--list--width: (25, 33, 50, 66, 75, 100);
27
27
  --#{$drawer}__panel--RowGap: var(--pf-t--global--spacer--sm);
28
28
  --#{$drawer}__panel--PaddingBlockStart: var(--pf-t--global--spacer--sm);
29
29
  --#{$drawer}__panel--PaddingBlockEnd: var(--pf-t--global--spacer--sm);
30
+ --#{$drawer}__panel--TransitionDelay: 0s, var(--#{$drawer}__panel--TransitionDelay--focus), var(--#{$drawer}__panel--TransitionDelay--focus);
31
+ --#{$drawer}__panel--TransitionDelay--focus: var(--#{$drawer}__panel--TransitionDuration--fade);
32
+ --#{$drawer}__panel--TransitionDelay--expand--focus: 0s; // on expand, transition visible immediately
30
33
  --#{$drawer}__panel--TransitionTimingFunction: var(--pf-t--global--motion--timing-function--decelerate);
31
- --#{$drawer}__panel--TransitionDuration: var(--pf-t--global--motion--duration--slide-in--short);
32
- --#{$drawer}__panel--TransitionProperty: margin, transform, box-shadow, flex-basis;
34
+ --#{$drawer}__panel--TransitionDuration--fade: var(--pf-t--global--motion--duration--fade--default);
35
+ --#{$drawer}__panel--TransitionDuration: var(--#{$drawer}__panel--TransitionDuration--fade), 0s, 0s;
36
+ --#{$drawer}__panel--TransitionProperty: opacity, visibility, transform; // by default, fade the drawer
37
+ --#{$drawer}__panel--Opacity: 0;
38
+ --#{$drawer}--m-expanded__panel--Opacity: 1;
33
39
  --#{$drawer}__panel--FlexBasis: 100%;
34
40
  --#{$drawer}__panel--md--FlexBasis--min: #{pf-size-prem(24px)};
35
41
  --#{$drawer}__panel--md--FlexBasis: 50%;
@@ -46,6 +52,16 @@ $pf-v6-c-drawer__panel--list--width: (25, 33, 50, 66, 75, 100);
46
52
  --#{$drawer}--m-panel-bottom__panel--m-resizable--md--FlexBasis--min: #{pf-size-prem(24px)};
47
53
  --#{$drawer}--m-panel-bottom__panel--m-resizable--MinHeight: #{pf-size-prem(24px)};
48
54
 
55
+ @media screen and (prefers-reduced-motion: no-preference) {
56
+ --#{$drawer}__panel--TransitionDuration--slide: var(--pf-t--global--motion--duration--slide-in--short);
57
+ --#{$drawer}__panel--TransitionDelay--focus: var(--#{$drawer}__panel--TransitionDuration--slide);
58
+ --#{$drawer}__panel--TransitionDelay: 0s, 0s, 0s, 0s, var(--#{$drawer}__panel--TransitionDelay--focus);
59
+ --#{$drawer}__panel--TransitionTimingFunction: var(--pf-t--global--motion--timing-function--decelerate);
60
+ --#{$drawer}__panel--TransitionDuration: 0s, var(--#{$drawer}__panel--TransitionDuration--slide), 0s, 0s, 0s;
61
+ --#{$drawer}__panel--TransitionProperty: margin, transform, box-shadow, flex-basis, visibility; // with no preference, slide the panel
62
+ --#{$drawer}__panel--Opacity: 1;
63
+ }
64
+
49
65
  // Drawer panel head
50
66
  --#{$drawer}__head--ColumnGap: var(--pf-t--global--spacer--gap--text-to-element--default);
51
67
  --#{$drawer}__head--PaddingBlockStart: var(--pf-t--global--spacer--sm);
@@ -205,12 +221,18 @@ $pf-v6-c-drawer__panel--list--width: (25, 33, 50, 66, 75, 100);
205
221
  // Expanded
206
222
  // stylelint-disable selector-max-class
207
223
  &.pf-m-expanded {
224
+ --#{$drawer}__panel--TransitionDelay--focus: var(--#{$drawer}__panel--TransitionDelay--expand--focus);
225
+
208
226
  > .#{$drawer}__main > .#{$drawer}__panel {
209
227
  @include pf-v6-bidirectional-style(
210
228
  $prop: transform,
211
229
  $ltr-val: translateX(-100%),
212
230
  $rtl-val: translateX(#{pf-v6-calc-inverse(-100%)}),
213
231
  );
232
+
233
+ --#{$drawer}__panel--Opacity: var(--#{$drawer}--m-expanded__panel--Opacity);
234
+
235
+ visibility: visible;
214
236
  }
215
237
 
216
238
  &.pf-m-panel-left > .#{$drawer}__main > .#{$drawer}__panel {
@@ -297,8 +319,11 @@ $pf-v6-c-drawer__panel--list--width: (25, 33, 50, 66, 75, 100);
297
319
  order: 1;
298
320
  max-height: var(--#{$drawer}__panel--MaxHeight);
299
321
  overflow: auto;
322
+ visibility: hidden; // hidden by default
300
323
  background-color: var(--#{$drawer}__panel--BackgroundColor);
301
324
  box-shadow: var(--#{$drawer}__panel--BoxShadow);
325
+ opacity: var(--#{$drawer}__panel--Opacity);
326
+ transition-delay: var(--#{$drawer}__panel--TransitionDelay);
302
327
  transition-timing-function: var(--#{$drawer}__panel--TransitionTimingFunction);
303
328
  transition-duration: var(--#{$drawer}__panel--TransitionDuration);
304
329
  transition-property: var(--#{$drawer}__panel--TransitionProperty);
@@ -360,9 +385,6 @@ $pf-v6-c-drawer__panel--list--width: (25, 33, 50, 66, 75, 100);
360
385
  padding-block-end: var(--#{$drawer}__panel--PaddingBlockEnd);
361
386
  }
362
387
 
363
- // Remove tab focus
364
- @include pf-v6-animate-remove-tab-focus(".#{$drawer}__panel", var(--#{$drawer}__panel--TransitionDuration));
365
-
366
388
  // Panel head
367
389
  .#{$drawer}__head {
368
390
  display: grid;
@@ -491,9 +513,7 @@ $pf-v6-c-drawer__panel--list--width: (25, 33, 50, 66, 75, 100);
491
513
  .#{$drawer} {
492
514
  min-width: var(--#{$drawer}__panel--MinWidth);
493
515
 
494
- // stylelint-disable selector-max-class
495
- // Expanded
496
- &.pf-m-expanded > .#{$drawer}__main {
516
+ > .#{$drawer}__main {
497
517
  > .#{$drawer}__panel {
498
518
  box-shadow: var(--#{$drawer}--m-expanded__panel--BoxShadow);
499
519
  }
@@ -618,7 +638,6 @@ $pf-v6-c-drawer__panel--list--width: (25, 33, 50, 66, 75, 100);
618
638
  .#{$drawer}.pf-m-panel-left > .#{$drawer}__main > .#{$drawer}__panel.pf-m-no-border {
619
639
  --#{$drawer}--m-expanded__panel--BoxShadow: none;
620
640
  }
621
- // stylelint-enable
622
641
 
623
642
  .#{$drawer}__splitter {
624
643
  display: block;
@@ -1,3 +1,13 @@
1
+ @property --pf-v6-c-tabs--link-accent--length {
2
+ syntax: "<length>";
3
+ inherits: true;
4
+ initial-value: 0px;
5
+ }
6
+ @property --pf-v6-c-tabs--link-accent--start {
7
+ syntax: "<length>";
8
+ inherits: true;
9
+ initial-value: 0px;
10
+ }
1
11
  .pf-v6-c-tabs {
2
12
  --pf-v6-c-tabs--inset: 0;
3
13
  --pf-v6-c-tabs--Width: auto;
@@ -59,6 +69,8 @@
59
69
  --pf-v6-c-tabs--m-box--m-secondary__link--hover--BackgroundColor: var(--pf-t--global--background--color--action--plain--hover);
60
70
  --pf-v6-c-tabs--m-box--m-secondary__item--m-current__link--BackgroundColor: var(--pf-t--global--background--color--action--plain--default);
61
71
  --pf-v6-c-tabs--m-subtab__link--FontSize: var(--pf-t--global--font--size--xs);
72
+ --pf-v6-c-tabs__link--TransitionDuration--background-color: var(--pf-t--global--motion--duration--fade--short);
73
+ --pf-v6-c-tabs__link--TransitionTimingFunction--background-color: var(--pf-t--global--motion--timing-function--default);
62
74
  --pf-v6-c-tabs__link--before--border-color--base: var(--pf-t--global--border--color--default);
63
75
  --pf-v6-c-tabs__link--before--border-width--base: var(--pf-t--global--border--width--regular);
64
76
  --pf-v6-c-tabs__link--before--BorderBlockStartColor: var(--pf-v6-c-tabs__link--before--border-color--base);
@@ -83,6 +95,26 @@
83
95
  --pf-v6-c-tabs__link--after--BorderInlineStartWidth: 0;
84
96
  --pf-v6-c-tabs__item--m-current__link--after--BorderColor: var(--pf-t--global--border--color--clicked);
85
97
  --pf-v6-c-tabs__item--m-current__link--after--BorderWidth: var(--pf-t--global--border--width--extra-strong);
98
+ --pf-v6-c-tabs--link-accent--start: 0;
99
+ --pf-v6-c-tabs--link-accent--length: auto;
100
+ --pf-v6-c-tabs--link-accent--color: var(--pf-v6-c-tabs__item--m-current__link--after--BorderColor);
101
+ --pf-v6-c-tabs--link-accent--border-size: var(--pf-v6-c-tabs__item--m-current__link--after--BorderWidth);
102
+ --pf-v6-c-tabs--link-accent--InsetBlockStart: auto;
103
+ --pf-v6-c-tabs--link-accent--InsetBlockEnd: 0;
104
+ --pf-v6-c-tabs--link-accent--InsetInlineStart: initial;
105
+ --pf-v6-c-tabs--link-accent--Width: initial;
106
+ --pf-v6-c-tabs--link-accent--Height: 0;
107
+ --pf-v6-c-tabs--link-accent--BorderBlockEndWidth: var(--pf-v6-c-tabs--link-accent--border-size);
108
+ --pf-v6-c-tabs--link-accent--BorderInlineStartWidth: 0;
109
+ --pf-v6-c-tabs--m-vertical--link-accent--InsetBlockStart: initial;
110
+ --pf-v6-c-tabs--m-vertical--link-accent--InsetBlockEnd: auto;
111
+ --pf-v6-c-tabs--m-vertical--link-accent--InsetInlineStart: 0;
112
+ --pf-v6-c-tabs--m-vertical--link-accent--Width: 0;
113
+ --pf-v6-c-tabs--m-vertical--link-accent--Height: initial;
114
+ --pf-v6-c-tabs--m-vertical--link-accent--BorderBlockEndWidth: 0;
115
+ --pf-v6-c-tabs--m-vertical--link-accent--BorderInlineStartWidth: var(--pf-v6-c-tabs--link-accent--border-size);
116
+ --pf-v6-c-tabs--link-accent--TransitionDuration: var(--pf-t--global--motion--duration--md);
117
+ --pf-v6-c-tabs--link-accent--TransitionTimingFunction: var(--pf-t--global--motion--timing-function--decelerate);
86
118
  --pf-v6-c-tabs__scroll-button--PaddingBlockStart: var(--pf-t--global--spacer--sm);
87
119
  --pf-v6-c-tabs__scroll-button--PaddingBlockEnd: var(--pf-t--global--spacer--sm);
88
120
  --pf-v6-c-tabs__scroll-button--PaddingInlineStart: var(--pf-t--global--spacer--sm);
@@ -240,6 +272,13 @@
240
272
  --pf-v6-c-tabs__link--after--InsetBlockEnd: 0;
241
273
  --pf-v6-c-tabs__link--after--InsetInlineEnd: auto;
242
274
  --pf-v6-c-tabs__list--ScrollSnapTypeAxis: var(--pf-v6-c-tabs--m-vertical__list--ScrollSnapTypeAxis);
275
+ --pf-v6-c-tabs--link-accent--InsetBlockStart: var(--pf-v6-c-tabs--m-vertical--link-accent--InsetBlockStart);
276
+ --pf-v6-c-tabs--link-accent--InsetBlockEnd: var(--pf-v6-c-tabs--m-vertical--link-accent--InsetBlockEnd);
277
+ --pf-v6-c-tabs--link-accent--InsetInlineStart: var(--pf-v6-c-tabs--m-vertical--link-accent--InsetInlineStart);
278
+ --pf-v6-c-tabs--link-accent--Width: var(--pf-v6-c-tabs--m-vertical--link-accent--Width);
279
+ --pf-v6-c-tabs--link-accent--Height: var(--pf-v6-c-tabs--m-vertical--link-accent--Height);
280
+ --pf-v6-c-tabs--link-accent--BorderBlockEndWidth: var(--pf-v6-c-tabs--m-vertical--link-accent--BorderBlockEndWidth);
281
+ --pf-v6-c-tabs--link-accent--BorderInlineStartWidth: var(--pf-v6-c-tabs--m-vertical--link-accent--BorderInlineStartWidth);
243
282
  display: inline-flex;
244
283
  flex-direction: column;
245
284
  height: 100%;
@@ -502,6 +541,7 @@
502
541
  text-decoration-line: none;
503
542
  background-color: var(--pf-v6-c-tabs__link--BackgroundColor);
504
543
  border-radius: var(--pf-v6-c-tabs__link--BorderRadius);
544
+ transition: background-color var(--pf-v6-c-tabs__link--TransitionDuration--background-color) var(--pf-v6-c-tabs__link--TransitionTimingFunction--background-color);
505
545
  }
506
546
  .pf-v6-c-tabs__item.pf-m-action, .pf-v6-c-tabs__link {
507
547
  --pf-v6-c-tabs__link--after--BorderBlockEndWidth: var(--pf-v6-c-tabs__link--after--BorderWidth);
@@ -812,4 +852,29 @@
812
852
  --pf-v6-c-tabs--m-vertical--inset: var(--pf-t--global--spacer--2xl);
813
853
  --pf-v6-c-tabs--m-vertical--m-box--inset: var(--pf-t--global--spacer--2xl);
814
854
  }
855
+ }
856
+
857
+ @media (prefers-reduced-motion: no-preference) {
858
+ .pf-v6-c-tabs:not(.pf-m-box) .pf-v6-c-tabs__link::after,
859
+ .pf-v6-c-tabs:not(.pf-m-box) .pf-v6-c-tabs__item.pf-m-action::after {
860
+ content: revert;
861
+ }
862
+ .pf-v6-c-tabs:not(.pf-m-box) .pf-v6-c-tabs__list::after {
863
+ position: absolute;
864
+ inset-block-start: var(--pf-v6-c-tabs--link-accent--InsetBlockStart, var(--pf-v6-c-tabs--link-accent--start));
865
+ inset-block-end: var(--pf-v6-c-tabs--link-accent--InsetBlockEnd);
866
+ inset-inline-start: var(--pf-v6-c-tabs--link-accent--InsetInlineStart, var(--pf-v6-c-tabs--link-accent--start));
867
+ width: var(--pf-v6-c-tabs--link-accent--Width, var(--pf-v6-c-tabs--link-accent--length));
868
+ height: var(--pf-v6-c-tabs--link-accent--Height, var(--pf-v6-c-tabs--link-accent--length));
869
+ content: "";
870
+ border: 0 solid var(--pf-v6-c-tabs--link-accent--color);
871
+ border-block-end-width: var(--pf-v6-c-tabs--link-accent--BorderBlockEndWidth);
872
+ border-inline-start-width: var(--pf-v6-c-tabs--link-accent--BorderInlineStartWidth);
873
+ transition-timing-function: var(--pf-v6-c-tabs--link-accent--TransitionTimingFunction);
874
+ transition-duration: var(--pf-v6-c-tabs--link-accent--TransitionDuration);
875
+ transition-property: --pf-v6-c-tabs--link-accent--length, --pf-v6-c-tabs--link-accent--start, width;
876
+ }
877
+ .pf-v6-c-tabs.pf-m-initializing-accent {
878
+ --pf-v6-c-tabs--link-accent--TransitionDuration: 0;
879
+ }
815
880
  }
@@ -3,6 +3,20 @@
3
3
  $pf-v6-c-tabs--breakpoint-map: build-breakpoint-map("base", "sm", "md", "lg", "xl", "2xl");
4
4
  $pf-v6-c-tabs--spacer-map: build-spacer-map("none", "sm", "md", "lg", "xl", "2xl");
5
5
 
6
+ @property --#{$tabs}--link-accent--length {
7
+ syntax: "<length>";
8
+ inherits: true;
9
+ // stylelint-disable-next-line length-zero-no-unit
10
+ initial-value: 0px;
11
+ }
12
+
13
+ @property --#{$tabs}--link-accent--start {
14
+ syntax: "<length>";
15
+ inherits: true;
16
+ // stylelint-disable-next-line length-zero-no-unit
17
+ initial-value: 0px;
18
+ }
19
+
6
20
  @include pf-root($tabs) {
7
21
  --#{$tabs}--inset: 0;
8
22
  --#{$tabs}--Width: auto;
@@ -74,6 +88,8 @@ $pf-v6-c-tabs--spacer-map: build-spacer-map("none", "sm", "md", "lg", "xl", "2xl
74
88
  --#{$tabs}--m-box--m-secondary__link--hover--BackgroundColor: var(--pf-t--global--background--color--action--plain--hover);
75
89
  --#{$tabs}--m-box--m-secondary__item--m-current__link--BackgroundColor: var(--pf-t--global--background--color--action--plain--default);
76
90
  --#{$tabs}--m-subtab__link--FontSize: var(--pf-t--global--font--size--xs);
91
+ --#{$tabs}__link--TransitionDuration--background-color: var(--pf-t--global--motion--duration--fade--short);
92
+ --#{$tabs}__link--TransitionTimingFunction--background-color: var(--pf-t--global--motion--timing-function--default);
77
93
 
78
94
  // Link before
79
95
  --#{$tabs}__link--before--border-color--base: var(--pf-t--global--border--color--default);
@@ -103,6 +119,28 @@ $pf-v6-c-tabs--spacer-map: build-spacer-map("none", "sm", "md", "lg", "xl", "2xl
103
119
  --#{$tabs}__item--m-current__link--after--BorderColor: var(--pf-t--global--border--color--clicked);
104
120
  --#{$tabs}__item--m-current__link--after--BorderWidth: var(--pf-t--global--border--width--extra-strong);
105
121
 
122
+ // Link accent
123
+ --#{$tabs}--link-accent--start: 0; // needed to create react-token
124
+ --#{$tabs}--link-accent--length: auto; // needed to create react-token
125
+ --#{$tabs}--link-accent--color: var(--#{$tabs}__item--m-current__link--after--BorderColor);
126
+ --#{$tabs}--link-accent--border-size: var(--#{$tabs}__item--m-current__link--after--BorderWidth);
127
+ --#{$tabs}--link-accent--InsetBlockStart: auto;
128
+ --#{$tabs}--link-accent--InsetBlockEnd: 0;
129
+ --#{$tabs}--link-accent--InsetInlineStart: initial;
130
+ --#{$tabs}--link-accent--Width: initial;
131
+ --#{$tabs}--link-accent--Height: 0;
132
+ --#{$tabs}--link-accent--BorderBlockEndWidth: var(--#{$tabs}--link-accent--border-size);
133
+ --#{$tabs}--link-accent--BorderInlineStartWidth: 0;
134
+ --#{$tabs}--m-vertical--link-accent--InsetBlockStart: initial;
135
+ --#{$tabs}--m-vertical--link-accent--InsetBlockEnd: auto;
136
+ --#{$tabs}--m-vertical--link-accent--InsetInlineStart: 0;
137
+ --#{$tabs}--m-vertical--link-accent--Width: 0;
138
+ --#{$tabs}--m-vertical--link-accent--Height: initial;
139
+ --#{$tabs}--m-vertical--link-accent--BorderBlockEndWidth: 0;
140
+ --#{$tabs}--m-vertical--link-accent--BorderInlineStartWidth: var(--#{$tabs}--link-accent--border-size);
141
+ --#{$tabs}--link-accent--TransitionDuration: var(--pf-t--global--motion--duration--md);
142
+ --#{$tabs}--link-accent--TransitionTimingFunction: var(--pf-t--global--motion--timing-function--decelerate);
143
+
106
144
  // Scroll buttons
107
145
  --#{$tabs}__scroll-button--PaddingBlockStart: var(--pf-t--global--spacer--sm);
108
146
  --#{$tabs}__scroll-button--PaddingBlockEnd: var(--pf-t--global--spacer--sm);
@@ -314,6 +352,13 @@ $pf-v6-c-tabs--spacer-map: build-spacer-map("none", "sm", "md", "lg", "xl", "2xl
314
352
  --#{$tabs}__link--after--InsetBlockEnd: 0;
315
353
  --#{$tabs}__link--after--InsetInlineEnd: auto;
316
354
  --#{$tabs}__list--ScrollSnapTypeAxis: var(--#{$tabs}--m-vertical__list--ScrollSnapTypeAxis);
355
+ --#{$tabs}--link-accent--InsetBlockStart: var(--#{$tabs}--m-vertical--link-accent--InsetBlockStart);
356
+ --#{$tabs}--link-accent--InsetBlockEnd: var(--#{$tabs}--m-vertical--link-accent--InsetBlockEnd);
357
+ --#{$tabs}--link-accent--InsetInlineStart: var(--#{$tabs}--m-vertical--link-accent--InsetInlineStart);
358
+ --#{$tabs}--link-accent--Width: var(--#{$tabs}--m-vertical--link-accent--Width);
359
+ --#{$tabs}--link-accent--Height: var(--#{$tabs}--m-vertical--link-accent--Height);
360
+ --#{$tabs}--link-accent--BorderBlockEndWidth: var(--#{$tabs}--m-vertical--link-accent--BorderBlockEndWidth);
361
+ --#{$tabs}--link-accent--BorderInlineStartWidth: var(--#{$tabs}--m-vertical--link-accent--BorderInlineStartWidth);
317
362
 
318
363
  display: inline-flex;
319
364
  flex-direction: column;
@@ -580,6 +625,7 @@ $pf-v6-c-tabs--spacer-map: build-spacer-map("none", "sm", "md", "lg", "xl", "2xl
580
625
  text-decoration-line: none;
581
626
  background-color: var(--#{$tabs}__link--BackgroundColor);
582
627
  border-radius: var(--#{$tabs}__link--BorderRadius);
628
+ transition: background-color var(--#{$tabs}__link--TransitionDuration--background-color) var(--#{$tabs}__link--TransitionTimingFunction--background-color);
583
629
 
584
630
  @at-root .#{$tabs}__item.pf-m-action,
585
631
  & {
@@ -737,3 +783,34 @@ $pf-v6-c-tabs--spacer-map: build-spacer-map("none", "sm", "md", "lg", "xl", "2xl
737
783
  }
738
784
  }
739
785
  // stylelint-enable
786
+
787
+ @media (prefers-reduced-motion: no-preference) {
788
+ .#{$tabs}:not(.pf-m-box) {
789
+ .#{$tabs}__link,
790
+ .#{$tabs}__item.pf-m-action {
791
+ &::after {
792
+ content: revert;
793
+ }
794
+ }
795
+
796
+ .#{$tabs}__list::after {
797
+ position: absolute;
798
+ inset-block-start: var(--#{$tabs}--link-accent--InsetBlockStart, var(--#{$tabs}--link-accent--start));
799
+ inset-block-end: var(--#{$tabs}--link-accent--InsetBlockEnd);
800
+ inset-inline-start: var(--#{$tabs}--link-accent--InsetInlineStart, var(--#{$tabs}--link-accent--start));
801
+ width: var(--#{$tabs}--link-accent--Width, var(--#{$tabs}--link-accent--length));
802
+ height: var(--#{$tabs}--link-accent--Height, var(--#{$tabs}--link-accent--length));
803
+ content: "";
804
+ border: 0 solid var(--#{$tabs}--link-accent--color);
805
+ border-block-end-width: var(--#{$tabs}--link-accent--BorderBlockEndWidth);
806
+ border-inline-start-width: var(--#{$tabs}--link-accent--BorderInlineStartWidth);
807
+ transition-timing-function: var(--#{$tabs}--link-accent--TransitionTimingFunction);
808
+ transition-duration: var(--#{$tabs}--link-accent--TransitionDuration);
809
+ transition-property: --#{$tabs}--link-accent--length, --#{$tabs}--link-accent--start, width;
810
+ }
811
+ }
812
+
813
+ .#{$tabs}.pf-m-initializing-accent {
814
+ --#{$tabs}--link-accent--TransitionDuration: 0;
815
+ }
816
+ }
@@ -5307,9 +5307,15 @@ ul) {
5307
5307
  --pf-v6-c-drawer__panel--RowGap: var(--pf-t--global--spacer--sm);
5308
5308
  --pf-v6-c-drawer__panel--PaddingBlockStart: var(--pf-t--global--spacer--sm);
5309
5309
  --pf-v6-c-drawer__panel--PaddingBlockEnd: var(--pf-t--global--spacer--sm);
5310
+ --pf-v6-c-drawer__panel--TransitionDelay: 0s, var(--pf-v6-c-drawer__panel--TransitionDelay--focus), var(--pf-v6-c-drawer__panel--TransitionDelay--focus);
5311
+ --pf-v6-c-drawer__panel--TransitionDelay--focus: var(--pf-v6-c-drawer__panel--TransitionDuration--fade);
5312
+ --pf-v6-c-drawer__panel--TransitionDelay--expand--focus: 0s;
5310
5313
  --pf-v6-c-drawer__panel--TransitionTimingFunction: var(--pf-t--global--motion--timing-function--decelerate);
5311
- --pf-v6-c-drawer__panel--TransitionDuration: var(--pf-t--global--motion--duration--slide-in--short);
5312
- --pf-v6-c-drawer__panel--TransitionProperty: margin, transform, box-shadow, flex-basis;
5314
+ --pf-v6-c-drawer__panel--TransitionDuration--fade: var(--pf-t--global--motion--duration--fade--default);
5315
+ --pf-v6-c-drawer__panel--TransitionDuration: var(--pf-v6-c-drawer__panel--TransitionDuration--fade), 0s, 0s;
5316
+ --pf-v6-c-drawer__panel--TransitionProperty: opacity, visibility, transform;
5317
+ --pf-v6-c-drawer__panel--Opacity: 0;
5318
+ --pf-v6-c-drawer--m-expanded__panel--Opacity: 1;
5313
5319
  --pf-v6-c-drawer__panel--FlexBasis: 100%;
5314
5320
  --pf-v6-c-drawer__panel--md--FlexBasis--min: 1.5rem;
5315
5321
  --pf-v6-c-drawer__panel--md--FlexBasis: 50%;
@@ -5399,6 +5405,17 @@ ul) {
5399
5405
  --pf-v6-c-drawer--m-panel-left--m-inline__panel--PaddingInlineEnd: var(--pf-v6-c-drawer__panel--after--Width);
5400
5406
  --pf-v6-c-drawer--m-panel-bottom--m-inline__panel--PaddingBlockStart: var(--pf-v6-c-drawer__panel--after--Width);
5401
5407
  }
5408
+ @media screen and (prefers-reduced-motion: no-preference) {
5409
+ .pf-v6-c-drawer {
5410
+ --pf-v6-c-drawer__panel--TransitionDuration--slide: var(--pf-t--global--motion--duration--slide-in--short);
5411
+ --pf-v6-c-drawer__panel--TransitionDelay--focus: var(--pf-v6-c-drawer__panel--TransitionDuration--slide);
5412
+ --pf-v6-c-drawer__panel--TransitionDelay: 0s, 0s, 0s, 0s, var(--pf-v6-c-drawer__panel--TransitionDelay--focus);
5413
+ --pf-v6-c-drawer__panel--TransitionTimingFunction: var(--pf-t--global--motion--timing-function--decelerate);
5414
+ --pf-v6-c-drawer__panel--TransitionDuration: 0s, var(--pf-v6-c-drawer__panel--TransitionDuration--slide), 0s, 0s, 0s;
5415
+ --pf-v6-c-drawer__panel--TransitionProperty: margin, transform, box-shadow, flex-basis, visibility;
5416
+ --pf-v6-c-drawer__panel--Opacity: 1;
5417
+ }
5418
+ }
5402
5419
  @media screen and (min-width: 75rem) {
5403
5420
  .pf-v6-c-drawer {
5404
5421
  --pf-v6-c-drawer__panel--MinWidth: var(--pf-v6-c-drawer__panel--xl--MinWidth);
@@ -5446,8 +5463,13 @@ ul) {
5446
5463
  .pf-v6-c-drawer.pf-m-panel-bottom > .pf-v6-c-drawer__main {
5447
5464
  flex-direction: column;
5448
5465
  }
5466
+ .pf-v6-c-drawer.pf-m-expanded {
5467
+ --pf-v6-c-drawer__panel--TransitionDelay--focus: var(--pf-v6-c-drawer__panel--TransitionDelay--expand--focus);
5468
+ }
5449
5469
  .pf-v6-c-drawer.pf-m-expanded > .pf-v6-c-drawer__main > .pf-v6-c-drawer__panel {
5450
5470
  transform: translateX(-100%);
5471
+ --pf-v6-c-drawer__panel--Opacity: var(--pf-v6-c-drawer--m-expanded__panel--Opacity);
5472
+ visibility: visible;
5451
5473
  }
5452
5474
  :where(.pf-v6-m-dir-rtl, [dir=rtl]) .pf-v6-c-drawer.pf-m-expanded > .pf-v6-c-drawer__main > .pf-v6-c-drawer__panel {
5453
5475
  transform: translateX(calc(-100% * var(--pf-v6-global--inverse--multiplier)));
@@ -5520,8 +5542,11 @@ ul) {
5520
5542
  order: 1;
5521
5543
  max-height: var(--pf-v6-c-drawer__panel--MaxHeight);
5522
5544
  overflow: auto;
5545
+ visibility: hidden;
5523
5546
  background-color: var(--pf-v6-c-drawer__panel--BackgroundColor);
5524
5547
  box-shadow: var(--pf-v6-c-drawer__panel--BoxShadow);
5548
+ opacity: var(--pf-v6-c-drawer__panel--Opacity);
5549
+ transition-delay: var(--pf-v6-c-drawer__panel--TransitionDelay);
5525
5550
  transition-timing-function: var(--pf-v6-c-drawer__panel--TransitionTimingFunction);
5526
5551
  transition-duration: var(--pf-v6-c-drawer__panel--TransitionDuration);
5527
5552
  transition-property: var(--pf-v6-c-drawer__panel--TransitionProperty);
@@ -5578,17 +5603,6 @@ ul) {
5578
5603
  padding-block-end: var(--pf-v6-c-drawer__panel--PaddingBlockEnd);
5579
5604
  }
5580
5605
 
5581
- @keyframes pf-remove-tab-focus {
5582
- to {
5583
- visibility: hidden;
5584
- }
5585
- }
5586
- .pf-v6-c-drawer__panel[hidden] {
5587
- animation-name: pf-remove-tab-focus;
5588
- animation-delay: var(--pf-v6-c-drawer__panel--TransitionDuration);
5589
- animation-fill-mode: forwards;
5590
- }
5591
-
5592
5606
  .pf-v6-c-drawer__head {
5593
5607
  display: grid;
5594
5608
  grid-template-columns: auto;
@@ -5696,7 +5710,7 @@ ul) {
5696
5710
  .pf-v6-c-drawer {
5697
5711
  min-width: var(--pf-v6-c-drawer__panel--MinWidth);
5698
5712
  }
5699
- .pf-v6-c-drawer.pf-m-expanded > .pf-v6-c-drawer__main > .pf-v6-c-drawer__panel {
5713
+ .pf-v6-c-drawer > .pf-v6-c-drawer__main > .pf-v6-c-drawer__panel {
5700
5714
  box-shadow: var(--pf-v6-c-drawer--m-expanded__panel--BoxShadow);
5701
5715
  }
5702
5716
  .pf-v6-c-drawer > .pf-v6-c-drawer__main > .pf-v6-c-drawer__panel.pf-m-resizable {
@@ -18317,6 +18331,16 @@ thead .pf-v6-c-table__check .pf-v6-c-radio.pf-m-standalone {
18317
18331
  }
18318
18332
  }
18319
18333
 
18334
+ @property --pf-v6-c-tabs--link-accent--length {
18335
+ syntax: "<length>";
18336
+ inherits: true;
18337
+ initial-value: 0px;
18338
+ }
18339
+ @property --pf-v6-c-tabs--link-accent--start {
18340
+ syntax: "<length>";
18341
+ inherits: true;
18342
+ initial-value: 0px;
18343
+ }
18320
18344
  .pf-v6-c-tabs {
18321
18345
  --pf-v6-c-tabs--inset: 0;
18322
18346
  --pf-v6-c-tabs--Width: auto;
@@ -18378,6 +18402,8 @@ thead .pf-v6-c-table__check .pf-v6-c-radio.pf-m-standalone {
18378
18402
  --pf-v6-c-tabs--m-box--m-secondary__link--hover--BackgroundColor: var(--pf-t--global--background--color--action--plain--hover);
18379
18403
  --pf-v6-c-tabs--m-box--m-secondary__item--m-current__link--BackgroundColor: var(--pf-t--global--background--color--action--plain--default);
18380
18404
  --pf-v6-c-tabs--m-subtab__link--FontSize: var(--pf-t--global--font--size--xs);
18405
+ --pf-v6-c-tabs__link--TransitionDuration--background-color: var(--pf-t--global--motion--duration--fade--short);
18406
+ --pf-v6-c-tabs__link--TransitionTimingFunction--background-color: var(--pf-t--global--motion--timing-function--default);
18381
18407
  --pf-v6-c-tabs__link--before--border-color--base: var(--pf-t--global--border--color--default);
18382
18408
  --pf-v6-c-tabs__link--before--border-width--base: var(--pf-t--global--border--width--regular);
18383
18409
  --pf-v6-c-tabs__link--before--BorderBlockStartColor: var(--pf-v6-c-tabs__link--before--border-color--base);
@@ -18402,6 +18428,26 @@ thead .pf-v6-c-table__check .pf-v6-c-radio.pf-m-standalone {
18402
18428
  --pf-v6-c-tabs__link--after--BorderInlineStartWidth: 0;
18403
18429
  --pf-v6-c-tabs__item--m-current__link--after--BorderColor: var(--pf-t--global--border--color--clicked);
18404
18430
  --pf-v6-c-tabs__item--m-current__link--after--BorderWidth: var(--pf-t--global--border--width--extra-strong);
18431
+ --pf-v6-c-tabs--link-accent--start: 0;
18432
+ --pf-v6-c-tabs--link-accent--length: auto;
18433
+ --pf-v6-c-tabs--link-accent--color: var(--pf-v6-c-tabs__item--m-current__link--after--BorderColor);
18434
+ --pf-v6-c-tabs--link-accent--border-size: var(--pf-v6-c-tabs__item--m-current__link--after--BorderWidth);
18435
+ --pf-v6-c-tabs--link-accent--InsetBlockStart: auto;
18436
+ --pf-v6-c-tabs--link-accent--InsetBlockEnd: 0;
18437
+ --pf-v6-c-tabs--link-accent--InsetInlineStart: initial;
18438
+ --pf-v6-c-tabs--link-accent--Width: initial;
18439
+ --pf-v6-c-tabs--link-accent--Height: 0;
18440
+ --pf-v6-c-tabs--link-accent--BorderBlockEndWidth: var(--pf-v6-c-tabs--link-accent--border-size);
18441
+ --pf-v6-c-tabs--link-accent--BorderInlineStartWidth: 0;
18442
+ --pf-v6-c-tabs--m-vertical--link-accent--InsetBlockStart: initial;
18443
+ --pf-v6-c-tabs--m-vertical--link-accent--InsetBlockEnd: auto;
18444
+ --pf-v6-c-tabs--m-vertical--link-accent--InsetInlineStart: 0;
18445
+ --pf-v6-c-tabs--m-vertical--link-accent--Width: 0;
18446
+ --pf-v6-c-tabs--m-vertical--link-accent--Height: initial;
18447
+ --pf-v6-c-tabs--m-vertical--link-accent--BorderBlockEndWidth: 0;
18448
+ --pf-v6-c-tabs--m-vertical--link-accent--BorderInlineStartWidth: var(--pf-v6-c-tabs--link-accent--border-size);
18449
+ --pf-v6-c-tabs--link-accent--TransitionDuration: var(--pf-t--global--motion--duration--md);
18450
+ --pf-v6-c-tabs--link-accent--TransitionTimingFunction: var(--pf-t--global--motion--timing-function--decelerate);
18405
18451
  --pf-v6-c-tabs__scroll-button--PaddingBlockStart: var(--pf-t--global--spacer--sm);
18406
18452
  --pf-v6-c-tabs__scroll-button--PaddingBlockEnd: var(--pf-t--global--spacer--sm);
18407
18453
  --pf-v6-c-tabs__scroll-button--PaddingInlineStart: var(--pf-t--global--spacer--sm);
@@ -18559,6 +18605,13 @@ thead .pf-v6-c-table__check .pf-v6-c-radio.pf-m-standalone {
18559
18605
  --pf-v6-c-tabs__link--after--InsetBlockEnd: 0;
18560
18606
  --pf-v6-c-tabs__link--after--InsetInlineEnd: auto;
18561
18607
  --pf-v6-c-tabs__list--ScrollSnapTypeAxis: var(--pf-v6-c-tabs--m-vertical__list--ScrollSnapTypeAxis);
18608
+ --pf-v6-c-tabs--link-accent--InsetBlockStart: var(--pf-v6-c-tabs--m-vertical--link-accent--InsetBlockStart);
18609
+ --pf-v6-c-tabs--link-accent--InsetBlockEnd: var(--pf-v6-c-tabs--m-vertical--link-accent--InsetBlockEnd);
18610
+ --pf-v6-c-tabs--link-accent--InsetInlineStart: var(--pf-v6-c-tabs--m-vertical--link-accent--InsetInlineStart);
18611
+ --pf-v6-c-tabs--link-accent--Width: var(--pf-v6-c-tabs--m-vertical--link-accent--Width);
18612
+ --pf-v6-c-tabs--link-accent--Height: var(--pf-v6-c-tabs--m-vertical--link-accent--Height);
18613
+ --pf-v6-c-tabs--link-accent--BorderBlockEndWidth: var(--pf-v6-c-tabs--m-vertical--link-accent--BorderBlockEndWidth);
18614
+ --pf-v6-c-tabs--link-accent--BorderInlineStartWidth: var(--pf-v6-c-tabs--m-vertical--link-accent--BorderInlineStartWidth);
18562
18615
  display: inline-flex;
18563
18616
  flex-direction: column;
18564
18617
  height: 100%;
@@ -18821,6 +18874,7 @@ thead .pf-v6-c-table__check .pf-v6-c-radio.pf-m-standalone {
18821
18874
  text-decoration-line: none;
18822
18875
  background-color: var(--pf-v6-c-tabs__link--BackgroundColor);
18823
18876
  border-radius: var(--pf-v6-c-tabs__link--BorderRadius);
18877
+ transition: background-color var(--pf-v6-c-tabs__link--TransitionDuration--background-color) var(--pf-v6-c-tabs__link--TransitionTimingFunction--background-color);
18824
18878
  }
18825
18879
  .pf-v6-c-tabs__item.pf-m-action, .pf-v6-c-tabs__link {
18826
18880
  --pf-v6-c-tabs__link--after--BorderBlockEndWidth: var(--pf-v6-c-tabs__link--after--BorderWidth);
@@ -19133,6 +19187,30 @@ thead .pf-v6-c-table__check .pf-v6-c-radio.pf-m-standalone {
19133
19187
  }
19134
19188
  }
19135
19189
 
19190
+ @media (prefers-reduced-motion: no-preference) {
19191
+ .pf-v6-c-tabs:not(.pf-m-box) .pf-v6-c-tabs__link::after,
19192
+ .pf-v6-c-tabs:not(.pf-m-box) .pf-v6-c-tabs__item.pf-m-action::after {
19193
+ content: revert;
19194
+ }
19195
+ .pf-v6-c-tabs:not(.pf-m-box) .pf-v6-c-tabs__list::after {
19196
+ position: absolute;
19197
+ inset-block-start: var(--pf-v6-c-tabs--link-accent--InsetBlockStart, var(--pf-v6-c-tabs--link-accent--start));
19198
+ inset-block-end: var(--pf-v6-c-tabs--link-accent--InsetBlockEnd);
19199
+ inset-inline-start: var(--pf-v6-c-tabs--link-accent--InsetInlineStart, var(--pf-v6-c-tabs--link-accent--start));
19200
+ width: var(--pf-v6-c-tabs--link-accent--Width, var(--pf-v6-c-tabs--link-accent--length));
19201
+ height: var(--pf-v6-c-tabs--link-accent--Height, var(--pf-v6-c-tabs--link-accent--length));
19202
+ content: "";
19203
+ border: 0 solid var(--pf-v6-c-tabs--link-accent--color);
19204
+ border-block-end-width: var(--pf-v6-c-tabs--link-accent--BorderBlockEndWidth);
19205
+ border-inline-start-width: var(--pf-v6-c-tabs--link-accent--BorderInlineStartWidth);
19206
+ transition-timing-function: var(--pf-v6-c-tabs--link-accent--TransitionTimingFunction);
19207
+ transition-duration: var(--pf-v6-c-tabs--link-accent--TransitionDuration);
19208
+ transition-property: --pf-v6-c-tabs--link-accent--length, --pf-v6-c-tabs--link-accent--start, width;
19209
+ }
19210
+ .pf-v6-c-tabs.pf-m-initializing-accent {
19211
+ --pf-v6-c-tabs--link-accent--TransitionDuration: 0;
19212
+ }
19213
+ }
19136
19214
  .pf-v6-c-text-input-group {
19137
19215
  --pf-v6-c-text-input-group--BackgroundColor: var(--pf-t--global--background--color--control--default);
19138
19216
  --pf-v6-c-text-input-group--BorderColor: var(--pf-t--global--border--color--default);