@patternfly/patternfly 6.0.0-alpha.227 → 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 (190) 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 +2 -1
  144. package/components/Table/table.scss +1 -1
  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 +234 -121
  168. package/layouts/Bullseye/bullseye.css +2 -1
  169. package/layouts/Bullseye/bullseye.scss +1 -1
  170. package/layouts/Flex/flex.css +2 -1
  171. package/layouts/Flex/flex.scss +1 -1
  172. package/layouts/Gallery/gallery.css +2 -1
  173. package/layouts/Gallery/gallery.scss +1 -1
  174. package/layouts/Grid/grid.css +2 -1
  175. package/layouts/Grid/grid.scss +1 -1
  176. package/layouts/Level/level.css +2 -1
  177. package/layouts/Level/level.scss +1 -1
  178. package/layouts/Split/split.css +2 -1
  179. package/layouts/Split/split.scss +1 -1
  180. package/layouts/Stack/stack.css +2 -1
  181. package/layouts/Stack/stack.scss +1 -1
  182. package/layouts/_index.css +14 -7
  183. package/package.json +1 -1
  184. package/patternfly-base-no-globals.css +2 -2
  185. package/patternfly-base.css +2 -2
  186. package/patternfly-no-globals.css +250 -130
  187. package/patternfly.css +250 -130
  188. package/patternfly.min.css +1 -1
  189. package/patternfly.min.css.map +1 -1
  190. 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);
@@ -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);
@@ -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)};
@@ -1,4 +1,5 @@
1
- :where(:root, .pf-v6-c-title) {
1
+ :root,
2
+ .pf-v6-c-title {
2
3
  --pf-v6-c-title--FontFamily: var(--pf-t--global--font--family--heading);
3
4
  --pf-v6-c-title--m-4xl--LineHeight: var(--pf-t--global--font--line-height--heading);
4
5
  --pf-v6-c-title--m-4xl--FontSize: var(--pf-t--global--font--size--heading--2xl);
@@ -1,6 +1,6 @@
1
1
  @use '../../sass-utilities' as *;
2
2
 
3
- :where(:root, .#{$title}) {
3
+ @include pf-root($title) {
4
4
  --#{$title}--FontFamily: var(--pf-t--global--font--family--heading);
5
5
 
6
6
  // SIZE modifiers (note that the modifier names match PF5 sizes but use tokens that don't match in name
@@ -1,4 +1,5 @@
1
- :where(:root, .pf-v6-c-toggle-group) {
1
+ :root,
2
+ .pf-v6-c-toggle-group {
2
3
  --pf-v6-c-toggle-group__button--PaddingBlockStart: var(--pf-t--global--spacer--sm);
3
4
  --pf-v6-c-toggle-group__button--PaddingInlineEnd: var(--pf-t--global--spacer--md);
4
5
  --pf-v6-c-toggle-group__button--PaddingBlockEnd: var(--pf-t--global--spacer--sm);
@@ -1,6 +1,6 @@
1
1
  @use '../../sass-utilities' as *;
2
2
 
3
- :where(:root, .#{$toggle-group}) {
3
+ @include pf-root($toggle-group) {
4
4
  // button
5
5
  --#{$toggle-group}__button--PaddingBlockStart: var(--pf-t--global--spacer--sm);
6
6
  --#{$toggle-group}__button--PaddingInlineEnd: var(--pf-t--global--spacer--md);
@@ -1,4 +1,5 @@
1
- :where(:root, .pf-v6-c-toolbar) {
1
+ :root,
2
+ .pf-v6-c-toolbar {
2
3
  --pf-v6-c-toolbar--RowGap: var(--pf-t--global--spacer--md);
3
4
  --pf-v6-c-toolbar--PaddingBlockStart: 0;
4
5
  --pf-v6-c-toolbar--PaddingBlockEnd: var(--pf-t--global--spacer--md);
@@ -10,7 +10,7 @@ $pf-v6--include-toolbar-breakpoints: true !default;
10
10
  $pf-v6-c-toolbar--breakpoint-map: build-breakpoint-map();
11
11
  }
12
12
 
13
- :where(:root, .#{$toolbar}) {
13
+ @include pf-root($toolbar) {
14
14
  --#{$toolbar}--RowGap: var(--pf-t--global--spacer--md);
15
15
  --#{$toolbar}--PaddingBlockStart: 0;
16
16
  --#{$toolbar}--PaddingBlockEnd: var(--pf-t--global--spacer--md);
@@ -1,4 +1,5 @@
1
- :where(:root, .pf-v6-c-tooltip) {
1
+ :root,
2
+ .pf-v6-c-tooltip {
2
3
  --pf-v6-c-tooltip--MaxWidth: 18.75rem;
3
4
  --pf-v6-c-tooltip--BoxShadow: var(--pf-t--global--box-shadow--md);
4
5
  --pf-v6-c-tooltip__content--PaddingBlockStart: var(--pf-t--global--spacer--sm);
@@ -1,6 +1,6 @@
1
1
  @use '../../sass-utilities' as *;
2
2
 
3
- :where(:root, .#{$tooltip}) {
3
+ @include pf-root($tooltip) {
4
4
  // Component variables
5
5
  --#{$tooltip}--MaxWidth: #{pf-size-prem(300px)};
6
6
  --#{$tooltip}--BoxShadow: var(--pf-t--global--box-shadow--md);
@@ -1,4 +1,5 @@
1
- :where(:root, .pf-v6-c-tree-view) {
1
+ :root,
2
+ .pf-v6-c-tree-view {
2
3
  --pf-v6-c-tree-view__node--indent--base: calc(var(--pf-t--global--spacer--md) * 2 + var(--pf-v6-c-tree-view__node-toggle-icon--MinWidth));
3
4
  --pf-v6-c-tree-view__node--nested-indent--base: calc(var(--pf-v6-c-tree-view__node--indent--base) - var(--pf-t--global--spacer--md));
4
5
  --pf-v6-c-tree-view__content--BorderRadius: var(--pf-t--global--border--radius--small);
@@ -2,7 +2,7 @@
2
2
 
3
3
  $pf-v6-c-tree-view--MaxNesting: 10 !default;
4
4
 
5
- :where(:root, .#{$tree-view}) {
5
+ @include pf-root($tree-view) {
6
6
  // Node base
7
7
  --#{$tree-view}__node--indent--base: calc(var(--pf-t--global--spacer--md) * 2 + var(--#{$tree-view}__node-toggle-icon--MinWidth)); // based off of the expected width of the toggle button
8
8
  --#{$tree-view}__node--nested-indent--base: calc(var(--#{$tree-view}__node--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
@@ -1,4 +1,5 @@
1
- :where(:root, .pf-v6-c-truncate) {
1
+ :root,
2
+ .pf-v6-c-truncate {
2
3
  --pf-v6-c-truncate--MinWidth: 6ch;
3
4
  --pf-v6-c-truncate__start--MinWidth: 6ch;
4
5
  }
@@ -1,6 +1,6 @@
1
1
  @use '../../sass-utilities' as *;
2
2
 
3
- :where(:root, .#{$truncate}) {
3
+ @include pf-root($truncate) {
4
4
  --#{$truncate}--MinWidth: 6ch;
5
5
  --#{$truncate}__start--MinWidth: 6ch;
6
6
  }
@@ -1,4 +1,5 @@
1
- :where(:root, .pf-v6-c-wizard) {
1
+ :root,
2
+ .pf-v6-c-wizard {
2
3
  --pf-v6-c-wizard--Height: initial;
3
4
  --pf-v6-c-wizard--Height--base: 100%;
4
5
  --pf-v6-c-modal-box--c-wizard--Height--base: 47.625rem;
@@ -113,7 +114,8 @@
113
114
  --pf-v6-c-wizard__footer--BorderBlockStartColor: var(--pf-t--global--border--color--default);
114
115
  }
115
116
  @media screen and (min-width: 62rem) {
116
- :where(:root, .pf-v6-c-wizard) {
117
+ :root,
118
+ .pf-v6-c-wizard {
117
119
  --pf-v6-c-wizard__nav--Width: var(--pf-v6-c-wizard__nav--lg--Width);
118
120
  --pf-v6-c-wizard__nav--BoxShadow: none;
119
121
  }
@@ -1,6 +1,6 @@
1
1
  @use '../../sass-utilities' as *;
2
2
 
3
- :where(:root, .#{$wizard}) {
3
+ @include pf-root($wizard) {
4
4
  --#{$wizard}--Height: initial;
5
5
  --#{$wizard}--Height--base: 100%;
6
6
  --#{$modal-box}--c-wizard--Height--base: #{pf-size-prem(762px)}; // this is a specific height from design for the wizard in a modal