@patternfly/patternfly 6.3.0-prerelease.1 → 6.3.0-prerelease.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/assets/images/icon-help.hbs +3 -0
- package/components/Alert/alert-group.css +52 -31
- package/components/Alert/alert-group.scss +77 -46
- package/components/CodeEditor/code-editor.css +3 -0
- package/components/CodeEditor/code-editor.scss +3 -1
- package/components/Drawer/drawer.css +28 -14
- package/components/Drawer/drawer.scss +28 -9
- package/components/ExpandableSection/expandable-section.css +30 -0
- package/components/ExpandableSection/expandable-section.scss +30 -0
- package/components/MenuToggle/menu-toggle.css +8 -4
- package/components/MenuToggle/menu-toggle.scss +15 -3
- package/components/Page/page.css +4 -3
- package/components/Page/page.scss +4 -2
- package/components/Skeleton/skeleton.css +22 -2
- package/components/Skeleton/skeleton.scss +25 -3
- package/components/Tabs/tabs.css +65 -0
- package/components/Tabs/tabs.scss +77 -0
- package/components/Truncate/truncate.css +5 -0
- package/components/Truncate/truncate.scss +6 -0
- package/components/_index.css +216 -54
- package/docs/components/Button/examples/Button.md +13 -1
- package/docs/components/CodeEditor/examples/CodeEditor.md +26 -2
- package/docs/components/Divider/examples/Divider.md +1 -1
- package/docs/components/Drawer/examples/Drawer.md +4 -0
- package/docs/components/Form/examples/Form.md +156 -12
- package/docs/components/MenuToggle/examples/MenuToggle.md +3 -4
- package/docs/components/ModalBox/examples/ModalBox.md +13 -1
- package/docs/components/Page/examples/Page.md +1 -0
- package/docs/components/Table/examples/Table.md +30 -6
- package/docs/components/Tabs/examples/Tabs.md +6741 -12
- package/docs/components/Truncate/examples/Truncate.md +53 -10
- package/docs/demos/Card/examples/Card.md +57 -0
- package/docs/demos/DescriptionList/examples/DescriptionList.md +38 -0
- package/docs/demos/Drawer/examples/Drawer.md +38 -0
- package/docs/demos/Form/examples/BasicForms.md +130 -10
- package/docs/demos/Masthead/examples/Masthead.md +1 -1
- package/docs/demos/Modal/examples/Modal.md +39 -3
- package/docs/demos/Nav/examples/Nav.md +2 -2
- package/docs/demos/Page/examples/Page.md +355 -0
- package/docs/demos/PasswordGenerator/examples/PasswordGenerator.md +13 -1
- package/docs/demos/PrimaryDetail/examples/PrimaryDetail.md +76 -0
- package/docs/demos/Table/examples/Table.md +67 -23
- package/docs/demos/Tabs/examples/Tabs.md +570 -0
- package/package.json +6 -6
- package/patternfly-no-globals.css +216 -54
- package/patternfly.css +216 -54
- package/patternfly.min.css +1 -1
- package/patternfly.min.css.map +1 -1
|
@@ -13,6 +13,23 @@
|
|
|
13
13
|
--#{$expandable-section}__toggle-icon--m-expand-top--Rotate: 0;
|
|
14
14
|
--#{$expandable-section}--m-expanded__toggle-icon--Rotate: 90deg;
|
|
15
15
|
--#{$expandable-section}--m-expanded__toggle-icon--m-expand-top--Rotate: -90deg;
|
|
16
|
+
--#{$expandable-section}__content--TransitionDuration--collapse--slide: 0s;
|
|
17
|
+
--#{$expandable-section}__content--TransitionDuration--collapse--fade: var(--pf-t--global--motion--duration--fade--short);
|
|
18
|
+
--#{$expandable-section}__content--TransitionDuration--expand--slide: 0s;
|
|
19
|
+
--#{$expandable-section}__content--TransitionDuration--expand--fade: var(--pf-t--global--motion--duration--fade--default);
|
|
20
|
+
--#{$expandable-section}__content--TransitionDuration--slide: var(--#{$expandable-section}__content--TransitionDuration--collapse--slide);
|
|
21
|
+
--#{$expandable-section}__content--TransitionDuration--fade: var(--#{$expandable-section}__content--TransitionDuration--collapse--fade);
|
|
22
|
+
--#{$expandable-section}__content--TransitionTimingFunction: var(--pf-t--global--motion--timing-function--default);
|
|
23
|
+
--#{$expandable-section}__content--Opacity: 0;
|
|
24
|
+
--#{$expandable-section}--m-expanded__content--Opacity: 1;
|
|
25
|
+
--#{$expandable-section}__content--TranslateY: 0;
|
|
26
|
+
--#{$expandable-section}--m-expanded__content--TranslateY: 0;
|
|
27
|
+
|
|
28
|
+
@media screen and (prefers-reduced-motion: no-preference) {
|
|
29
|
+
--#{$expandable-section}__content--TransitionDuration--collapse--slide: var(--pf-t--global--motion--duration--fade--short);
|
|
30
|
+
--#{$expandable-section}__content--TransitionDuration--expand--slide: var(--pf-t--global--motion--duration--fade--default);
|
|
31
|
+
--#{$expandable-section}__content--TranslateY: -.5rem;
|
|
32
|
+
}
|
|
16
33
|
|
|
17
34
|
// Content
|
|
18
35
|
--#{$expandable-section}__content--MaxWidth: auto;
|
|
@@ -30,6 +47,8 @@
|
|
|
30
47
|
--#{$expandable-section}--m-display-lg--BorderWidth: var(--pf-t--global--border--width--box--default);
|
|
31
48
|
--#{$expandable-section}--m-display-lg--BorderColor: var(--pf-t--global--border--color--default);
|
|
32
49
|
--#{$expandable-section}--m-display-lg--BorderRadius: var(--pf-t--global--border--radius--medium);
|
|
50
|
+
--#{$expandable-section}--m-display-lg--TransitionDelay: var(--#{$expandable-section}__content--TransitionDuration--fade);
|
|
51
|
+
|
|
33
52
|
|
|
34
53
|
// Indented
|
|
35
54
|
--#{$expandable-section}--m-indented__content--PaddingInlineStart: calc(var(--pf-t--global--spacer--action--horizontal--plain--default) + var(--pf-t--global--spacer--gap--text-to-element--default) + var(--#{$expandable-section}__toggle-icon--MinWidth));
|
|
@@ -48,6 +67,11 @@
|
|
|
48
67
|
--#{$expandable-section}__toggle-icon--Rotate: var(--#{$expandable-section}--m-expanded__toggle-icon--Rotate);
|
|
49
68
|
--#{$expandable-section}__toggle-icon--m-expand-top--Rotate: var(--#{$expandable-section}--m-expanded__toggle-icon--m-expand-top--Rotate);
|
|
50
69
|
--#{$expandable-section}--m-display-lg--PaddingBlockEnd: var(--#{$expandable-section}--m-display-lg--m-expanded--PaddingBlockEnd);
|
|
70
|
+
--#{$expandable-section}__content--TransitionDuration--slide: var(--#{$expandable-section}__content--TransitionDuration--expand--slide);
|
|
71
|
+
--#{$expandable-section}__content--TransitionDuration--fade: var(--#{$expandable-section}__content--TransitionDuration--expand--fade);
|
|
72
|
+
--#{$expandable-section}__content--Opacity: var(--#{$expandable-section}--m-expanded__content--Opacity);
|
|
73
|
+
--#{$expandable-section}__content--TranslateY: var(--#{$expandable-section}--m-expanded__content--TranslateY);
|
|
74
|
+
--#{$expandable-section}--m-display-lg--TransitionDelay: 0s;
|
|
51
75
|
}
|
|
52
76
|
|
|
53
77
|
&.pf-m-limit-width {
|
|
@@ -62,6 +86,7 @@
|
|
|
62
86
|
background-color: var(--#{$expandable-section}--m-display-lg--BackgroundColor);
|
|
63
87
|
border: var(--#{$expandable-section}--m-display-lg--BorderWidth) solid var(--#{$expandable-section}--m-display-lg--BorderColor);
|
|
64
88
|
border-radius: var(--#{$expandable-section}--m-display-lg--BorderRadius);
|
|
89
|
+
transition: padding-block-end 0s var(--#{$expandable-section}--m-display-lg--TransitionDelay, 0s);
|
|
65
90
|
}
|
|
66
91
|
|
|
67
92
|
&.pf-m-indented {
|
|
@@ -99,4 +124,9 @@
|
|
|
99
124
|
max-width: var(--#{$expandable-section}__content--MaxWidth);
|
|
100
125
|
padding-block-end: var(--#{$expandable-section}__content--PaddingBlockEnd, 0);
|
|
101
126
|
padding-inline-start: var(--#{$expandable-section}__content--PaddingInlineStart, 0);
|
|
127
|
+
opacity: var(--#{$expandable-section}__content--Opacity);
|
|
128
|
+
transition-timing-function: var(--#{$expandable-section}__content--TransitionTimingFunction);
|
|
129
|
+
transition-duration: var(--#{$expandable-section}__content--TransitionDuration--fade), var(--#{$expandable-section}__content--TransitionDuration--slide);
|
|
130
|
+
transition-property: opacity, translate;
|
|
131
|
+
translate: 0 var(--#{$expandable-section}__content--TranslateY);
|
|
102
132
|
}
|
|
@@ -450,16 +450,20 @@
|
|
|
450
450
|
flex-wrap: nowrap;
|
|
451
451
|
}
|
|
452
452
|
|
|
453
|
-
.pf-v6-c-menu-toggle__icon {
|
|
454
|
-
flex-shrink: 0;
|
|
455
|
-
}
|
|
456
453
|
.pf-v6-c-menu-toggle__icon.pf-m-avatar .pf-v6-c-avatar,
|
|
457
454
|
.pf-v6-c-menu-toggle__icon.pf-m-avatar img,
|
|
458
|
-
.pf-v6-c-menu-toggle__icon.pf-m-avatar svg {
|
|
455
|
+
.pf-v6-c-menu-toggle__icon.pf-m-avatar svg, .pf-v6-c-menu-toggle:not(.pf-m-plain) .pf-v6-c-menu-toggle__icon {
|
|
459
456
|
margin-block-start: calc(var(--pf-v6-c-menu-toggle--PaddingBlockStart) * -1);
|
|
460
457
|
margin-block-end: calc(var(--pf-v6-c-menu-toggle--PaddingBlockEnd) * -1);
|
|
461
458
|
}
|
|
462
459
|
|
|
460
|
+
.pf-v6-c-menu-toggle__icon {
|
|
461
|
+
flex-shrink: 0;
|
|
462
|
+
}
|
|
463
|
+
.pf-v6-c-menu-toggle__icon :where(picture, img) {
|
|
464
|
+
vertical-align: middle;
|
|
465
|
+
}
|
|
466
|
+
|
|
463
467
|
.pf-v6-c-menu-toggle__controls {
|
|
464
468
|
display: flex;
|
|
465
469
|
gap: var(--pf-v6-c-menu-toggle__controls--Gap);
|
|
@@ -567,17 +567,29 @@
|
|
|
567
567
|
flex-wrap: nowrap;
|
|
568
568
|
}
|
|
569
569
|
|
|
570
|
+
%pf-v6-menu-toggle__icon--MarginBlock {
|
|
571
|
+
margin-block-start: calc(var(--#{$menu-toggle}--PaddingBlockStart) * -1);
|
|
572
|
+
margin-block-end: calc(var(--#{$menu-toggle}--PaddingBlockEnd) * -1);
|
|
573
|
+
}
|
|
574
|
+
|
|
570
575
|
.#{$menu-toggle}__icon {
|
|
571
576
|
flex-shrink: 0;
|
|
572
|
-
|
|
577
|
+
|
|
578
|
+
@at-root .#{$menu-toggle}:not(.pf-m-plain) & {
|
|
579
|
+
@extend %pf-v6-menu-toggle__icon--MarginBlock;
|
|
580
|
+
}
|
|
581
|
+
|
|
573
582
|
&.pf-m-avatar {
|
|
574
583
|
.#{$avatar},
|
|
575
584
|
img,
|
|
576
585
|
svg {
|
|
577
|
-
|
|
578
|
-
margin-block-end: calc(var(--#{$menu-toggle}--PaddingBlockEnd) * -1);
|
|
586
|
+
@extend %pf-v6-menu-toggle__icon--MarginBlock;
|
|
579
587
|
}
|
|
580
588
|
}
|
|
589
|
+
|
|
590
|
+
:where(picture, img) {
|
|
591
|
+
vertical-align: middle;
|
|
592
|
+
}
|
|
581
593
|
}
|
|
582
594
|
|
|
583
595
|
// - Menu toggle controls
|
package/components/Page/page.css
CHANGED
|
@@ -3,8 +3,9 @@
|
|
|
3
3
|
--pf-v6-c-page--inset: var(--pf-t--global--spacer--inset--page-chrome);
|
|
4
4
|
--pf-v6-c-page--c-masthead--ZIndex: var(--pf-t--global--z-index--md);
|
|
5
5
|
--pf-v6-c-page__sidebar--ZIndex: var(--pf-t--global--z-index--sm);
|
|
6
|
-
--pf-v6-c-page__sidebar--Width: 18.125rem;
|
|
7
|
-
--pf-v6-c-page__sidebar--
|
|
6
|
+
--pf-v6-c-page__sidebar--Width--base: 18.125rem;
|
|
7
|
+
--pf-v6-c-page__sidebar--Width: var(--pf-v6-c-page__sidebar--Width--base);
|
|
8
|
+
--pf-v6-c-page__sidebar--xl--Width: var(--pf-v6-c-page__sidebar--Width--base);
|
|
8
9
|
--pf-v6-c-page__sidebar--BackgroundColor: var(--pf-t--global--background--color--secondary--default);
|
|
9
10
|
--pf-v6-c-page__sidebar--BoxShadow: none;
|
|
10
11
|
--pf-v6-c-page__sidebar--TransitionDuration: var(--pf-t--global--motion--duration--slide-in--default);
|
|
@@ -432,7 +433,7 @@
|
|
|
432
433
|
-webkit-overflow-scrolling: touch;
|
|
433
434
|
}
|
|
434
435
|
@media screen and (min-width: 75rem) {
|
|
435
|
-
.pf-v6-c-masthead + .pf-v6-c-page__main-container, .pf-v6-c-page__sidebar.pf-m-collapsed + .pf-v6-c-page__main-container,
|
|
436
|
+
.pf-v6-c-page.pf-m-no-sidebar, .pf-v6-c-masthead + .pf-v6-c-page__main-container, .pf-v6-c-page__sidebar.pf-m-collapsed + .pf-v6-c-page__main-container,
|
|
436
437
|
.pf-v6-c-masthead + .pf-v6-c-page__drawer,
|
|
437
438
|
.pf-v6-c-page__sidebar.pf-m-collapsed + .pf-v6-c-page__drawer {
|
|
438
439
|
--pf-v6-c-page__main-container--GridArea: var(--pf-v6-c-page--masthead--main-container--GridArea);
|
|
@@ -14,8 +14,9 @@ $pf-page-v6--height-breakpoint-map: build-breakpoint-map("base", "sm", "md", "lg
|
|
|
14
14
|
|
|
15
15
|
// Sidebar
|
|
16
16
|
--#{$page}__sidebar--ZIndex: var(--pf-t--global--z-index--sm);
|
|
17
|
-
--#{$page}__sidebar--Width: #{pf-size-prem(290px)};
|
|
18
|
-
--#{$page}__sidebar--
|
|
17
|
+
--#{$page}__sidebar--Width--base: #{pf-size-prem(290px)};
|
|
18
|
+
--#{$page}__sidebar--Width: var(--#{$page}__sidebar--Width--base);
|
|
19
|
+
--#{$page}__sidebar--xl--Width: var(--#{$page}__sidebar--Width--base);
|
|
19
20
|
--#{$page}__sidebar--BackgroundColor: var(--pf-t--global--background--color--secondary--default);
|
|
20
21
|
--#{$page}__sidebar--BoxShadow: none;
|
|
21
22
|
|
|
@@ -352,6 +353,7 @@ $pf-page-v6--height-breakpoint-map: build-breakpoint-map("base", "sm", "md", "lg
|
|
|
352
353
|
-webkit-overflow-scrolling: touch;
|
|
353
354
|
|
|
354
355
|
@media screen and (min-width: $pf-v6-global--breakpoint--xl) {
|
|
356
|
+
@at-root .#{$page}.pf-m-no-sidebar,
|
|
355
357
|
.#{$masthead} + &,
|
|
356
358
|
.#{$page}__sidebar.pf-m-collapsed + & {
|
|
357
359
|
--#{$page}__main-container--GridArea: var(--#{$page}--masthead--main-container--GridArea);
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
--pf-v6-c-skeleton--after--LinearGradientColorStop1: var(--pf-t--global--background--color--secondary--default);
|
|
12
12
|
--pf-v6-c-skeleton--after--LinearGradientColorStop2: var(--pf-t--global--background--color--secondary--hover);
|
|
13
13
|
--pf-v6-c-skeleton--after--LinearGradientColorStop3: var(--pf-t--global--background--color--secondary--default);
|
|
14
|
-
--pf-v6-c-skeleton--after--TranslateX:
|
|
15
|
-
--pf-v6-c-skeleton--after--AnimationName: pf-v6-c-skeleton-loading;
|
|
14
|
+
--pf-v6-c-skeleton--after--TranslateX: 0;
|
|
15
|
+
--pf-v6-c-skeleton--after--AnimationName: pf-v6-c-skeleton-loading-reduced-motion;
|
|
16
16
|
--pf-v6-c-skeleton--after--AnimationDuration: 3s;
|
|
17
17
|
--pf-v6-c-skeleton--after--AnimationIterationCount: infinite;
|
|
18
18
|
--pf-v6-c-skeleton--after--AnimationTimingFunction: linear;
|
|
@@ -44,6 +44,15 @@
|
|
|
44
44
|
--pf-v6-c-skeleton--m-height-75--Height: 75%;
|
|
45
45
|
--pf-v6-c-skeleton--m-height-100--Height: 100%;
|
|
46
46
|
}
|
|
47
|
+
@media screen and (prefers-reduced-motion: no-preference) {
|
|
48
|
+
.pf-v6-c-skeleton {
|
|
49
|
+
--pf-v6-c-skeleton--after--LinearGradientColorStop1: var(--pf-t--global--background--color--secondary--default);
|
|
50
|
+
--pf-v6-c-skeleton--after--LinearGradientColorStop2: var(--pf-t--global--background--color--secondary--hover);
|
|
51
|
+
--pf-v6-c-skeleton--after--LinearGradientColorStop3: var(--pf-t--global--background--color--secondary--default);
|
|
52
|
+
--pf-v6-c-skeleton--after--TranslateX: -100%;
|
|
53
|
+
--pf-v6-c-skeleton--after--AnimationName: pf-v6-c-skeleton-loading;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
47
56
|
|
|
48
57
|
.pf-v6-c-skeleton {
|
|
49
58
|
position: relative;
|
|
@@ -163,4 +172,15 @@
|
|
|
163
172
|
100% {
|
|
164
173
|
transform: translateX(100%);
|
|
165
174
|
}
|
|
175
|
+
}
|
|
176
|
+
@keyframes pf-v6-c-skeleton-loading-reduced-motion {
|
|
177
|
+
0% {
|
|
178
|
+
opacity: 0.25;
|
|
179
|
+
}
|
|
180
|
+
60% {
|
|
181
|
+
opacity: 1;
|
|
182
|
+
}
|
|
183
|
+
100% {
|
|
184
|
+
opacity: 0.25;
|
|
185
|
+
}
|
|
166
186
|
}
|
|
@@ -14,15 +14,23 @@
|
|
|
14
14
|
// After
|
|
15
15
|
--#{$skeleton}--after--LinearGradientAngle: 90deg;
|
|
16
16
|
--#{$skeleton}--after--LinearGradientColorStop1: var(--pf-t--global--background--color--secondary--default);
|
|
17
|
-
--#{$skeleton}--after--LinearGradientColorStop2: var(--pf-t--global--background--color--secondary--hover);
|
|
17
|
+
--#{$skeleton}--after--LinearGradientColorStop2: var(--pf-t--global--background--color--secondary--hover);
|
|
18
18
|
--#{$skeleton}--after--LinearGradientColorStop3: var(--pf-t--global--background--color--secondary--default);
|
|
19
|
-
--#{$skeleton}--after--TranslateX:
|
|
20
|
-
--#{$skeleton}--after--AnimationName: #{$skeleton}-loading;
|
|
19
|
+
--#{$skeleton}--after--TranslateX: 0;
|
|
20
|
+
--#{$skeleton}--after--AnimationName: #{$skeleton}-loading-reduced-motion;
|
|
21
21
|
--#{$skeleton}--after--AnimationDuration: 3s;
|
|
22
22
|
--#{$skeleton}--after--AnimationIterationCount: infinite;
|
|
23
23
|
--#{$skeleton}--after--AnimationTimingFunction: linear;
|
|
24
24
|
--#{$skeleton}--after--AnimationDelay: .5s;
|
|
25
25
|
|
|
26
|
+
@media screen and (prefers-reduced-motion: no-preference) {
|
|
27
|
+
--#{$skeleton}--after--LinearGradientColorStop1: var(--pf-t--global--background--color--secondary--default);
|
|
28
|
+
--#{$skeleton}--after--LinearGradientColorStop2: var(--pf-t--global--background--color--secondary--hover);
|
|
29
|
+
--#{$skeleton}--after--LinearGradientColorStop3: var(--pf-t--global--background--color--secondary--default);
|
|
30
|
+
--#{$skeleton}--after--TranslateX: -100%;
|
|
31
|
+
--#{$skeleton}--after--AnimationName: #{$skeleton}-loading;
|
|
32
|
+
}
|
|
33
|
+
|
|
26
34
|
// Circle
|
|
27
35
|
--#{$skeleton}--m-circle--BorderRadius: var(--pf-t--global--border--radius--pill);
|
|
28
36
|
--#{$skeleton}--m-circle--before--PaddingBlockEnd: 100%;
|
|
@@ -209,3 +217,17 @@
|
|
|
209
217
|
transform: translateX(100%);
|
|
210
218
|
}
|
|
211
219
|
}
|
|
220
|
+
|
|
221
|
+
@keyframes #{$skeleton}-loading-reduced-motion {
|
|
222
|
+
0% {
|
|
223
|
+
opacity: 0.25;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
60% {
|
|
227
|
+
opacity: 1;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
100% {
|
|
231
|
+
opacity: 0.25;
|
|
232
|
+
}
|
|
233
|
+
}
|
package/components/Tabs/tabs.css
CHANGED
|
@@ -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
|
+
}
|