@patternfly/patternfly 6.3.0-prerelease.6 → 6.3.0-prerelease.60
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +22 -14
- package/assets/images/icon-help.hbs +3 -0
- package/assets/images/icon-outlined-star.hbs +3 -0
- package/assets/images/icon-star.hbs +3 -0
- package/base/normalize.scss +4 -0
- package/base/patternfly-common.css +46 -11
- package/base/patternfly-common.scss +58 -13
- package/base/patternfly-variables.css +1172 -1
- package/base/patternfly-variables.scss +10 -0
- package/base/tokens/tokens-charts-dark.scss +1 -1
- package/base/tokens/tokens-charts.scss +1 -1
- package/base/tokens/tokens-dark.scss +13 -1
- package/base/tokens/tokens-default.scss +60 -2
- package/base/tokens/tokens-highcontrast-dark.scss +396 -0
- package/base/tokens/tokens-highcontrast.scss +703 -0
- package/base/tokens/tokens-local.scss +1 -0
- package/base/tokens/tokens-palette.scss +9 -1
- package/components/Accordion/accordion.css +102 -6
- package/components/Accordion/accordion.scss +112 -10
- package/components/Alert/alert-group.css +67 -33
- package/components/Alert/alert-group.scss +95 -48
- package/components/Badge/badge.css +2 -0
- package/components/Badge/badge.scss +2 -0
- package/components/Banner/banner.css +4 -0
- package/components/Banner/banner.scss +4 -0
- package/components/Button/button.css +187 -9
- package/components/Button/button.scss +195 -13
- package/components/CalendarMonth/calendar-month.css +16 -0
- package/components/CalendarMonth/calendar-month.scss +16 -0
- package/components/Card/card.css +5 -4
- package/components/Card/card.scss +5 -4
- package/components/CodeBlock/code-block.css +3 -0
- package/components/CodeBlock/code-block.scss +3 -0
- package/components/CodeEditor/code-editor.css +8 -3
- package/components/CodeEditor/code-editor.scss +11 -6
- package/components/DataList/data-list.css +2 -2
- package/components/DataList/data-list.scss +2 -2
- package/components/DatePicker/date-picker.css +3 -0
- package/components/DatePicker/date-picker.scss +4 -0
- package/components/Drawer/drawer.css +44 -41
- package/components/Drawer/drawer.scss +42 -36
- package/components/DualListSelector/dual-list-selector.css +55 -1
- package/components/DualListSelector/dual-list-selector.scss +63 -1
- package/components/ExpandableSection/expandable-section.css +63 -1
- package/components/ExpandableSection/expandable-section.scss +76 -2
- package/components/FileUpload/file-upload.css +3 -3
- package/components/FileUpload/file-upload.scss +3 -3
- package/components/Form/form.css +40 -1
- package/components/Form/form.scss +47 -1
- package/components/FormControl/form-control.css +16 -0
- package/components/FormControl/form-control.scss +9 -0
- package/components/InputGroup/input-group.css +80 -0
- package/components/InputGroup/input-group.scss +95 -0
- package/components/Label/label.css +20 -11
- package/components/Label/label.scss +21 -11
- package/components/Login/login.css +3 -0
- package/components/Login/login.scss +3 -0
- package/components/Menu/menu.css +35 -4
- package/components/Menu/menu.scss +32 -6
- package/components/MenuToggle/menu-toggle.css +51 -10
- package/components/MenuToggle/menu-toggle.scss +61 -9
- package/components/ModalBox/modal-box.css +3 -0
- package/components/ModalBox/modal-box.scss +3 -0
- package/components/Nav/nav.css +39 -8
- package/components/Nav/nav.scss +42 -9
- package/components/Page/page.css +124 -26
- package/components/Page/page.scss +86 -16
- package/components/Pagination/pagination.css +14 -1
- package/components/Pagination/pagination.scss +14 -1
- package/components/Panel/panel.css +7 -1
- package/components/Panel/panel.scss +7 -1
- package/components/Popover/popover.css +4 -0
- package/components/Popover/popover.scss +4 -0
- package/components/Progress/progress.css +26 -0
- package/components/Progress/progress.scss +22 -1
- package/components/ProgressStepper/progress-stepper.scss +1 -0
- package/components/SimpleList/simple-list.css +15 -0
- package/components/SimpleList/simple-list.scss +17 -1
- package/components/Skeleton/skeleton.css +22 -2
- package/components/Skeleton/skeleton.scss +25 -3
- package/components/Spinner/spinner.css +5 -0
- package/components/Spinner/spinner.scss +6 -0
- package/components/Table/table-grid.css +51 -5
- package/components/Table/table-grid.scss +22 -1
- package/components/Table/table.css +124 -2
- package/components/Table/table.scss +171 -3
- package/components/Tabs/tabs.css +32 -15
- package/components/Tabs/tabs.scss +34 -14
- package/components/TextInputGroup/text-input-group.css +23 -0
- package/components/TextInputGroup/text-input-group.scss +16 -1
- package/components/Timestamp/timestamp.css +4 -0
- package/components/Timestamp/timestamp.scss +7 -0
- package/components/TreeView/tree-view.css +54 -0
- package/components/TreeView/tree-view.scss +59 -2
- package/components/Truncate/truncate.css +1 -0
- package/components/Truncate/truncate.scss +3 -0
- package/components/Wizard/wizard.css +33 -6
- package/components/Wizard/wizard.scss +38 -8
- package/components/_index.css +1390 -195
- package/docs/components/Alert/examples/Alert.md +2 -2
- package/docs/components/Breadcrumb/examples/Breadcrumb.md +1 -1
- package/docs/components/Button/examples/Button.md +159 -6
- package/docs/components/Card/examples/Card.md +8 -8
- package/docs/components/ClipboardCopy/examples/ClipboardCopy.md +24 -32
- package/docs/components/CodeBlock/examples/CodeBlock.md +10 -10
- package/docs/components/CodeEditor/examples/CodeEditor.md +29 -5
- package/docs/components/DataList/examples/DataList.md +83 -207
- package/docs/components/DescriptionList/examples/DescriptionList.md +78 -22
- package/docs/components/DualListSelector/examples/DualListSelector.md +642 -319
- package/docs/components/EmptyState/examples/EmptyState.md +6 -6
- package/docs/components/ExpandableSection/examples/ExpandableSection.md +26 -15
- package/docs/components/Form/examples/Form.md +1178 -113
- package/docs/components/Hint/examples/Hint.md +3 -3
- package/docs/components/InlineEdit/examples/InlineEdit.md +2 -6
- package/docs/components/InputGroup/examples/InputGroup.md +5 -1
- package/docs/components/Label/examples/Label.md +2 -2
- package/docs/components/Login/examples/Login.md +22 -22
- package/docs/components/Masthead/examples/masthead.md +90 -12
- package/docs/components/Menu/examples/Menu.md +122 -6
- package/docs/components/MenuToggle/examples/MenuToggle.md +93 -55
- package/docs/components/ModalBox/examples/ModalBox.md +13 -1
- package/docs/components/OverflowMenu/examples/overflow-menu.md +5 -5
- package/docs/components/Page/examples/Page.md +147 -14
- package/docs/components/Pagination/examples/Pagination.md +123 -12
- package/docs/components/Popover/examples/Popover.md +0 -4
- package/docs/components/Progress/examples/Progress.md +222 -210
- package/docs/components/ProgressStepper/examples/ProgressStepper.md +32 -6
- package/docs/components/Skeleton/examples/Skeleton.md +21 -7
- package/docs/components/Slider/examples/Slider.md +2 -2
- package/docs/components/Spinner/examples/Spinner.md +10 -0
- package/docs/components/Table/examples/Table.md +7699 -4896
- package/docs/components/Tabs/examples/Tabs.md +1214 -6729
- package/docs/components/TextInputGroup/examples/TextInputGroup.md +168 -49
- package/docs/components/Title/examples/Title.md +8 -8
- package/docs/components/Toolbar/examples/Toolbar.md +7 -7
- package/docs/components/Wizard/examples/Wizard.md +583 -0
- package/docs/demos/AboutModal/examples/AboutModal.md +22 -3
- package/docs/demos/Alert/examples/Alert.md +66 -9
- package/docs/demos/BackToTop/examples/BackToTop.md +22 -3
- package/docs/demos/Banner/examples/Banner.md +47 -6
- package/docs/demos/Card/examples/Card.md +13 -67
- package/docs/demos/CardView/examples/CardView.md +24 -5
- package/docs/demos/Dashboard/examples/Dashboard.md +34 -27
- package/docs/demos/DataList/examples/DataList.md +628 -192
- package/docs/demos/DescriptionList/examples/DescriptionList.md +79 -50
- package/docs/demos/Drawer/examples/Drawer.md +110 -53
- package/docs/demos/Form/examples/BasicForms.md +146 -26
- package/docs/demos/JumpLinks/examples/JumpLinks.md +132 -18
- package/docs/demos/Masthead/examples/Masthead.md +170 -18
- package/docs/demos/Modal/examples/Modal.md +171 -21
- package/docs/demos/Nav/examples/Nav.md +111 -16
- package/docs/demos/NotificationDrawer/examples/NotificationDrawer.md +114 -19
- package/docs/demos/Page/examples/Page.md +309 -43
- package/docs/demos/PasswordGenerator/examples/PasswordGenerator.md +13 -1
- package/docs/demos/PrimaryDetail/examples/PrimaryDetail.md +886 -415
- package/docs/demos/Skeleton/examples/Skeleton.md +25 -4
- package/docs/demos/Table/examples/Table.md +480 -177
- package/docs/demos/Tabs/examples/Tabs.md +139 -594
- package/docs/demos/Toolbar/examples/Toolbar.md +72 -34
- package/docs/demos/Wizard/examples/Wizard.md +198 -27
- package/package.json +12 -7
- package/patternfly-base-no-globals.css +1217 -12
- package/patternfly-base.css +1221 -12
- package/patternfly-no-globals.css +2837 -437
- package/patternfly.css +2839 -435
- package/patternfly.min.css +1 -1
- package/patternfly.min.css.map +1 -1
- package/sass-utilities/mixins.scss +54 -0
|
@@ -21,7 +21,8 @@
|
|
|
21
21
|
--#{$table}__thead--cell--FontWeight: var(--pf-t--global--font--weight--body--bold);
|
|
22
22
|
|
|
23
23
|
// * Table thead toggle
|
|
24
|
-
--#{$table}__thead__toggle--
|
|
24
|
+
--#{$table}__thead__toggle--PaddingBlockStart: var(--#{$table}--cell--Padding--base); // TODO - remove thead toggle custom padding in breaking change
|
|
25
|
+
--#{$table}__thead__toggle--PaddingBlockEnd: var(--#{$table}--cell--Padding--base); // TODO - remove thead toggle custom padding in breaking change
|
|
25
26
|
|
|
26
27
|
// * Table body cell
|
|
27
28
|
--#{$table}__tbody--cell--PaddingBlockStart: var(--#{$table}--cell--Padding--base);
|
|
@@ -95,6 +96,9 @@
|
|
|
95
96
|
--#{$table}__button--Color: var(--pf-t--global--text--color--regular);
|
|
96
97
|
--#{$table}__button--BackgroundColor: var(--pf-t--global--background--color--action--plain--default);
|
|
97
98
|
--#{$table}__button--OutlineOffset: calc(var(--pf-t--global--border--width--strong) * -1);
|
|
99
|
+
--#{$table}__button--BorderColor: var(--pf-t--global--border--color--high-contrast);
|
|
100
|
+
--#{$table}__button--BorderWidth: var(--pf-t--global--border--width--action--plain--default);
|
|
101
|
+
--#{$table}__button--hover--BorderWidth: var(--pf-t--global--border--width--action--plain--hover);
|
|
98
102
|
--#{$table}__button--BorderRadius: var(--pf-t--global--border--radius--small);
|
|
99
103
|
--#{$table}__button--hover--Color: var(--pf-t--global--text--color--regular);
|
|
100
104
|
--#{$table}__button--hover--BackgroundColor: var(--pf-t--global--background--color--action--plain--hover);
|
|
@@ -118,6 +122,23 @@
|
|
|
118
122
|
--#{$table}__action--PaddingInlineStart: var(--pf-t--global--spacer--sm);
|
|
119
123
|
--#{$table}__action--PaddingInlineEnd: var(--pf-t--global--spacer--sm);
|
|
120
124
|
|
|
125
|
+
// * Table expandable row
|
|
126
|
+
--#{$table}__expandable-row--TransitionDuration--expand--slide: 0s;
|
|
127
|
+
--#{$table}__expandable-row--TransitionDuration--expand--fade: var(--pf-t--global--motion--duration--fade--default);
|
|
128
|
+
--#{$table}__expandable-row--TransitionDuration--collapse--slide: 0s;
|
|
129
|
+
--#{$table}__expandable-row--TransitionDuration--collapse--fade: var(--pf-t--global--motion--duration--fade--short);
|
|
130
|
+
--#{$table}__expandable-row--TransitionTimingFunction: var(--pf-t--global--motion--timing-function--default);
|
|
131
|
+
--#{$table}__expandable-row--Opacity: 0;
|
|
132
|
+
--#{$table}__tbody--m-expanded__expandable-row--Opacity: 1;
|
|
133
|
+
--#{$table}__expandable-row--TranslateY: 0;
|
|
134
|
+
--#{$table}__tbody--m-expanded__expandable-row--TranslateY: 0;
|
|
135
|
+
|
|
136
|
+
@media screen and (prefers-reduced-motion: no-preference) {
|
|
137
|
+
--#{$table}__expandable-row--TransitionDuration--expand--slide: var(--pf-t--global--motion--duration--fade--default);
|
|
138
|
+
--#{$table}__expandable-row--TransitionDuration--collapse--slide: var(--pf-t--global--motion--duration--fade--short);
|
|
139
|
+
--#{$table}__expandable-row--TranslateY: -.5rem;
|
|
140
|
+
}
|
|
141
|
+
|
|
121
142
|
// * Table expandable row content
|
|
122
143
|
--#{$table}__expandable-row-content--PaddingBlockStart: var(--pf-t--global--spacer--md);
|
|
123
144
|
--#{$table}__expandable-row-content--PaddingBlockEnd: var(--pf-t--global--spacer--md);
|
|
@@ -125,6 +146,8 @@
|
|
|
125
146
|
--#{$table}__expandable-row-content--PaddingInlineEnd: var(--pf-t--global--spacer--md);
|
|
126
147
|
--#{$table}__expandable-row-content--BorderRadius: var(--pf-t--global--border--radius--small);
|
|
127
148
|
--#{$table}__expandable-row-content--BackgroundColor: var(--pf-t--global--background--color--primary--default);
|
|
149
|
+
--#{$table}__expandable-row-content--BorderColor: var(--pf-t--global--border--color--high-contrast);
|
|
150
|
+
--#{$table}__expandable-row-content--BorderWidth: 0;
|
|
128
151
|
|
|
129
152
|
// * Table control row
|
|
130
153
|
--#{$table}__control-row--BackgroundColor: var(--pf-t--global--background--color--primary--default);
|
|
@@ -164,12 +187,14 @@
|
|
|
164
187
|
|
|
165
188
|
// * Table compound expansion toggle button after
|
|
166
189
|
--#{$table}__compound-expansion-toggle__button--after--BorderColor: var(--pf-t--global--border--color--clicked);
|
|
190
|
+
--#{$table}__compound-expansion-toggle__button--after--BorderRadius: inherit;
|
|
167
191
|
--#{$table}__compound-expansion-toggle__button--after--BorderBlockStartWidth: 0;
|
|
168
192
|
--#{$table}__compound-expansion-toggle__button--hover--after--BorderBlockStartWidth: var(--pf-t--global--border--width--strong);
|
|
169
193
|
--#{$table}__compound-expansion-toggle--m-expanded__button--after--BorderBlockStartWidth: var(--pf-t--global--border--width--strong);
|
|
170
194
|
|
|
171
195
|
// * Compound expandable
|
|
172
196
|
--#{$table}--compound-expansion--m-expanded--BackgroundColor: var(--pf-t--global--background--color--primary--clicked);
|
|
197
|
+
--#{$table}--compound-expansion--m-expanded--BorderWidth: var(--pf-t--global--border--width--high-contrast--regular);
|
|
173
198
|
|
|
174
199
|
// * Table compact th
|
|
175
200
|
--#{$table}--m-compact__th--PaddingBlockStart: calc(var(--pf-t--global--spacer--sm) + var(--pf-t--global--spacer--xs));
|
|
@@ -179,6 +204,14 @@
|
|
|
179
204
|
--#{$table}--m-compact--cell--PaddingBlockStart: var(--pf-t--global--spacer--sm);
|
|
180
205
|
--#{$table}--m-compact--cell--PaddingBlockEnd: var(--pf-t--global--spacer--sm);
|
|
181
206
|
|
|
207
|
+
// * Table cell with button
|
|
208
|
+
--#{$table}__td--m-action--PaddingBlockStart: var(--pf-t--global--spacer--sm);
|
|
209
|
+
--#{$table}__td--m-action--PaddingBlockEnd: var(--pf-t--global--spacer--sm);
|
|
210
|
+
|
|
211
|
+
// * Table compact cell with button
|
|
212
|
+
--#{$table}--m-compact__td--m-action--PaddingBlockStart: var(--pf-t--global--spacer--xs);
|
|
213
|
+
--#{$table}--m-compact__td--m-action--PaddingBlockEnd: var(--pf-t--global--spacer--xs);
|
|
214
|
+
|
|
182
215
|
// * Table compact action
|
|
183
216
|
--#{$table}--m-compact__action--PaddingBlockStart: var(--pf-t--global--spacer--xs);
|
|
184
217
|
--#{$table}--m-compact__action--PaddingBlockEnd: var(--pf-t--global--spacer--xs);
|
|
@@ -461,6 +494,11 @@
|
|
|
461
494
|
// }
|
|
462
495
|
// }
|
|
463
496
|
|
|
497
|
+
.#{$table}__td.pf-m-action {
|
|
498
|
+
--pf-v6-c-table--cell--PaddingBlockStart: var(--#{$table}__td--m-action--PaddingBlockStart);
|
|
499
|
+
--pf-v6-c-table--cell--PaddingBlockEnd: var(--#{$table}__td--m-action--PaddingBlockEnd);
|
|
500
|
+
}
|
|
501
|
+
|
|
464
502
|
// - Table sort
|
|
465
503
|
// set property here to increase specificity
|
|
466
504
|
.#{$table}__sort {
|
|
@@ -562,6 +600,74 @@
|
|
|
562
600
|
.#{$button} .#{$table}__sort-indicator {
|
|
563
601
|
--#{$table}__sort-indicator--MarginInlineStart: 0;
|
|
564
602
|
}
|
|
603
|
+
|
|
604
|
+
// stylelint-disable max-nesting-depth, selector-max-class
|
|
605
|
+
&.pf-m-animate-expand {
|
|
606
|
+
> .#{$table}__tbody {
|
|
607
|
+
&.pf-m-expanded {
|
|
608
|
+
> .#{$table}__control-row {
|
|
609
|
+
border-block-end: 0;
|
|
610
|
+
}
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
> .#{$table}__expandable-row {
|
|
614
|
+
display: var(--#{$table}__expandable-row--Display, revert);
|
|
615
|
+
visibility: hidden;
|
|
616
|
+
opacity: var(--#{$table}__expandable-row--Opacity);
|
|
617
|
+
transition-delay: 0s, 0s, var(--#{$table}__expandable-row--TransitionDuration--collapse--fade), var(--#{$table}__expandable-row--TransitionDuration--collapse--fade);
|
|
618
|
+
transition-timing-function: var(--#{$table}__expandable-row--TransitionTimingFunction);
|
|
619
|
+
transition-duration: var(--#{$table}__expandable-row--TransitionDuration--collapse--fade), var(--#{$table}__expandable-row--TransitionDuration--collapse--slide), 0s, 0s;
|
|
620
|
+
transition-property: opacity, translate, visibility, background-color;
|
|
621
|
+
translate: 0 var(--#{$table}__expandable-row--TranslateY);
|
|
622
|
+
|
|
623
|
+
&[hidden] {
|
|
624
|
+
display: var(--#{$table}__expandable-row--Display, revert);
|
|
625
|
+
}
|
|
626
|
+
|
|
627
|
+
&.pf-m-expanded {
|
|
628
|
+
visibility: visible;
|
|
629
|
+
opacity: var(--#{$table}__tbody--m-expanded__expandable-row--Opacity);
|
|
630
|
+
transition-delay: 0s;
|
|
631
|
+
transition-duration: var(--#{$table}__expandable-row--TransitionDuration--expand--fade), var(--#{$table}__expandable-row--TransitionDuration--expand--slide), 0s, 0s;
|
|
632
|
+
translate: 0 var(--#{$table}__tbody--m-expanded__expandable-row--TranslateY);
|
|
633
|
+
|
|
634
|
+
> :is(.#{$table}__td, .#{$table}__th) {
|
|
635
|
+
> .#{$table}__expandable-row-content {
|
|
636
|
+
max-height: 99999px;
|
|
637
|
+
}
|
|
638
|
+
}
|
|
639
|
+
}
|
|
640
|
+
|
|
641
|
+
&:not(.pf-m-expanded) {
|
|
642
|
+
> :is(.#{$table}__td, .#{$table}__th) {
|
|
643
|
+
&,
|
|
644
|
+
> .#{$table}__expandable-row-content {
|
|
645
|
+
padding: 0;
|
|
646
|
+
overflow: hidden;
|
|
647
|
+
transition-delay: var(--#{$table}__expandable-row--TransitionDuration--collapse--fade);
|
|
648
|
+
transition-property: padding, max-height, overflow;
|
|
649
|
+
}
|
|
650
|
+
|
|
651
|
+
> .#{$table}__expandable-row-content {
|
|
652
|
+
max-height: 0;
|
|
653
|
+
}
|
|
654
|
+
}
|
|
655
|
+
}
|
|
656
|
+
}
|
|
657
|
+
|
|
658
|
+
> .#{$table}__tr:has(~ .#{$table}__expandable-row) {
|
|
659
|
+
border-block-end: 0;
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
> .#{$table}__control-row.pf-m-no-animate-expand ~ .#{$table}__expandable-row {
|
|
663
|
+
--#{$table}__expandable-row--TransitionDuration--collapse--fade: 0s;
|
|
664
|
+
--#{$table}__expandable-row--TransitionDuration--collapse--slide: 0s;
|
|
665
|
+
--#{$table}__expandable-row--TransitionDuration--expand--fade: 0s;
|
|
666
|
+
--#{$table}__expandable-row--TransitionDuration--expand--slide: 0s;
|
|
667
|
+
}
|
|
668
|
+
}
|
|
669
|
+
}
|
|
670
|
+
// stylelint-enable
|
|
565
671
|
}
|
|
566
672
|
|
|
567
673
|
// - Table truncate - Table wrap - Table nowrap - Table fit content - Table wrap - Table break word
|
|
@@ -635,6 +741,7 @@
|
|
|
635
741
|
|
|
636
742
|
// - Table button
|
|
637
743
|
.#{$table}__button {
|
|
744
|
+
position: relative;
|
|
638
745
|
width: auto;
|
|
639
746
|
padding-block-start: var(--#{$table}__button--PaddingBlockStart);
|
|
640
747
|
padding-block-end: var(--#{$table}__button--PaddingBlockEnd);
|
|
@@ -653,6 +760,15 @@
|
|
|
653
760
|
border-radius: var(--#{$table}__button--BorderRadius);
|
|
654
761
|
outline-offset: var(--#{$table}__button--OutlineOffset);
|
|
655
762
|
|
|
763
|
+
&::after {
|
|
764
|
+
position: absolute;
|
|
765
|
+
inset: 0;
|
|
766
|
+
pointer-events: none;
|
|
767
|
+
content: '';
|
|
768
|
+
border: var(--#{$table}__button--BorderWidth) solid var(--#{$table}__button--BorderColor);
|
|
769
|
+
border-radius: inherit;
|
|
770
|
+
}
|
|
771
|
+
|
|
656
772
|
// Table table table button
|
|
657
773
|
.#{$table} .#{$table} & {
|
|
658
774
|
margin-block-end: 0; // remove offset in nested tables
|
|
@@ -737,13 +853,20 @@
|
|
|
737
853
|
--#{$table}--cell--PaddingInlineStart: var(--#{$table}__toggle--PaddingInlineStart);
|
|
738
854
|
--#{$table}--cell--PaddingInlineEnd: var(--#{$table}__toggle--PaddingInlineEnd);
|
|
739
855
|
|
|
856
|
+
@at-root .#{$table}__thead & {
|
|
857
|
+
.#{$button} {
|
|
858
|
+
margin-block-start: calc(var(--#{$button}--PaddingBlockStart) * -1);
|
|
859
|
+
margin-block-end: calc(var(--#{$button}--PaddingBlockEnd) * -1);
|
|
860
|
+
line-height: 1lh; // set line-height instead of --LineHeight to avoid breaking the min-width calc for plain buttons
|
|
861
|
+
}
|
|
862
|
+
}
|
|
863
|
+
|
|
740
864
|
.#{$button} {
|
|
741
865
|
&.pf-m-expanded .#{$table}__toggle-icon {
|
|
742
866
|
transform: rotate(var(--#{$table}__toggle--c-button--m-expanded__toggle-icon--Rotate));
|
|
743
867
|
}
|
|
744
868
|
}
|
|
745
869
|
|
|
746
|
-
|
|
747
870
|
.#{$table}__toggle-icon {
|
|
748
871
|
@include pf-v6-mirror-inline-on-rtl;
|
|
749
872
|
|
|
@@ -870,6 +993,7 @@
|
|
|
870
993
|
content: '';
|
|
871
994
|
border: 0;
|
|
872
995
|
border-block-start: var(--#{$table}__compound-expansion-toggle__button--after--BorderBlockStartWidth) solid var(--#{$table}__compound-expansion-toggle__button--after--BorderColor);
|
|
996
|
+
border-radius: var(--#{$table}__compound-expansion-toggle__button--after--BorderRadius);
|
|
873
997
|
}
|
|
874
998
|
|
|
875
999
|
&:hover,
|
|
@@ -899,6 +1023,10 @@
|
|
|
899
1023
|
.#{$table}__column-help-action {
|
|
900
1024
|
align-self: last baseline;
|
|
901
1025
|
margin-inline-start: var(--#{$table}__column-help--MarginInlineStart);
|
|
1026
|
+
|
|
1027
|
+
.#{$button} {
|
|
1028
|
+
line-height: 1lh; // set line-height instead of --LineHeight to avoid breaking the min-width calc for plain buttons
|
|
1029
|
+
}
|
|
902
1030
|
}
|
|
903
1031
|
|
|
904
1032
|
// - Table sort
|
|
@@ -911,6 +1039,7 @@
|
|
|
911
1039
|
--#{$table}__sort-indicator--Color: var(--#{$table}__sort__button--hover__sort-indicator--Color);
|
|
912
1040
|
--#{$table}__sort__button__text--Color: var(--#{$table}__sort__button--hover__text--Color);
|
|
913
1041
|
--#{$table}__button--BackgroundColor: var(--#{$table}__button--hover--BackgroundColor);
|
|
1042
|
+
--#{$table}__button--BorderWidth: var(--#{$table}__button--hover--BorderWidth);
|
|
914
1043
|
}
|
|
915
1044
|
|
|
916
1045
|
// - Table text
|
|
@@ -954,13 +1083,21 @@
|
|
|
954
1083
|
position: relative;
|
|
955
1084
|
border-block-end: 0 solid transparent;
|
|
956
1085
|
|
|
957
|
-
|
|
1086
|
+
// remove top padding from expandable row cells by default
|
|
1087
|
+
:not(.#{$table}__control-row) ~ & {
|
|
958
1088
|
> .#{$table}__th,
|
|
959
1089
|
> .#{$table}__td {
|
|
960
1090
|
padding-block-start: 0;
|
|
961
1091
|
}
|
|
962
1092
|
}
|
|
963
1093
|
|
|
1094
|
+
// add back padding for compound expandable
|
|
1095
|
+
.#{$table}__control-row ~ &.pf-m-expanded {
|
|
1096
|
+
> :is(.#{$table}__th, .#{$table}__td):not(.pf-m-no-padding) {
|
|
1097
|
+
padding-block-start: var(--#{$table}--cell--PaddingBlockStart);
|
|
1098
|
+
}
|
|
1099
|
+
}
|
|
1100
|
+
|
|
964
1101
|
td:where(.#{$table}__td),
|
|
965
1102
|
th:where(.#{$table}__th) {
|
|
966
1103
|
&.pf-m-no-padding {
|
|
@@ -971,20 +1108,37 @@
|
|
|
971
1108
|
|
|
972
1109
|
.#{$table}__expandable-row-content {
|
|
973
1110
|
padding: 0;
|
|
1111
|
+
border-radius: 0;
|
|
974
1112
|
}
|
|
975
1113
|
}
|
|
976
1114
|
}
|
|
977
1115
|
|
|
978
1116
|
// - Table expandable row content
|
|
979
1117
|
.#{$table}__expandable-row-content {
|
|
1118
|
+
position: relative;
|
|
980
1119
|
padding-block-start: var(--#{$table}__expandable-row-content--PaddingBlockStart);
|
|
981
1120
|
padding-block-end: var(--#{$table}__expandable-row-content--PaddingBlockEnd);
|
|
982
1121
|
padding-inline-start: var(--#{$table}__expandable-row-content--PaddingInlineStart);
|
|
983
1122
|
padding-inline-end: var(--#{$table}__expandable-row-content--PaddingInlineEnd);
|
|
984
1123
|
background-color: var(--#{$table}__expandable-row-content--BackgroundColor);
|
|
1124
|
+
border: 0;
|
|
985
1125
|
border-radius: var(--#{$table}__expandable-row-content--BorderRadius);
|
|
1126
|
+
|
|
1127
|
+
&.pf-m-no-background {
|
|
1128
|
+
background-color: transparent;
|
|
1129
|
+
}
|
|
1130
|
+
}
|
|
1131
|
+
|
|
1132
|
+
.#{$table}__td:not(.pf-m-no-padding) > .#{$table}__expandable-row-content::after {
|
|
1133
|
+
position: absolute;
|
|
1134
|
+
inset: 0;
|
|
1135
|
+
pointer-events: none;
|
|
1136
|
+
content: "";
|
|
1137
|
+
border: var(--#{$table}__expandable-row-content--BorderWidth) solid var(--#{$table}__expandable-row-content--BorderColor);
|
|
1138
|
+
border-radius: inherit;
|
|
986
1139
|
}
|
|
987
1140
|
|
|
1141
|
+
|
|
988
1142
|
// - Table expandable row content expanded
|
|
989
1143
|
&.pf-m-expanded {
|
|
990
1144
|
border-block-end-color: var(--#{$table}__expandable-row--m-expanded--BorderBlockEndColor);
|
|
@@ -1031,6 +1185,11 @@
|
|
|
1031
1185
|
--#{$table}--cell--PaddingBlockEnd: var(--#{$table}--m-compact__action--PaddingBlockEnd);
|
|
1032
1186
|
}
|
|
1033
1187
|
|
|
1188
|
+
.#{$table}__td.pf-m-action {
|
|
1189
|
+
--pf-v6-c-table--cell--PaddingBlockStart: var(--#{$table}--m-compact__td--m-action--PaddingBlockStart);
|
|
1190
|
+
--pf-v6-c-table--cell--PaddingBlockEnd: var(--#{$table}--m-compact__td--m-action--PaddingBlockEnd);
|
|
1191
|
+
}
|
|
1192
|
+
|
|
1034
1193
|
.#{$table}__icon {
|
|
1035
1194
|
width: auto;
|
|
1036
1195
|
min-width: 0;
|
|
@@ -1041,6 +1200,7 @@
|
|
|
1041
1200
|
// - Table thead
|
|
1042
1201
|
.#{$table}__thead {
|
|
1043
1202
|
--#{$table}__tr--BorderBlockEndWidth: 0;
|
|
1203
|
+
--#{$table}__toggle--PaddingBlockStart: var(--#{$table}__thead__toggle--PaddingBlockStart);
|
|
1044
1204
|
--#{$table}__toggle--PaddingBlockEnd: var(--#{$table}__thead__toggle--PaddingBlockEnd);
|
|
1045
1205
|
|
|
1046
1206
|
vertical-align: bottom;
|
|
@@ -1063,6 +1223,8 @@
|
|
|
1063
1223
|
|
|
1064
1224
|
// TODO: make this a class `compound expansion content`
|
|
1065
1225
|
.#{$table}__control-row ~ .#{$table}__expandable-row.pf-m-expanded {
|
|
1226
|
+
--#{$table}__expandable-row-content--BorderWidth: var(--#{$table}--compound-expansion--m-expanded--BorderWidth);
|
|
1227
|
+
|
|
1066
1228
|
background-color: var(--#{$table}--compound-expansion--m-expanded--BackgroundColor);
|
|
1067
1229
|
}
|
|
1068
1230
|
}
|
|
@@ -1086,6 +1248,12 @@
|
|
|
1086
1248
|
.#{$table}__control-row {
|
|
1087
1249
|
background-color: var(--#{$table}__control-row--BackgroundColor);
|
|
1088
1250
|
border-block-end: var(--#{$table}__control-row--BorderBlockEndWidth) solid var(--#{$table}__control-row__tbody--BorderBlockEndColor);
|
|
1251
|
+
|
|
1252
|
+
// stylelint-disable max-nesting-depth, selector-max-class
|
|
1253
|
+
&.pf-m-expanded {
|
|
1254
|
+
border-block-end: 0; // TODO this is a dupe of the block above, consolidate in a breaking change
|
|
1255
|
+
}
|
|
1256
|
+
// stylelint-enable
|
|
1089
1257
|
}
|
|
1090
1258
|
}
|
|
1091
1259
|
}
|
package/components/Tabs/tabs.css
CHANGED
|
@@ -46,6 +46,10 @@
|
|
|
46
46
|
--pf-v6-c-tabs__link--FontSize: var(--pf-t--global--font--size--sm);
|
|
47
47
|
--pf-v6-c-tabs__link--BackgroundColor: var(--pf-t--global--background--color--action--plain--default);
|
|
48
48
|
--pf-v6-c-tabs__link--BorderRadius: var(--pf-t--global--border--radius--small);
|
|
49
|
+
--pf-v6-c-tabs__link--BorderWidth: var(--pf-t--global--border--width--action--plain--hover);
|
|
50
|
+
--pf-v6-c-tabs__link--BorderColor: transparent;
|
|
51
|
+
--pf-v6-c-tabs__link--hover--BorderColor: var(--pf-t--global--border--color--high-contrast);
|
|
52
|
+
--pf-v6-c-tabs__link--disabled--BorderColor: transparent;
|
|
49
53
|
--pf-v6-c-tabs__link--PaddingBlockStart: var(--pf-t--global--spacer--xs);
|
|
50
54
|
--pf-v6-c-tabs__link--PaddingInlineEnd: var(--pf-t--global--spacer--sm);
|
|
51
55
|
--pf-v6-c-tabs__link--PaddingBlockEnd: var(--pf-t--global--spacer--xs);
|
|
@@ -96,25 +100,28 @@
|
|
|
96
100
|
--pf-v6-c-tabs__item--m-current__link--after--BorderColor: var(--pf-t--global--border--color--clicked);
|
|
97
101
|
--pf-v6-c-tabs__item--m-current__link--after--BorderWidth: var(--pf-t--global--border--width--extra-strong);
|
|
98
102
|
--pf-v6-c-tabs--link-accent--start: 0;
|
|
99
|
-
--pf-v6-c-tabs--link-accent--length:
|
|
103
|
+
--pf-v6-c-tabs--link-accent--length: 0;
|
|
100
104
|
--pf-v6-c-tabs--link-accent--color: var(--pf-v6-c-tabs__item--m-current__link--after--BorderColor);
|
|
101
105
|
--pf-v6-c-tabs--link-accent--border-size: var(--pf-v6-c-tabs__item--m-current__link--after--BorderWidth);
|
|
106
|
+
--pf-v6-c-tabs--link-accent--TransitionDuration: var(--pf-t--global--motion--duration--md);
|
|
107
|
+
--pf-v6-c-tabs--link-accent--TransitionTimingFunction: var(--pf-t--global--motion--timing-function--decelerate);
|
|
102
108
|
--pf-v6-c-tabs--link-accent--InsetBlockStart: auto;
|
|
103
109
|
--pf-v6-c-tabs--link-accent--InsetBlockEnd: 0;
|
|
104
|
-
--pf-v6-c-tabs--link-accent--InsetInlineStart:
|
|
110
|
+
--pf-v6-c-tabs--link-accent--InsetInlineStart: 0;
|
|
105
111
|
--pf-v6-c-tabs--link-accent--Width: initial;
|
|
106
112
|
--pf-v6-c-tabs--link-accent--Height: 0;
|
|
107
113
|
--pf-v6-c-tabs--link-accent--BorderBlockEndWidth: var(--pf-v6-c-tabs--link-accent--border-size);
|
|
108
114
|
--pf-v6-c-tabs--link-accent--BorderInlineStartWidth: 0;
|
|
109
|
-
--pf-v6-c-tabs--
|
|
115
|
+
--pf-v6-c-tabs--link-accent--TranslateX: var(--pf-v6-c-tabs--link-accent--start);
|
|
116
|
+
--pf-v6-c-tabs--link-accent--TranslateY: 0;
|
|
117
|
+
--pf-v6-c-tabs--link-accent--TransformOrigin: 0 center;
|
|
118
|
+
--pf-v6-c-tabs--m-vertical--link-accent--InsetBlockStart: 0;
|
|
110
119
|
--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
120
|
--pf-v6-c-tabs--m-vertical--link-accent--BorderBlockEndWidth: 0;
|
|
115
121
|
--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--
|
|
117
|
-
--pf-v6-c-tabs--link-accent--
|
|
122
|
+
--pf-v6-c-tabs--m-vertical--link-accent--TranslateX: 0;
|
|
123
|
+
--pf-v6-c-tabs--m-vertical--link-accent--TranslateY: var(--pf-v6-c-tabs--link-accent--start);
|
|
124
|
+
--pf-v6-c-tabs--m-vertical--link-accent--TransformOrigin: center 0;
|
|
118
125
|
--pf-v6-c-tabs__scroll-button--PaddingBlockStart: var(--pf-t--global--spacer--sm);
|
|
119
126
|
--pf-v6-c-tabs__scroll-button--PaddingBlockEnd: var(--pf-t--global--spacer--sm);
|
|
120
127
|
--pf-v6-c-tabs__scroll-button--PaddingInlineStart: var(--pf-t--global--spacer--sm);
|
|
@@ -274,11 +281,13 @@
|
|
|
274
281
|
--pf-v6-c-tabs__list--ScrollSnapTypeAxis: var(--pf-v6-c-tabs--m-vertical__list--ScrollSnapTypeAxis);
|
|
275
282
|
--pf-v6-c-tabs--link-accent--InsetBlockStart: var(--pf-v6-c-tabs--m-vertical--link-accent--InsetBlockStart);
|
|
276
283
|
--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
284
|
--pf-v6-c-tabs--link-accent--Width: var(--pf-v6-c-tabs--m-vertical--link-accent--Width);
|
|
279
285
|
--pf-v6-c-tabs--link-accent--Height: var(--pf-v6-c-tabs--m-vertical--link-accent--Height);
|
|
280
286
|
--pf-v6-c-tabs--link-accent--BorderBlockEndWidth: var(--pf-v6-c-tabs--m-vertical--link-accent--BorderBlockEndWidth);
|
|
281
287
|
--pf-v6-c-tabs--link-accent--BorderInlineStartWidth: var(--pf-v6-c-tabs--m-vertical--link-accent--BorderInlineStartWidth);
|
|
288
|
+
--pf-v6-c-tabs--link-accent--TranslateX: var(--pf-v6-c-tabs--m-vertical--link-accent--TranslateX);
|
|
289
|
+
--pf-v6-c-tabs--link-accent--TranslateY: var(--pf-v6-c-tabs--m-vertical--link-accent--TranslateY);
|
|
290
|
+
--pf-v6-c-tabs--link-accent--TransformOrigin: var(--pf-v6-c-tabs--m-vertical--link-accent--TransformOrigin);
|
|
282
291
|
display: inline-flex;
|
|
283
292
|
flex-direction: column;
|
|
284
293
|
height: 100%;
|
|
@@ -540,6 +549,7 @@
|
|
|
540
549
|
color: var(--pf-v6-c-tabs__link--Color);
|
|
541
550
|
text-decoration-line: none;
|
|
542
551
|
background-color: var(--pf-v6-c-tabs__link--BackgroundColor);
|
|
552
|
+
border: var(--pf-v6-c-tabs__link--BorderWidth) solid var(--pf-v6-c-tabs__link--BorderColor);
|
|
543
553
|
border-radius: var(--pf-v6-c-tabs__link--BorderRadius);
|
|
544
554
|
transition: background-color var(--pf-v6-c-tabs__link--TransitionDuration--background-color) var(--pf-v6-c-tabs__link--TransitionTimingFunction--background-color);
|
|
545
555
|
}
|
|
@@ -573,6 +583,7 @@
|
|
|
573
583
|
|
|
574
584
|
.pf-v6-c-tabs__link:where(:hover, :focus) {
|
|
575
585
|
--pf-v6-c-tabs__link--BackgroundColor: var(--pf-v6-c-tabs__link--hover--BackgroundColor);
|
|
586
|
+
--pf-v6-c-tabs__link--BorderColor: var(--pf-v6-c-tabs__link--hover--BorderColor);
|
|
576
587
|
}
|
|
577
588
|
.pf-v6-c-tabs__link:disabled, .pf-v6-c-tabs__link.pf-m-disabled {
|
|
578
589
|
pointer-events: none;
|
|
@@ -587,6 +598,7 @@
|
|
|
587
598
|
|
|
588
599
|
.pf-v6-c-tabs__link:is(:disabled, .pf-m-disabled, .pf-m-aria-disabled) {
|
|
589
600
|
--pf-v6-c-tabs__link--BackgroundColor: var(--pf-v6-c-tabs__link--disabled--BackgroundColor);
|
|
601
|
+
--pf-v6-c-tabs__link--BorderColor: var(--pf-v6-c-tabs__link--disabled--BorderColor);
|
|
590
602
|
}
|
|
591
603
|
.pf-v6-c-tabs__item.pf-m-action.pf-m-disabled {
|
|
592
604
|
--pf-v6-c-tabs__link--BackgroundColor: transparent;
|
|
@@ -855,15 +867,15 @@
|
|
|
855
867
|
}
|
|
856
868
|
|
|
857
869
|
@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 {
|
|
870
|
+
.pf-v6-c-tabs.pf-m-animate-current:not(.pf-m-box) .pf-v6-c-tabs__link::after,
|
|
871
|
+
.pf-v6-c-tabs.pf-m-animate-current:not(.pf-m-box) .pf-v6-c-tabs__item.pf-m-action::after {
|
|
860
872
|
content: revert;
|
|
861
873
|
}
|
|
862
|
-
.pf-v6-c-tabs:not(.pf-m-box) .pf-v6-c-tabs__list::after {
|
|
874
|
+
.pf-v6-c-tabs.pf-m-animate-current:not(.pf-m-box) .pf-v6-c-tabs__list::after {
|
|
863
875
|
position: absolute;
|
|
864
|
-
inset-block-start: var(--pf-v6-c-tabs--link-accent--InsetBlockStart
|
|
876
|
+
inset-block-start: var(--pf-v6-c-tabs--link-accent--InsetBlockStart);
|
|
865
877
|
inset-block-end: var(--pf-v6-c-tabs--link-accent--InsetBlockEnd);
|
|
866
|
-
inset-inline-start: var(--pf-v6-c-tabs--link-accent--InsetInlineStart
|
|
878
|
+
inset-inline-start: var(--pf-v6-c-tabs--link-accent--InsetInlineStart);
|
|
867
879
|
width: var(--pf-v6-c-tabs--link-accent--Width, var(--pf-v6-c-tabs--link-accent--length));
|
|
868
880
|
height: var(--pf-v6-c-tabs--link-accent--Height, var(--pf-v6-c-tabs--link-accent--length));
|
|
869
881
|
content: "";
|
|
@@ -872,7 +884,12 @@
|
|
|
872
884
|
border-inline-start-width: var(--pf-v6-c-tabs--link-accent--BorderInlineStartWidth);
|
|
873
885
|
transition-timing-function: var(--pf-v6-c-tabs--link-accent--TransitionTimingFunction);
|
|
874
886
|
transition-duration: var(--pf-v6-c-tabs--link-accent--TransitionDuration);
|
|
875
|
-
transition-property:
|
|
887
|
+
transition-property: width, height, translate;
|
|
888
|
+
transform-origin: var(--pf-v6-c-tabs--link-accent--TransformOrigin);
|
|
889
|
+
translate: var(--pf-v6-c-tabs--link-accent--TranslateX) var(--pf-v6-c-tabs--link-accent--TranslateY);
|
|
890
|
+
}
|
|
891
|
+
:where(.pf-v6-m-dir-rtl, [dir=rtl]) .pf-v6-c-tabs.pf-m-animate-current:not(.pf-m-box) .pf-v6-c-tabs__list::after {
|
|
892
|
+
translate: calc(var(--pf-v6-c-tabs--link-accent--TranslateX) * var(--pf-v6-global--inverse--multiplier)) var(--pf-v6-c-tabs--link-accent--TranslateY);
|
|
876
893
|
}
|
|
877
894
|
.pf-v6-c-tabs.pf-m-initializing-accent {
|
|
878
895
|
--pf-v6-c-tabs--link-accent--TransitionDuration: 0;
|
|
@@ -3,6 +3,7 @@
|
|
|
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
|
+
|
|
6
7
|
@property --#{$tabs}--link-accent--length {
|
|
7
8
|
syntax: "<length>";
|
|
8
9
|
inherits: true;
|
|
@@ -65,6 +66,10 @@ $pf-v6-c-tabs--spacer-map: build-spacer-map("none", "sm", "md", "lg", "xl", "2xl
|
|
|
65
66
|
--#{$tabs}__link--FontSize: var(--pf-t--global--font--size--sm);
|
|
66
67
|
--#{$tabs}__link--BackgroundColor: var(--pf-t--global--background--color--action--plain--default);
|
|
67
68
|
--#{$tabs}__link--BorderRadius: var(--pf-t--global--border--radius--small);
|
|
69
|
+
--#{$tabs}__link--BorderWidth: var(--pf-t--global--border--width--action--plain--hover);
|
|
70
|
+
--#{$tabs}__link--BorderColor: transparent;
|
|
71
|
+
--#{$tabs}__link--hover--BorderColor: var(--pf-t--global--border--color--high-contrast);
|
|
72
|
+
--#{$tabs}__link--disabled--BorderColor: transparent;
|
|
68
73
|
--#{$tabs}__link--PaddingBlockStart: var(--pf-t--global--spacer--xs);
|
|
69
74
|
--#{$tabs}__link--PaddingInlineEnd: var(--pf-t--global--spacer--sm);
|
|
70
75
|
--#{$tabs}__link--PaddingBlockEnd: var(--pf-t--global--spacer--xs);
|
|
@@ -121,25 +126,28 @@ $pf-v6-c-tabs--spacer-map: build-spacer-map("none", "sm", "md", "lg", "xl", "2xl
|
|
|
121
126
|
|
|
122
127
|
// Link accent
|
|
123
128
|
--#{$tabs}--link-accent--start: 0; // needed to create react-token
|
|
124
|
-
--#{$tabs}--link-accent--length:
|
|
129
|
+
--#{$tabs}--link-accent--length: 0; // needed to create react-token
|
|
125
130
|
--#{$tabs}--link-accent--color: var(--#{$tabs}__item--m-current__link--after--BorderColor);
|
|
126
131
|
--#{$tabs}--link-accent--border-size: var(--#{$tabs}__item--m-current__link--after--BorderWidth);
|
|
132
|
+
--#{$tabs}--link-accent--TransitionDuration: var(--pf-t--global--motion--duration--md);
|
|
133
|
+
--#{$tabs}--link-accent--TransitionTimingFunction: var(--pf-t--global--motion--timing-function--decelerate);
|
|
127
134
|
--#{$tabs}--link-accent--InsetBlockStart: auto;
|
|
128
135
|
--#{$tabs}--link-accent--InsetBlockEnd: 0;
|
|
129
|
-
--#{$tabs}--link-accent--InsetInlineStart:
|
|
136
|
+
--#{$tabs}--link-accent--InsetInlineStart: 0;
|
|
130
137
|
--#{$tabs}--link-accent--Width: initial;
|
|
131
138
|
--#{$tabs}--link-accent--Height: 0;
|
|
132
139
|
--#{$tabs}--link-accent--BorderBlockEndWidth: var(--#{$tabs}--link-accent--border-size);
|
|
133
140
|
--#{$tabs}--link-accent--BorderInlineStartWidth: 0;
|
|
134
|
-
--#{$tabs}--
|
|
141
|
+
--#{$tabs}--link-accent--TranslateX: var(--#{$tabs}--link-accent--start);
|
|
142
|
+
--#{$tabs}--link-accent--TranslateY: 0;
|
|
143
|
+
--#{$tabs}--link-accent--TransformOrigin: 0 center;
|
|
144
|
+
--#{$tabs}--m-vertical--link-accent--InsetBlockStart: 0;
|
|
135
145
|
--#{$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
146
|
--#{$tabs}--m-vertical--link-accent--BorderBlockEndWidth: 0;
|
|
140
147
|
--#{$tabs}--m-vertical--link-accent--BorderInlineStartWidth: var(--#{$tabs}--link-accent--border-size);
|
|
141
|
-
--#{$tabs}--link-accent--
|
|
142
|
-
--#{$tabs}--link-accent--
|
|
148
|
+
--#{$tabs}--m-vertical--link-accent--TranslateX: 0;
|
|
149
|
+
--#{$tabs}--m-vertical--link-accent--TranslateY: var(--#{$tabs}--link-accent--start);
|
|
150
|
+
--#{$tabs}--m-vertical--link-accent--TransformOrigin: center 0;
|
|
143
151
|
|
|
144
152
|
// Scroll buttons
|
|
145
153
|
--#{$tabs}__scroll-button--PaddingBlockStart: var(--pf-t--global--spacer--sm);
|
|
@@ -354,11 +362,13 @@ $pf-v6-c-tabs--spacer-map: build-spacer-map("none", "sm", "md", "lg", "xl", "2xl
|
|
|
354
362
|
--#{$tabs}__list--ScrollSnapTypeAxis: var(--#{$tabs}--m-vertical__list--ScrollSnapTypeAxis);
|
|
355
363
|
--#{$tabs}--link-accent--InsetBlockStart: var(--#{$tabs}--m-vertical--link-accent--InsetBlockStart);
|
|
356
364
|
--#{$tabs}--link-accent--InsetBlockEnd: var(--#{$tabs}--m-vertical--link-accent--InsetBlockEnd);
|
|
357
|
-
--#{$tabs}--link-accent--InsetInlineStart: var(--#{$tabs}--m-vertical--link-accent--InsetInlineStart);
|
|
358
365
|
--#{$tabs}--link-accent--Width: var(--#{$tabs}--m-vertical--link-accent--Width);
|
|
359
366
|
--#{$tabs}--link-accent--Height: var(--#{$tabs}--m-vertical--link-accent--Height);
|
|
360
367
|
--#{$tabs}--link-accent--BorderBlockEndWidth: var(--#{$tabs}--m-vertical--link-accent--BorderBlockEndWidth);
|
|
361
368
|
--#{$tabs}--link-accent--BorderInlineStartWidth: var(--#{$tabs}--m-vertical--link-accent--BorderInlineStartWidth);
|
|
369
|
+
--#{$tabs}--link-accent--TranslateX: var(--#{$tabs}--m-vertical--link-accent--TranslateX);
|
|
370
|
+
--#{$tabs}--link-accent--TranslateY: var(--#{$tabs}--m-vertical--link-accent--TranslateY);
|
|
371
|
+
--#{$tabs}--link-accent--TransformOrigin: var(--#{$tabs}--m-vertical--link-accent--TransformOrigin);
|
|
362
372
|
|
|
363
373
|
display: inline-flex;
|
|
364
374
|
flex-direction: column;
|
|
@@ -624,6 +634,7 @@ $pf-v6-c-tabs--spacer-map: build-spacer-map("none", "sm", "md", "lg", "xl", "2xl
|
|
|
624
634
|
color: var(--#{$tabs}__link--Color);
|
|
625
635
|
text-decoration-line: none;
|
|
626
636
|
background-color: var(--#{$tabs}__link--BackgroundColor);
|
|
637
|
+
border: var(--#{$tabs}__link--BorderWidth) solid var(--#{$tabs}__link--BorderColor);
|
|
627
638
|
border-radius: var(--#{$tabs}__link--BorderRadius);
|
|
628
639
|
transition: background-color var(--#{$tabs}__link--TransitionDuration--background-color) var(--#{$tabs}__link--TransitionTimingFunction--background-color);
|
|
629
640
|
|
|
@@ -659,7 +670,8 @@ $pf-v6-c-tabs--spacer-map: build-spacer-map("none", "sm", "md", "lg", "xl", "2xl
|
|
|
659
670
|
|
|
660
671
|
&:where(:hover, :focus) {
|
|
661
672
|
--#{$tabs}__link--BackgroundColor: var(--#{$tabs}__link--hover--BackgroundColor);
|
|
662
|
-
|
|
673
|
+
--#{$tabs}__link--BorderColor: var(--#{$tabs}__link--hover--BorderColor);
|
|
674
|
+
}
|
|
663
675
|
|
|
664
676
|
&:disabled,
|
|
665
677
|
&.pf-m-disabled {
|
|
@@ -679,6 +691,7 @@ $pf-v6-c-tabs--spacer-map: build-spacer-map("none", "sm", "md", "lg", "xl", "2xl
|
|
|
679
691
|
|
|
680
692
|
&:is(:disabled, .pf-m-disabled, .pf-m-aria-disabled) {
|
|
681
693
|
--#{$tabs}__link--BackgroundColor: var(--#{$tabs}__link--disabled--BackgroundColor);
|
|
694
|
+
--#{$tabs}__link--BorderColor: var(--#{$tabs}__link--disabled--BorderColor);
|
|
682
695
|
}
|
|
683
696
|
|
|
684
697
|
@at-root .#{$tabs}__item.pf-m-action.pf-m-disabled {
|
|
@@ -785,7 +798,7 @@ $pf-v6-c-tabs--spacer-map: build-spacer-map("none", "sm", "md", "lg", "xl", "2xl
|
|
|
785
798
|
// stylelint-enable
|
|
786
799
|
|
|
787
800
|
@media (prefers-reduced-motion: no-preference) {
|
|
788
|
-
.#{$tabs}:not(.pf-m-box) {
|
|
801
|
+
.#{$tabs}.pf-m-animate-current:not(.pf-m-box) {
|
|
789
802
|
.#{$tabs}__link,
|
|
790
803
|
.#{$tabs}__item.pf-m-action {
|
|
791
804
|
&::after {
|
|
@@ -795,9 +808,9 @@ $pf-v6-c-tabs--spacer-map: build-spacer-map("none", "sm", "md", "lg", "xl", "2xl
|
|
|
795
808
|
|
|
796
809
|
.#{$tabs}__list::after {
|
|
797
810
|
position: absolute;
|
|
798
|
-
inset-block-start: var(--#{$tabs}--link-accent--InsetBlockStart
|
|
811
|
+
inset-block-start: var(--#{$tabs}--link-accent--InsetBlockStart);
|
|
799
812
|
inset-block-end: var(--#{$tabs}--link-accent--InsetBlockEnd);
|
|
800
|
-
inset-inline-start: var(--#{$tabs}--link-accent--InsetInlineStart
|
|
813
|
+
inset-inline-start: var(--#{$tabs}--link-accent--InsetInlineStart);
|
|
801
814
|
width: var(--#{$tabs}--link-accent--Width, var(--#{$tabs}--link-accent--length));
|
|
802
815
|
height: var(--#{$tabs}--link-accent--Height, var(--#{$tabs}--link-accent--length));
|
|
803
816
|
content: "";
|
|
@@ -806,7 +819,14 @@ $pf-v6-c-tabs--spacer-map: build-spacer-map("none", "sm", "md", "lg", "xl", "2xl
|
|
|
806
819
|
border-inline-start-width: var(--#{$tabs}--link-accent--BorderInlineStartWidth);
|
|
807
820
|
transition-timing-function: var(--#{$tabs}--link-accent--TransitionTimingFunction);
|
|
808
821
|
transition-duration: var(--#{$tabs}--link-accent--TransitionDuration);
|
|
809
|
-
transition-property:
|
|
822
|
+
transition-property: width, height, translate;
|
|
823
|
+
transform-origin: var(--#{$tabs}--link-accent--TransformOrigin);
|
|
824
|
+
|
|
825
|
+
@include pf-v6-bidirectional-style(
|
|
826
|
+
$prop: translate,
|
|
827
|
+
$ltr-val: var(--#{$tabs}--link-accent--TranslateX) var(--#{$tabs}--link-accent--TranslateY),
|
|
828
|
+
$rtl-val: #{pf-v6-calc-inverse(var(--#{$tabs}--link-accent--TranslateX))} var(--#{$tabs}--link-accent--TranslateY)
|
|
829
|
+
);
|
|
810
830
|
}
|
|
811
831
|
}
|
|
812
832
|
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
--pf-v6-c-text-input-group__text-input--PaddingInlineStart: var(--pf-t--global--spacer--control--horizontal--default);
|
|
32
32
|
--pf-v6-c-text-input-group__text-input--MinWidth: 12ch;
|
|
33
33
|
--pf-v6-c-text-input-group__text-input--m-hint--Color: var(--pf-t--global--text--color--placeholder);
|
|
34
|
+
--pf-v6-c-text-input-group__text-input--Color: var(--pf-t--global--text--color--regular);
|
|
34
35
|
--pf-v6-c-text-input-group__text-input--placeholder--Color: var(--pf-t--global--text--color--placeholder);
|
|
35
36
|
--pf-v6-c-text-input-group__text-input--BackgroundColor: transparent;
|
|
36
37
|
--pf-v6-c-text-input-group__text-input--OutlineOffset: -6px;
|
|
@@ -77,6 +78,8 @@
|
|
|
77
78
|
}
|
|
78
79
|
.pf-v6-c-text-input-group.pf-m-disabled {
|
|
79
80
|
--pf-v6-c-text-input-group--Color: var(--pf-v6-c-text-input-group--m-disabled--Color);
|
|
81
|
+
--pf-v6-c-text-input-group__text-input--Color: var(--pf-v6-c-text-input-group--m-disabled--Color);
|
|
82
|
+
--pf-v6-c-text-input-group__text-input--placeholder--Color: var(--pf-v6-c-text-input-group--m-disabled--Color);
|
|
80
83
|
--pf-v6-c-text-input-group__icon--Color: var(--pf-v6-c-text-input-group--m-disabled__icon--Color);
|
|
81
84
|
--pf-v6-c-text-input-group__icon--m-status--Color: var(--pf-v6-c-text-input-group--m-disabled__icon--m-status--Color);
|
|
82
85
|
--pf-v6-c-text-input-group--BackgroundColor: var(--pf-v6-c-text-input-group--m-disabled--BackgroundColor);
|
|
@@ -103,12 +106,31 @@
|
|
|
103
106
|
--pf-v6-c-text-input-group--m-hover--BorderColor: var(--pf-v6-c-text-input-group--m-hover--m-error--BorderColor);
|
|
104
107
|
--pf-v6-c-text-input-group__icon--m-status--Color: var(--pf-v6-c-text-input-group__main--m-error__icon--m-status--Color);
|
|
105
108
|
}
|
|
109
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
110
|
+
.pf-v6-c-text-input-group.pf-m-error {
|
|
111
|
+
translate: var(--pf-v6-global--danger-jiggle--TranslateX, 0);
|
|
112
|
+
animation-name: pf-v6-global-danger-jiggle-motion;
|
|
113
|
+
animation-duration: var(--pf-v6-global--danger-jiggle--AnimationDuration--Transform);
|
|
114
|
+
animation-timing-function: var(--pf-v6-global--danger-jiggle--AnimationTimingFunction--Transform);
|
|
115
|
+
animation-fill-mode: both;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
.pf-v6-c-text-input-group.pf-m-error .pf-v6-c-text-input-group__icon.pf-m-status {
|
|
119
|
+
--pf-v6-c-text-input-group--TransitionDuration--Opacity: var(--pf-t--global--motion--duration--fade--default);
|
|
120
|
+
--pf-v6-c-text-input-group--TransitionTimingFunction--Opacity: var(--pf-t--global--motion--timing-function--default);
|
|
121
|
+
animation-name: pf-v6-global-fade-in;
|
|
122
|
+
animation-duration: var(--pf-v6-c-text-input-group--TransitionDuration--Opacity);
|
|
123
|
+
animation-timing-function: var(--pf-v6-c-text-input-group--TransitionTimingFunction--Opacity);
|
|
124
|
+
}
|
|
106
125
|
.pf-v6-c-text-input-group:hover {
|
|
107
126
|
--pf-v6-c-text-input-group--BorderColor: var(--pf-v6-c-text-input-group--m-hover--BorderColor);
|
|
108
127
|
}
|
|
109
128
|
.pf-v6-c-text-input-group:where(.pf-m-success, .pf-m-warning, .pf-m-error) {
|
|
110
129
|
--pf-v6-c-text-input-group__text-input--PaddingInlineEnd: var(--pf-v6-c-text-input-group--status__text-input--PaddingInlineEnd);
|
|
111
130
|
}
|
|
131
|
+
.pf-v6-c-text-input-group:where(.pf-m-success, .pf-m-warning, .pf-m-error) .pf-v6-c-text-input-group__text {
|
|
132
|
+
--pf-v6-c-text-input-group__text--Position: relative;
|
|
133
|
+
}
|
|
112
134
|
.pf-v6-c-text-input-group:has(> .pf-v6-c-text-input-group__utilities) {
|
|
113
135
|
--pf-v6-c-text-input-group__icon--m-status--InsetInlineEnd: var(--pf-v6-c-text-input-group--utilities--icon--m-status--InsetInlineEnd);
|
|
114
136
|
--pf-v6-c-text-input-group--status__text-input--PaddingInlineEnd: var(--pf-v6-c-text-input-group--utilities--status__text-input--PaddingInlineEnd);
|
|
@@ -171,6 +193,7 @@
|
|
|
171
193
|
padding-block-end: var(--pf-v6-c-text-input-group__text-input--PaddingBlockEnd);
|
|
172
194
|
padding-inline-start: var(--pf-v6-c-text-input-group__text-input--PaddingInlineStart);
|
|
173
195
|
padding-inline-end: var(--pf-v6-c-text-input-group__text-input--PaddingInlineEnd);
|
|
196
|
+
color: var(--pf-v6-c-text-input-group__text-input--Color);
|
|
174
197
|
background-color: var(--pf-v6-c-text-input-group__text-input--BackgroundColor);
|
|
175
198
|
border: 0;
|
|
176
199
|
outline-offset: var(--pf-v6-c-text-input-group__text-input--OutlineOffset);
|