@patternfly/patternfly 6.0.0-alpha.226 → 6.0.0-alpha.228

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (204) hide show
  1. package/base/patternfly-variables.css +2 -2
  2. package/base/patternfly-variables.scss +2 -2
  3. package/components/AboutModalBox/about-modal-box.css +18 -13
  4. package/components/AboutModalBox/about-modal-box.scss +7 -8
  5. package/components/Accordion/accordion.css +2 -1
  6. package/components/Accordion/accordion.scss +1 -1
  7. package/components/ActionList/action-list.css +2 -1
  8. package/components/ActionList/action-list.scss +1 -1
  9. package/components/Alert/alert-group.css +2 -1
  10. package/components/Alert/alert-group.scss +1 -1
  11. package/components/Alert/alert.css +2 -1
  12. package/components/Alert/alert.scss +1 -1
  13. package/components/Avatar/avatar.css +2 -1
  14. package/components/Avatar/avatar.scss +1 -1
  15. package/components/BackToTop/back-to-top.css +4 -2
  16. package/components/BackToTop/back-to-top.scss +1 -1
  17. package/components/Backdrop/backdrop.css +2 -1
  18. package/components/Backdrop/backdrop.scss +1 -1
  19. package/components/BackgroundImage/background-image.css +2 -1
  20. package/components/BackgroundImage/background-image.scss +1 -1
  21. package/components/Badge/badge.css +2 -1
  22. package/components/Badge/badge.scss +1 -1
  23. package/components/Banner/banner.css +4 -2
  24. package/components/Banner/banner.scss +1 -1
  25. package/components/Brand/brand.css +2 -1
  26. package/components/Brand/brand.scss +1 -1
  27. package/components/Breadcrumb/breadcrumb.css +2 -1
  28. package/components/Breadcrumb/breadcrumb.scss +1 -1
  29. package/components/Button/button.css +2 -1
  30. package/components/Button/button.scss +1 -1
  31. package/components/CalendarMonth/calendar-month.css +2 -1
  32. package/components/CalendarMonth/calendar-month.scss +1 -1
  33. package/components/Card/card.css +2 -1
  34. package/components/Card/card.scss +1 -1
  35. package/components/Check/check.css +2 -1
  36. package/components/Check/check.scss +1 -1
  37. package/components/ClipboardCopy/clipboard-copy.css +2 -1
  38. package/components/ClipboardCopy/clipboard-copy.scss +1 -1
  39. package/components/CodeBlock/code-block.css +2 -1
  40. package/components/CodeBlock/code-block.scss +1 -1
  41. package/components/CodeEditor/code-editor.css +2 -1
  42. package/components/CodeEditor/code-editor.scss +1 -1
  43. package/components/Content/content.css +2 -1
  44. package/components/Content/content.scss +1 -1
  45. package/components/DataList/data-list.css +6 -3
  46. package/components/DataList/data-list.scss +1 -1
  47. package/components/DatePicker/date-picker.css +2 -1
  48. package/components/DatePicker/date-picker.scss +1 -1
  49. package/components/DescriptionList/description-list.css +14 -7
  50. package/components/DescriptionList/description-list.scss +1 -1
  51. package/components/Divider/divider.css +2 -1
  52. package/components/Divider/divider.scss +1 -1
  53. package/components/DragDrop/drag-drop.css +4 -2
  54. package/components/DragDrop/drag-drop.scss +2 -2
  55. package/components/Drawer/drawer.css +6 -3
  56. package/components/Drawer/drawer.scss +1 -1
  57. package/components/DualListSelector/dual-list-selector.css +2 -1
  58. package/components/DualListSelector/dual-list-selector.scss +1 -1
  59. package/components/EmptyState/empty-state.css +2 -1
  60. package/components/EmptyState/empty-state.scss +1 -1
  61. package/components/ExpandableSection/expandable-section.css +2 -1
  62. package/components/ExpandableSection/expandable-section.scss +1 -1
  63. package/components/FileUpload/file-upload.css +2 -1
  64. package/components/FileUpload/file-upload.scss +1 -1
  65. package/components/Form/form.css +2 -1
  66. package/components/Form/form.scss +1 -1
  67. package/components/FormControl/form-control.css +2 -1
  68. package/components/FormControl/form-control.scss +1 -1
  69. package/components/HelperText/helper-text.css +2 -1
  70. package/components/HelperText/helper-text.scss +1 -1
  71. package/components/Hint/hint.css +2 -1
  72. package/components/Hint/hint.scss +1 -1
  73. package/components/Icon/icon.css +2 -1
  74. package/components/Icon/icon.scss +1 -1
  75. package/components/InlineEdit/inline-edit.css +2 -1
  76. package/components/InlineEdit/inline-edit.scss +1 -1
  77. package/components/InputGroup/input-group.css +2 -1
  78. package/components/InputGroup/input-group.scss +1 -1
  79. package/components/JumpLinks/jump-links.css +2 -1
  80. package/components/JumpLinks/jump-links.scss +1 -1
  81. package/components/Label/label-group.css +2 -1
  82. package/components/Label/label-group.scss +1 -1
  83. package/components/Label/label.css +2 -1
  84. package/components/Label/label.scss +1 -1
  85. package/components/List/list.css +2 -1
  86. package/components/List/list.scss +1 -1
  87. package/components/Login/login.css +18 -9
  88. package/components/Login/login.scss +1 -1
  89. package/components/Masthead/masthead.css +2 -1
  90. package/components/Masthead/masthead.scss +1 -1
  91. package/components/Menu/menu.css +2 -1
  92. package/components/Menu/menu.scss +1 -1
  93. package/components/MenuToggle/menu-toggle.css +2 -1
  94. package/components/MenuToggle/menu-toggle.scss +1 -1
  95. package/components/ModalBox/modal-box.css +4 -2
  96. package/components/ModalBox/modal-box.scss +1 -1
  97. package/components/MultipleFileUpload/multiple-file-upload.css +2 -1
  98. package/components/MultipleFileUpload/multiple-file-upload.scss +1 -1
  99. package/components/Nav/nav.css +2 -1
  100. package/components/Nav/nav.scss +1 -1
  101. package/components/NotificationDrawer/notification-drawer.css +2 -1
  102. package/components/NotificationDrawer/notification-drawer.scss +1 -1
  103. package/components/NumberInput/number-input.css +2 -1
  104. package/components/NumberInput/number-input.scss +1 -1
  105. package/components/OverflowMenu/overflow-menu.css +2 -1
  106. package/components/OverflowMenu/overflow-menu.scss +1 -1
  107. package/components/Page/page.css +4 -2
  108. package/components/Page/page.scss +1 -1
  109. package/components/Pagination/pagination.css +6 -3
  110. package/components/Pagination/pagination.scss +1 -1
  111. package/components/Panel/panel.css +2 -1
  112. package/components/Panel/panel.scss +1 -1
  113. package/components/Popover/popover.css +2 -1
  114. package/components/Popover/popover.scss +1 -1
  115. package/components/Progress/progress.css +2 -1
  116. package/components/Progress/progress.scss +1 -1
  117. package/components/ProgressStepper/progress-stepper.css +4 -2
  118. package/components/ProgressStepper/progress-stepper.scss +1 -1
  119. package/components/Radio/radio.css +2 -1
  120. package/components/Radio/radio.scss +1 -1
  121. package/components/Sidebar/sidebar.css +2 -1
  122. package/components/Sidebar/sidebar.scss +1 -1
  123. package/components/SimpleList/simple-list.css +2 -1
  124. package/components/SimpleList/simple-list.scss +1 -1
  125. package/components/Skeleton/skeleton.css +2 -1
  126. package/components/Skeleton/skeleton.scss +1 -1
  127. package/components/SkipToContent/skip-to-content.css +2 -1
  128. package/components/SkipToContent/skip-to-content.scss +1 -1
  129. package/components/Slider/slider.css +2 -1
  130. package/components/Slider/slider.scss +1 -1
  131. package/components/Spinner/spinner.css +2 -1
  132. package/components/Spinner/spinner.scss +1 -1
  133. package/components/Switch/switch.css +2 -1
  134. package/components/Switch/switch.scss +1 -1
  135. package/components/TabContent/tab-content.css +2 -1
  136. package/components/TabContent/tab-content.scss +1 -1
  137. package/components/Table/table-grid.css +2 -1
  138. package/components/Table/table-grid.scss +1 -1
  139. package/components/Table/table-scrollable.css +2 -1
  140. package/components/Table/table-scrollable.scss +1 -1
  141. package/components/Table/table-tree-view.css +2 -1
  142. package/components/Table/table-tree-view.scss +1 -1
  143. package/components/Table/table.css +41 -35
  144. package/components/Table/table.scss +49 -46
  145. package/components/Tabs/tabs.css +2 -1
  146. package/components/Tabs/tabs.scss +1 -1
  147. package/components/TextInputGroup/text-input-group.css +2 -1
  148. package/components/TextInputGroup/text-input-group.scss +1 -1
  149. package/components/Tile/tile.css +2 -1
  150. package/components/Tile/tile.scss +1 -1
  151. package/components/Timestamp/timestamp.css +2 -1
  152. package/components/Timestamp/timestamp.scss +1 -1
  153. package/components/Title/title.css +2 -1
  154. package/components/Title/title.scss +1 -1
  155. package/components/ToggleGroup/toggle-group.css +2 -1
  156. package/components/ToggleGroup/toggle-group.scss +1 -1
  157. package/components/Toolbar/toolbar.css +2 -1
  158. package/components/Toolbar/toolbar.scss +1 -1
  159. package/components/Tooltip/tooltip.css +2 -1
  160. package/components/Tooltip/tooltip.scss +1 -1
  161. package/components/TreeView/tree-view.css +2 -1
  162. package/components/TreeView/tree-view.scss +1 -1
  163. package/components/Truncate/truncate.css +2 -1
  164. package/components/Truncate/truncate.scss +1 -1
  165. package/components/Wizard/wizard.css +4 -2
  166. package/components/Wizard/wizard.scss +1 -1
  167. package/components/_index.css +273 -155
  168. package/docs/components/Check/examples/Check.md +10 -15
  169. package/docs/components/DataList/examples/DataList.md +0 -13
  170. package/docs/components/InlineEdit/examples/InlineEdit.md +34 -7
  171. package/docs/components/Menu/examples/Menu.md +3 -12
  172. package/docs/components/Table/examples/Table.md +3796 -1216
  173. package/docs/components/Toolbar/examples/Toolbar.md +0 -5
  174. package/docs/demos/Card/examples/Card.md +38 -14
  175. package/docs/demos/CardView/examples/CardView.md +0 -1
  176. package/docs/demos/DataList/examples/DataList.md +65 -53
  177. package/docs/demos/DescriptionList/examples/DescriptionList.md +30 -5
  178. package/docs/demos/PrimaryDetail/examples/PrimaryDetail.md +0 -1
  179. package/docs/demos/Table/examples/Table.md +1482 -548
  180. package/docs/demos/Tabs/examples/Tabs.md +66 -48
  181. package/docs/demos/Toolbar/examples/Toolbar.md +176 -58
  182. package/layouts/Bullseye/bullseye.css +2 -1
  183. package/layouts/Bullseye/bullseye.scss +1 -1
  184. package/layouts/Flex/flex.css +2 -1
  185. package/layouts/Flex/flex.scss +1 -1
  186. package/layouts/Gallery/gallery.css +2 -1
  187. package/layouts/Gallery/gallery.scss +1 -1
  188. package/layouts/Grid/grid.css +2 -1
  189. package/layouts/Grid/grid.scss +1 -1
  190. package/layouts/Level/level.css +2 -1
  191. package/layouts/Level/level.scss +1 -1
  192. package/layouts/Split/split.css +2 -1
  193. package/layouts/Split/split.scss +1 -1
  194. package/layouts/Stack/stack.css +2 -1
  195. package/layouts/Stack/stack.scss +1 -1
  196. package/layouts/_index.css +14 -7
  197. package/package.json +1 -1
  198. package/patternfly-base-no-globals.css +2 -2
  199. package/patternfly-base.css +2 -2
  200. package/patternfly-no-globals.css +289 -164
  201. package/patternfly.css +289 -164
  202. package/patternfly.min.css +1 -1
  203. package/patternfly.min.css.map +1 -1
  204. package/sass-utilities/mixins.scss +7 -0
@@ -5,7 +5,7 @@ $pf-page-v6--breakpoint-map: build-breakpoint-map("base", "sm", "md", "lg", "xl"
5
5
  $pf-page-v6--height-breakpoint-map: build-breakpoint-map("base", "sm", "md", "lg", "xl", "2xl");
6
6
  // stylelint-enable
7
7
 
8
- :where(:root, .#{$page}) {
8
+ @include pf-root($page) {
9
9
  --#{$page}--BackgroundColor: var(--pf-t--global--background--color--secondary--default);
10
10
  --#{$page}--inset: var(--pf-t--global--spacer--inset--page-chrome);
11
11
 
@@ -1,4 +1,5 @@
1
- :where(:root, .pf-v6-c-pagination) {
1
+ :root,
2
+ .pf-v6-c-pagination {
2
3
  --pf-v6-c-pagination--inset: 0;
3
4
  --pf-v6-c-pagination--ColumnGap: var(--pf-t--global--spacer--lg);
4
5
  --pf-v6-c-pagination--m-page-insets--inset: var(--pf-t--global--spacer--lg);
@@ -36,7 +37,8 @@
36
37
  --pf-v6-c-pagination__page-menu--md--Display: var(--pf-v6-c-pagination__page-menu--Display--base);
37
38
  }
38
39
  @media screen and (min-width: 48rem) {
39
- :where(:root, .pf-v6-c-pagination) {
40
+ :root,
41
+ .pf-v6-c-pagination {
40
42
  --pf-v6-c-pagination--m-bottom--BoxShadow: none;
41
43
  --pf-v6-c-pagination__page-menu--Display: var(--pf-v6-c-pagination__page-menu--md--Display);
42
44
  --pf-v6-c-pagination__nav--Display: inline-flex;
@@ -44,7 +46,8 @@
44
46
  }
45
47
  }
46
48
  @media screen and (min-width: 75rem) {
47
- :where(:root, .pf-v6-c-pagination) {
49
+ :root,
50
+ .pf-v6-c-pagination {
48
51
  --pf-v6-c-pagination__scroll-button--Width: var(--pf-v6-c-pagination__scroll-button--xl--Width);
49
52
  }
50
53
  }
@@ -3,7 +3,7 @@
3
3
  $pf-v6-c-pagination--breakpoint-map: build-breakpoint-map();
4
4
  $pf-v6-c-pagination--variable-map: build-spacer-map("none", "sm", "md", "lg", "xl", "2xl");
5
5
 
6
- :where(:root, .#{$pagination}) {
6
+ @include pf-root($pagination) {
7
7
  --#{$pagination}--inset: 0;
8
8
  --#{$pagination}--ColumnGap: var(--pf-t--global--spacer--lg);
9
9
 
@@ -1,4 +1,5 @@
1
- :where(:root, .pf-v6-c-panel) {
1
+ :root,
2
+ .pf-v6-c-panel {
2
3
  --pf-v6-c-panel--Width: auto;
3
4
  --pf-v6-c-panel--MinWidth: auto;
4
5
  --pf-v6-c-panel--MaxWidth: none;
@@ -1,6 +1,6 @@
1
1
  @use '../../sass-utilities' as *;
2
2
 
3
- :where(:root, .#{$panel}) {
3
+ @include pf-root($panel) {
4
4
  --#{$panel}--Width: auto;
5
5
  --#{$panel}--MinWidth: auto;
6
6
  --#{$panel}--MaxWidth: none;
@@ -1,4 +1,5 @@
1
- :where(:root, .pf-v6-c-popover) {
1
+ :root,
2
+ .pf-v6-c-popover {
2
3
  --pf-v6-c-popover--FontSize: var(--pf-t--global--font--size--body--sm);
3
4
  --pf-v6-c-popover--MinWidth: calc(var(--pf-v6-c-popover__content--PaddingInlineStart) + var(--pf-v6-c-popover__content--PaddingInlineEnd) + 18.75rem);
4
5
  --pf-v6-c-popover--MaxWidth: calc(var(--pf-v6-c-popover__content--PaddingInlineStart) + var(--pf-v6-c-popover__content--PaddingInlineEnd) + 18.75rem);
@@ -1,6 +1,6 @@
1
1
  @use '../../sass-utilities' as *;
2
2
 
3
- :where(:root, .#{$popover}) {
3
+ @include pf-root($popover) {
4
4
  // Component
5
5
  --#{$popover}--FontSize: var(--pf-t--global--font--size--body--sm);
6
6
  --#{$popover}--MinWidth: calc(var(--#{$popover}__content--PaddingInlineStart) + var(--#{$popover}__content--PaddingInlineEnd) + #{pf-size-prem(300px)});
@@ -1,4 +1,5 @@
1
- :where(:root, .pf-v6-c-progress) {
1
+ :root,
2
+ .pf-v6-c-progress {
2
3
  --pf-v6-c-progress--GridGap: var(--pf-t--global--spacer--md);
3
4
  --pf-v6-c-progress__bar--Height: var(--pf-t--global--spacer--md);
4
5
  --pf-v6-c-progress__bar--BackgroundColor: var(--pf-t--global--color--nonstatus--gray--default);
@@ -1,6 +1,6 @@
1
1
  @use '../../sass-utilities' as *;
2
2
 
3
- :where(:root, .#{$progress}) {
3
+ @include pf-root($progress) {
4
4
  // Component variables
5
5
  --#{$progress}--GridGap: var(--pf-t--global--spacer--md);
6
6
 
@@ -1,4 +1,5 @@
1
- :where(:root, .pf-v6-c-progress-stepper) {
1
+ :root,
2
+ .pf-v6-c-progress-stepper {
2
3
  --pf-v6-c-progress-stepper--m-vertical--GridAutoFlow: row;
3
4
  --pf-v6-c-progress-stepper--m-vertical--GridTemplateColumns: auto 1fr;
4
5
  --pf-v6-c-progress-stepper--m-vertical__step-connector--before--InsetBlockStart: 0;
@@ -119,7 +120,8 @@
119
120
  --pf-v6-c-progress-stepper--m-center__step-main--before--Content: "";
120
121
  }
121
122
  @media screen and (min-width: 48rem) {
122
- :where(:root, .pf-v6-c-progress-stepper) {
123
+ :root,
124
+ .pf-v6-c-progress-stepper {
123
125
  --pf-v6-c-progress-stepper--GridAutoFlow: var(--pf-v6-c-progress-stepper--m-horizontal--GridAutoFlow);
124
126
  --pf-v6-c-progress-stepper--GridTemplateColumns: var(--pf-v6-c-progress-stepper--m-horizontal--GridTemplateColumns);
125
127
  --pf-v6-c-progress-stepper__step-connector--before--InsetBlockStart: var(--pf-v6-c-progress-stepper--m-horizontal__step-connector--before--InsetBlockStart);
@@ -58,7 +58,7 @@ $pf-v6-c-progress-stepper--breakpoint-map: build-breakpoint-map();
58
58
  }
59
59
 
60
60
  // Progress stepper is vertically oriented by default
61
- :where(:root, .#{$progress-stepper}) {
61
+ @include pf-root($progress-stepper) {
62
62
  // Vertical - these are the default settings
63
63
  --#{$progress-stepper}--m-vertical--GridAutoFlow: row;
64
64
  --#{$progress-stepper}--m-vertical--GridTemplateColumns: auto 1fr;
@@ -1,4 +1,5 @@
1
- :where(:root, .pf-v6-c-radio) {
1
+ :root,
2
+ .pf-v6-c-radio {
2
3
  --pf-v6-c-radio--GridGap: var(--pf-t--global--spacer--sm) var(--pf-t--global--spacer--sm);
3
4
  --pf-v6-c-radio--AccentColor: var(--pf-t--global--icon--color--brand--default);
4
5
  --pf-v6-c-radio--Height: calc(var(--pf-v6-c-radio__label--FontSize) * var(--pf-v6-c-radio__label--LineHeight));
@@ -1,6 +1,6 @@
1
1
  @use '../../sass-utilities' as *;
2
2
 
3
- :where(:root, .#{$radio}) {
3
+ @include pf-root($radio) {
4
4
  --#{$radio}--GridGap: var(--pf-t--global--spacer--sm) var(--pf-t--global--spacer--sm);
5
5
  --#{$radio}--AccentColor: var(--pf-t--global--icon--color--brand--default);
6
6
  --#{$radio}--Height: calc(var(--#{$radio}__label--FontSize) * var(--#{$radio}__label--LineHeight));
@@ -1,4 +1,5 @@
1
- :where(:root, .pf-v6-c-sidebar) {
1
+ :root,
2
+ .pf-v6-c-sidebar {
2
3
  --pf-v6-c-sidebar--inset: var(--pf-t--global--spacer--md);
3
4
  --pf-v6-c-sidebar--xl--inset: var(--pf-t--global--spacer--lg);
4
5
  --pf-v6-c-sidebar--BorderWidth--base: var(--pf-t--global--border--width--regular);
@@ -4,7 +4,7 @@
4
4
  $pf-v6-c-sidebar--breakpoint-map--width: build-breakpoint-map("base", "sm", "md", "lg", "xl", "2xl");
5
5
  $pf-v6-c-sidebar__panel--list--width: ("default", 25, 33, 50, 66, 75, 100);
6
6
 
7
- :where(:root, .#{$sidebar}) {
7
+ @include pf-root($sidebar) {
8
8
  --#{$sidebar}--inset: var(--pf-t--global--spacer--md);
9
9
  --#{$sidebar}--xl--inset: var(--pf-t--global--spacer--lg);
10
10
  --#{$sidebar}--BorderWidth--base: var(--pf-t--global--border--width--regular);
@@ -1,4 +1,5 @@
1
- :where(:root, .pf-v6-c-simple-list) {
1
+ :root,
2
+ .pf-v6-c-simple-list {
2
3
  --pf-v6-c-simple-list__item-link--PaddingBlockStart: var(--pf-t--global--spacer--xs);
3
4
  --pf-v6-c-simple-list__item-link--PaddingInlineEnd: var(--pf-t--global--spacer--md);
4
5
  --pf-v6-c-simple-list__item-link--PaddingBlockEnd: var(--pf-t--global--spacer--xs);
@@ -1,6 +1,6 @@
1
1
  @use '../../sass-utilities' as *;
2
2
 
3
- :where(:root, .#{$simple-list}) {
3
+ @include pf-root($simple-list) {
4
4
  // Simple list item link
5
5
  --#{$simple-list}__item-link--PaddingBlockStart: var(--pf-t--global--spacer--xs);
6
6
  --#{$simple-list}__item-link--PaddingInlineEnd: var(--pf-t--global--spacer--md);
@@ -1,5 +1,6 @@
1
1
  @charset "UTF-8";
2
- :where(:root, .pf-v6-c-skeleton) {
2
+ :root,
3
+ .pf-v6-c-skeleton {
3
4
  --pf-v6-c-skeleton--BackgroundColor: var(--pf-t--global--background--color--secondary--default);
4
5
  --pf-v6-c-skeleton--Width: auto;
5
6
  --pf-v6-c-skeleton--Height: auto;
@@ -1,6 +1,6 @@
1
1
  @use '../../sass-utilities' as *;
2
2
 
3
- :where(:root, .#{$skeleton}) {
3
+ @include pf-root($skeleton) {
4
4
  --#{$skeleton}--BackgroundColor: var(--pf-t--global--background--color--secondary--default);
5
5
  --#{$skeleton}--Width: auto;
6
6
  --#{$skeleton}--Height: auto;
@@ -1,4 +1,5 @@
1
- :where(:root, .pf-v6-c-skip-to-content) {
1
+ :root,
2
+ .pf-v6-c-skip-to-content {
2
3
  --pf-v6-c-skip-to-content--InsetBlockStart: var(--pf-t--global--spacer--md);
3
4
  --pf-v6-c-skip-to-content--ZIndex: var(--pf-t--global--z-index--2xl);
4
5
  --pf-v6-c-skip-to-content--focus--InsetInlineStart: var(--pf-t--global--spacer--md);
@@ -1,6 +1,6 @@
1
1
  @use '../../sass-utilities' as *;
2
2
 
3
- :where(:root, .#{$skip-to-content}) {
3
+ @include pf-root($skip-to-content) {
4
4
  --#{$skip-to-content}--InsetBlockStart: var(--pf-t--global--spacer--md);
5
5
  --#{$skip-to-content}--ZIndex: var(--pf-t--global--z-index--2xl);
6
6
  --#{$skip-to-content}--focus--InsetInlineStart: var(--pf-t--global--spacer--md);
@@ -1,4 +1,5 @@
1
- :where(:root, .pf-v6-c-slider) {
1
+ :root,
2
+ .pf-v6-c-slider {
2
3
  --pf-v6-c-slider--value: 0;
3
4
  --pf-v6-c-slider__step--InsetInlineStart: 0;
4
5
  --pf-v6-c-slider__rail--PaddingBlockStart: var(--pf-t--global--spacer--md);
@@ -1,6 +1,6 @@
1
1
  @use '../../sass-utilities' as *;
2
2
 
3
- :where(:root, .#{$slider}) {
3
+ @include pf-root($slider) {
4
4
  --#{$slider}--value: 0; // should always be set inline
5
5
  --#{$slider}__step--InsetInlineStart: 0; // should always be set inline
6
6
 
@@ -1,4 +1,5 @@
1
- :where(:root, .pf-v6-c-spinner) {
1
+ :root,
2
+ .pf-v6-c-spinner {
2
3
  --pf-v6-c-spinner--diameter: var(--pf-t--global--icon--size--2xl);
3
4
  --pf-v6-c-spinner--Width: var(--pf-v6-c-spinner--diameter);
4
5
  --pf-v6-c-spinner--Height: var(--pf-v6-c-spinner--diameter);
@@ -1,6 +1,6 @@
1
1
  @use '../../sass-utilities' as *;
2
2
 
3
- :where(:root, .#{$spinner}) {
3
+ @include pf-root($spinner) {
4
4
  --#{$spinner}--diameter: var(--pf-t--global--icon--size--2xl);
5
5
  --#{$spinner}--Width: var(--#{$spinner}--diameter);
6
6
  --#{$spinner}--Height: var(--#{$spinner}--diameter);
@@ -1,4 +1,5 @@
1
- :where(:root, .pf-v6-c-switch) {
1
+ :root,
2
+ .pf-v6-c-switch {
2
3
  --pf-v6-c-switch--FontSize: var(--pf-t--global--font--size--sm);
3
4
  --pf-v6-c-switch--ColumnGap: var(--pf-t--global--spacer--sm);
4
5
  --pf-v6-c-switch__toggle-icon--FontSize: calc(var(--pf-v6-c-switch--FontSize) * .625);
@@ -1,6 +1,6 @@
1
1
  @use '../../sass-utilities' as *;
2
2
 
3
- :where(:root, .#{$switch}) {
3
+ @include pf-root($switch) {
4
4
  // Switch - the vars for this file don't follow our normal order so that the IE11 script can convert the vars correctly
5
5
  --#{$switch}--FontSize: var(--pf-t--global--font--size--sm);
6
6
  --#{$switch}--ColumnGap: var(--pf-t--global--spacer--sm);
@@ -1,4 +1,5 @@
1
- :where(:root, .pf-v6-c-tab-content) {
1
+ :root,
2
+ .pf-v6-c-tab-content {
2
3
  --pf-v6-c-tab-content__body--PaddingBlockStart: 0;
3
4
  --pf-v6-c-tab-content__body--PaddingInlineEnd: 0;
4
5
  --pf-v6-c-tab-content__body--PaddingBlockEnd: 0;
@@ -1,6 +1,6 @@
1
1
  @use '../../sass-utilities' as *;
2
2
 
3
- :where(:root, .#{$tab-content}) {
3
+ @include pf-root($tab-content) {
4
4
  --#{$tab-content}__body--PaddingBlockStart: 0;
5
5
  --#{$tab-content}__body--PaddingInlineEnd: 0;
6
6
  --#{$tab-content}__body--PaddingBlockEnd: 0;
@@ -1,4 +1,5 @@
1
- :where(:root, .pf-v6-c-table[class*=pf-m-grid]) {
1
+ :root,
2
+ .pf-v6-c-table {
2
3
  --pf-v6-c-table--responsive--BorderColor: var(--pf-t--global--border--color--default);
3
4
  --pf-v6-c-table__tbody--responsive--border-width--base: var(--pf-t--global--border--width--divider--default);
4
5
  --pf-v6-c-table__tbody--after--border-width--base: var(--pf-t--global--border--width--extra-strong);
@@ -32,7 +32,7 @@
32
32
  }
33
33
 
34
34
  // - Table grid
35
- :where(:root, .#{$table}[class*="pf-m-grid"]) {
35
+ @include pf-root($table, '[class*="pf-m-grid"]') {
36
36
  // ============================================================ //
37
37
  // Start non-conformant variables
38
38
  //
@@ -1,4 +1,5 @@
1
- :where(:root, .pf-v6-c-table) {
1
+ :root,
2
+ .pf-v6-c-table {
2
3
  --pf-v6-c-table__sticky-cell--MinWidth--base: 8.75rem;
3
4
  --pf-v6-c-table__sticky-cell--MinWidth: var(--pf-v6-c-table__sticky-cell--MinWidth--base);
4
5
  --pf-v6-c-table__sticky-cell--ZIndex: var(--pf-t--global--z-index--xs);
@@ -1,7 +1,7 @@
1
1
  @use '../../sass-utilities' as *;
2
2
 
3
3
  // * Table scrollable
4
- :where(:root, .#{$table}) {
4
+ @include pf-root($table) {
5
5
  --#{$table}__sticky-cell--MinWidth--base: #{pf-size-prem(140px)};
6
6
  --#{$table}__sticky-cell--MinWidth: var(--#{$table}__sticky-cell--MinWidth--base);
7
7
  --#{$table}__sticky-cell--ZIndex: var(--pf-t--global--z-index--xs);
@@ -1,4 +1,5 @@
1
- :where(:root, .pf-v6-c-table) {
1
+ :root,
2
+ .pf-v6-c-table {
2
3
  --pf-v6-c-table__tree-view-main--indent--base: calc(var(--pf-t--global--spacer--md) * 2 + var(--pf-v6-c-table__tree-view-icon--MinWidth));
3
4
  --pf-v6-c-table__tree-view-main--nested-indent--base: calc(var(--pf-v6-c-table__tree-view-main--indent--base) - var(--pf-t--global--spacer--md));
4
5
  --pf-v6-c-table__tree-view-main--c-button--MarginInlineEnd: var(--pf-t--global--spacer--sm);
@@ -3,7 +3,7 @@
3
3
  $pf-v6-c-tree-view--MaxDepth: 10;
4
4
 
5
5
  // * Table tree view
6
- :where(:root, .#{$table}) {
6
+ @include pf-root($table) {
7
7
  --#{$table}__tree-view-main--indent--base: calc(var(--pf-t--global--spacer--md) * 2 + var(--#{$table}__tree-view-icon--MinWidth)); // based off of the expected width of the toggle button
8
8
  --#{$table}__tree-view-main--nested-indent--base: calc(var(--#{$table}__tree-view-main--indent--base) - var(--pf-t--global--spacer--md)); // nested spacing that removes the toggle button's left padding, so the icon aligns with text on the node above it
9
9
 
@@ -1,4 +1,5 @@
1
- :where(:root, .pf-v6-c-table) {
1
+ :root,
2
+ .pf-v6-c-table {
2
3
  --pf-v6-c-table--BackgroundColor: var(--pf-t--global--background--color--primary--default);
3
4
  --pf-v6-c-table--BorderColor: var(--pf-t--global--border--color--default);
4
5
  --pf-v6-c-table--border-width--base: var(--pf-t--global--border--width--divider--default);
@@ -300,6 +301,11 @@
300
301
  .pf-v6-c-table thead:where(.pf-v6-c-table__thead) {
301
302
  --pf-v6-c-table--cell--FontSize: var(--pf-v6-c-table__thead--cell--FontSize);
302
303
  --pf-v6-c-table--cell--FontWeight: var(--pf-v6-c-table__thead--cell--FontWeight);
304
+ --pf-v6-c-table--cell--MinWidth: var(--pf-v6-c-table--m-truncate--cell--MinWidth);
305
+ --pf-v6-c-table--cell--MaxWidth: var(--pf-v6-c-table--m-truncate--cell--MaxWidth);
306
+ --pf-v6-c-table--cell--Overflow: hidden;
307
+ --pf-v6-c-table--cell--TextOverflow: ellipsis;
308
+ --pf-v6-c-table--cell--WhiteSpace: nowrap;
303
309
  }
304
310
  .pf-v6-c-table thead:where(.pf-v6-c-table__thead).pf-m-nested-column-header button:where(.pf-v6-c-button) {
305
311
  outline-offset: var(--pf-v6-c-table__thead--m-nested-column-header--button--OutlineOffset);
@@ -326,40 +332,6 @@
326
332
  .pf-v6-c-table :where(.pf-v6-c-table__th, .pf-v6-c-table__td).pf-m-help {
327
333
  min-width: var(--pf-v6-c-table__th--m-help--MinWidth);
328
334
  }
329
- .pf-v6-c-table > thead, .pf-v6-c-table :where([class*=pf-v6-c-table]).pf-m-truncate, :where(.pf-v6-c-table) > :is(thead, tbody).pf-m-truncate {
330
- --pf-v6-c-table--cell--MinWidth: var(--pf-v6-c-table--m-truncate--cell--MinWidth);
331
- --pf-v6-c-table--cell--MaxWidth: var(--pf-v6-c-table--m-truncate--cell--MaxWidth);
332
- --pf-v6-c-table--cell--Overflow: hidden;
333
- --pf-v6-c-table--cell--TextOverflow: ellipsis;
334
- --pf-v6-c-table--cell--WhiteSpace: nowrap;
335
- }
336
-
337
- .pf-v6-c-table :where([class*=pf-v6-c-table]).pf-m-wrap, :where(.pf-v6-c-table) > :is(thead, tbody).pf-m-wrap {
338
- --pf-v6-c-table--cell--MinWidth: 0;
339
- --pf-v6-c-table--cell--MaxWidth: none;
340
- --pf-v6-c-table--cell--Overflow: visible;
341
- --pf-v6-c-table--cell--TextOverflow: clip;
342
- --pf-v6-c-table--cell--WhiteSpace: normal;
343
- }
344
- .pf-v6-c-table :where([class*=pf-v6-c-table]).pf-m-nowrap, :where(.pf-v6-c-table) > :is(thead, tbody).pf-m-nowrap {
345
- --pf-v6-c-table--cell--MinWidth: 0;
346
- --pf-v6-c-table--cell--MaxWidth: none;
347
- --pf-v6-c-table--cell--Overflow: visible;
348
- --pf-v6-c-table--cell--TextOverflow: clip;
349
- --pf-v6-c-table--cell--WhiteSpace: nowrap;
350
- }
351
- .pf-v6-c-table :where([class*=pf-v6-c-table]) .pf-v6-c-table__icon, .pf-v6-c-table :where([class*=pf-v6-c-table]).pf-m-fit-content, :where(.pf-v6-c-table) > :is(thead, tbody) .pf-v6-c-table__icon, :where(.pf-v6-c-table) > :is(thead, tbody).pf-m-fit-content {
352
- --pf-v6-c-table--cell--MinWidth: fit-content;
353
- --pf-v6-c-table--cell--MaxWidth: none;
354
- --pf-v6-c-table--cell--Width: 1%;
355
- --pf-v6-c-table--cell--Overflow: visible;
356
- --pf-v6-c-table--cell--TextOverflow: clip;
357
- --pf-v6-c-table--cell--WhiteSpace: nowrap;
358
- }
359
- .pf-v6-c-table :where([class*=pf-v6-c-table]).pf-m-break-word, :where(.pf-v6-c-table) > :is(thead, tbody).pf-m-break-word {
360
- --pf-v6-c-table--cell--WordBreak: break-word;
361
- --pf-v6-c-table--cell--WhiteSpace: normal;
362
- }
363
335
  .pf-v6-c-table.pf-m-no-border-rows > tbody:where(.pf-v6-c-table__tbody) {
364
336
  --pf-v6-c-table__tr--BorderBlockEndWidth: 0;
365
337
  --pf-v6-c-table__tbody--BorderBlockEndWidth: 0;
@@ -423,6 +395,40 @@
423
395
  --pf-v6-c-table__sort-indicator--MarginInlineStart: 0;
424
396
  }
425
397
 
398
+ [class*=pf-v6-c-table].pf-m-truncate {
399
+ --pf-v6-c-table--cell--MinWidth: var(--pf-v6-c-table--m-truncate--cell--MinWidth);
400
+ --pf-v6-c-table--cell--MaxWidth: var(--pf-v6-c-table--m-truncate--cell--MaxWidth);
401
+ --pf-v6-c-table--cell--Overflow: hidden;
402
+ --pf-v6-c-table--cell--TextOverflow: ellipsis;
403
+ --pf-v6-c-table--cell--WhiteSpace: nowrap;
404
+ }
405
+ [class*=pf-v6-c-table].pf-m-wrap {
406
+ --pf-v6-c-table--cell--MinWidth: 0;
407
+ --pf-v6-c-table--cell--MaxWidth: none;
408
+ --pf-v6-c-table--cell--Overflow: visible;
409
+ --pf-v6-c-table--cell--TextOverflow: clip;
410
+ --pf-v6-c-table--cell--WhiteSpace: normal;
411
+ }
412
+ [class*=pf-v6-c-table].pf-m-nowrap {
413
+ --pf-v6-c-table--cell--MinWidth: 0;
414
+ --pf-v6-c-table--cell--MaxWidth: none;
415
+ --pf-v6-c-table--cell--Overflow: visible;
416
+ --pf-v6-c-table--cell--TextOverflow: clip;
417
+ --pf-v6-c-table--cell--WhiteSpace: nowrap;
418
+ }
419
+ [class*=pf-v6-c-table] .pf-v6-c-table__icon, [class*=pf-v6-c-table].pf-m-fit-content {
420
+ --pf-v6-c-table--cell--MinWidth: fit-content;
421
+ --pf-v6-c-table--cell--MaxWidth: none;
422
+ --pf-v6-c-table--cell--Width: 1%;
423
+ --pf-v6-c-table--cell--Overflow: visible;
424
+ --pf-v6-c-table--cell--TextOverflow: clip;
425
+ --pf-v6-c-table--cell--WhiteSpace: nowrap;
426
+ }
427
+ [class*=pf-v6-c-table].pf-m-break-word {
428
+ --pf-v6-c-table--cell--WordBreak: break-word;
429
+ --pf-v6-c-table--cell--WhiteSpace: normal;
430
+ }
431
+
426
432
  .pf-v6-c-table__text {
427
433
  --pf-v6-c-table--cell--MaxWidth: 100%;
428
434
  position: relative;
@@ -3,7 +3,7 @@
3
3
  // TODO: clean up unused variables
4
4
  // TODO: update grouping comments to // * Table {element}
5
5
 
6
- :where(:root, .#{$table}) {
6
+ @include pf-root($table) {
7
7
  --#{$table}--BackgroundColor: var(--pf-t--global--background--color--primary--default);
8
8
  --#{$table}--BorderColor: var(--pf-t--global--border--color--default);
9
9
  --#{$table}--border-width--base: var(--pf-t--global--border--width--divider--default);
@@ -400,6 +400,11 @@
400
400
  thead:where(.#{$table}__thead) {
401
401
  --#{$table}--cell--FontSize: var(--#{$table}__thead--cell--FontSize);
402
402
  --#{$table}--cell--FontWeight: var(--#{$table}__thead--cell--FontWeight);
403
+ --#{$table}--cell--MinWidth: var(--#{$table}--m-truncate--cell--MinWidth);
404
+ --#{$table}--cell--MaxWidth: var(--#{$table}--m-truncate--cell--MaxWidth);
405
+ --#{$table}--cell--Overflow: hidden;
406
+ --#{$table}--cell--TextOverflow: ellipsis;
407
+ --#{$table}--cell--WhiteSpace: nowrap;
403
408
 
404
409
  // stylelint-disable
405
410
  &.pf-m-nested-column-header {
@@ -464,50 +469,6 @@
464
469
  }
465
470
  }
466
471
 
467
- // - Table truncate - Table wrap - Table nowrap - Table fit content - Table wrap - Table break word
468
- :where([class*='#{$table}']),
469
- :where(&) > :is(thead, tbody) {
470
- @at-root .#{$table} > thead,
471
- &.pf-m-truncate {
472
- --#{$table}--cell--MinWidth: var(--#{$table}--m-truncate--cell--MinWidth);
473
- --#{$table}--cell--MaxWidth: var(--#{$table}--m-truncate--cell--MaxWidth);
474
- --#{$table}--cell--Overflow: hidden;
475
- --#{$table}--cell--TextOverflow: ellipsis;
476
- --#{$table}--cell--WhiteSpace: nowrap;
477
- }
478
-
479
- &.pf-m-wrap {
480
- --#{$table}--cell--MinWidth: 0;
481
- --#{$table}--cell--MaxWidth: none;
482
- --#{$table}--cell--Overflow: visible;
483
- --#{$table}--cell--TextOverflow: clip;
484
- --#{$table}--cell--WhiteSpace: normal;
485
- }
486
-
487
- &.pf-m-nowrap {
488
- --#{$table}--cell--MinWidth: 0;
489
- --#{$table}--cell--MaxWidth: none;
490
- --#{$table}--cell--Overflow: visible;
491
- --#{$table}--cell--TextOverflow: clip;
492
- --#{$table}--cell--WhiteSpace: nowrap;
493
- }
494
-
495
- .#{$table}__icon,
496
- &.pf-m-fit-content {
497
- --#{$table}--cell--MinWidth: fit-content;
498
- --#{$table}--cell--MaxWidth: none;
499
- --#{$table}--cell--Width: 1%;
500
- --#{$table}--cell--Overflow: visible;
501
- --#{$table}--cell--TextOverflow: clip;
502
- --#{$table}--cell--WhiteSpace: nowrap;
503
- }
504
-
505
- &.pf-m-break-word {
506
- --#{$table}--cell--WordBreak: break-word;
507
- --#{$table}--cell--WhiteSpace: normal;
508
- }
509
- }
510
-
511
472
  // stylelint-disable selector-no-qualifying-type, selector-max-compound-selectors
512
473
  &.pf-m-no-border-rows > tbody:where(.#{$table}__tbody) {
513
474
  --#{$table}__tr--BorderBlockEndWidth: 0;
@@ -599,6 +560,48 @@
599
560
  }
600
561
  }
601
562
 
563
+ // - Table truncate - Table wrap - Table nowrap - Table fit content - Table wrap - Table break word
564
+ [class*='#{$table}'] {
565
+ &.pf-m-truncate {
566
+ --#{$table}--cell--MinWidth: var(--#{$table}--m-truncate--cell--MinWidth);
567
+ --#{$table}--cell--MaxWidth: var(--#{$table}--m-truncate--cell--MaxWidth);
568
+ --#{$table}--cell--Overflow: hidden;
569
+ --#{$table}--cell--TextOverflow: ellipsis;
570
+ --#{$table}--cell--WhiteSpace: nowrap;
571
+ }
572
+
573
+ &.pf-m-wrap {
574
+ --#{$table}--cell--MinWidth: 0;
575
+ --#{$table}--cell--MaxWidth: none;
576
+ --#{$table}--cell--Overflow: visible;
577
+ --#{$table}--cell--TextOverflow: clip;
578
+ --#{$table}--cell--WhiteSpace: normal;
579
+ }
580
+
581
+ &.pf-m-nowrap {
582
+ --#{$table}--cell--MinWidth: 0;
583
+ --#{$table}--cell--MaxWidth: none;
584
+ --#{$table}--cell--Overflow: visible;
585
+ --#{$table}--cell--TextOverflow: clip;
586
+ --#{$table}--cell--WhiteSpace: nowrap;
587
+ }
588
+
589
+ .#{$table}__icon,
590
+ &.pf-m-fit-content {
591
+ --#{$table}--cell--MinWidth: fit-content;
592
+ --#{$table}--cell--MaxWidth: none;
593
+ --#{$table}--cell--Width: 1%;
594
+ --#{$table}--cell--Overflow: visible;
595
+ --#{$table}--cell--TextOverflow: clip;
596
+ --#{$table}--cell--WhiteSpace: nowrap;
597
+ }
598
+
599
+ &.pf-m-break-word {
600
+ --#{$table}--cell--WordBreak: break-word;
601
+ --#{$table}--cell--WhiteSpace: normal;
602
+ }
603
+ }
604
+
602
605
  // - Table text
603
606
  .#{$table}__text {
604
607
  --#{$table}--cell--MaxWidth: 100%;
@@ -947,7 +950,7 @@
947
950
  }
948
951
 
949
952
  @at-root :not(.#{$table}__control-row) ~ .#{$table}__expandable-row {
950
- > .#{$table}__th,
953
+ > .#{$table}__th,
951
954
  > .#{$table}__td {
952
955
  padding-block-start: 0;
953
956
  }
@@ -1,4 +1,5 @@
1
- :where(:root, .pf-v6-c-tabs) {
1
+ :root,
2
+ .pf-v6-c-tabs {
2
3
  --pf-v6-c-tabs--inset: 0;
3
4
  --pf-v6-c-tabs--Width: auto;
4
5
  --pf-v6-c-tabs--before--BorderColor: var(--pf-t--global--border--color--default);
@@ -3,7 +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
- :where(:root, .#{$tabs}) {
6
+ @include pf-root($tabs) {
7
7
  --#{$tabs}--inset: 0;
8
8
  --#{$tabs}--Width: auto;
9
9
  --#{$tabs}--before--BorderColor: var(--pf-t--global--border--color--default);
@@ -1,4 +1,5 @@
1
- :where(:root, .pf-v6-c-text-input-group) {
1
+ :root,
2
+ .pf-v6-c-text-input-group {
2
3
  --pf-v6-c-text-input-group--BackgroundColor: var(--pf-t--global--background--color--control--default);
3
4
  --pf-v6-c-text-input-group--BorderColor: var(--pf-t--global--border--color--default);
4
5
  --pf-v6-c-text-input-group--m-success--BorderColor: var(--pf-t--global--border--color--status--success--default);
@@ -1,6 +1,6 @@
1
1
  @use '../../sass-utilities' as *;
2
2
 
3
- :where(:root, .#{$text-input-group}) {
3
+ @include pf-root($text-input-group) {
4
4
  --#{$text-input-group}--BackgroundColor: var(--pf-t--global--background--color--control--default);
5
5
  --#{$text-input-group}--BorderColor: var(--pf-t--global--border--color--default);
6
6
  --#{$text-input-group}--m-success--BorderColor: var(--pf-t--global--border--color--status--success--default);
@@ -1,4 +1,5 @@
1
- :where(:root, .pf-v6-c-tile) {
1
+ :root,
2
+ .pf-v6-c-tile {
2
3
  --pf-v6-c-tile--PaddingBlockStart: var(--pf-t--global--spacer--lg);
3
4
  --pf-v6-c-tile--PaddingInlineEnd: var(--pf-t--global--spacer--lg);
4
5
  --pf-v6-c-tile--PaddingBlockEnd: var(--pf-t--global--spacer--lg);
@@ -1,6 +1,6 @@
1
1
  @use '../../sass-utilities' as *;
2
2
 
3
- :where(:root, .#{$tile}) {
3
+ @include pf-root($tile) {
4
4
  --#{$tile}--PaddingBlockStart: var(--pf-t--global--spacer--lg);
5
5
  --#{$tile}--PaddingInlineEnd: var(--pf-t--global--spacer--lg);
6
6
  --#{$tile}--PaddingBlockEnd: var(--pf-t--global--spacer--lg);
@@ -1,4 +1,5 @@
1
- :where(:root, .pf-v6-c-timestamp) {
1
+ :root,
2
+ .pf-v6-c-timestamp {
2
3
  --pf-v6-c-timestamp--FontSize: var(--pf-t--global--font--size--body--sm);
3
4
  --pf-v6-c-timestamp--Color: var(--pf-t--global--text--color--regular);
4
5
  --pf-v6-c-timestamp--OutlineOffset: 0.1875rem;
@@ -1,6 +1,6 @@
1
1
  @use '../../sass-utilities' as *;
2
2
 
3
- :where(:root, .#{$timestamp}) {
3
+ @include pf-root($timestamp) {
4
4
  --#{$timestamp}--FontSize: var(--pf-t--global--font--size--body--sm);
5
5
  --#{$timestamp}--Color: var(--pf-t--global--text--color--regular);
6
6
  --#{$timestamp}--OutlineOffset: #{pf-size-prem(3px)};