@patternfly/patternfly 6.0.0-alpha.119 → 6.0.0-alpha.120

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 (270) hide show
  1. package/assets/fontawesome/_animated.scss +1 -0
  2. package/assets/fontawesome/_bordered-pulled.scss +1 -0
  3. package/assets/fontawesome/_core.scss +2 -0
  4. package/assets/fontawesome/_fixed-width.scss +2 -0
  5. package/assets/fontawesome/_icons.scss +1 -0
  6. package/assets/fontawesome/_index.scss +12 -0
  7. package/assets/fontawesome/_larger.scss +4 -2
  8. package/assets/fontawesome/_list.scss +4 -2
  9. package/assets/fontawesome/_rotated-flipped.scss +2 -0
  10. package/assets/fontawesome/_screen-reader.scss +1 -0
  11. package/assets/fontawesome/_stacked.scss +3 -1
  12. package/assets/fontawesome/_variables.scss +3 -2
  13. package/assets/fontawesome/fontawesome.scss +12 -12
  14. package/assets/pficon/pficon.scss +3 -0
  15. package/base/_index.scss +10 -0
  16. package/base/{_globals.scss → normalize.scss} +5 -35
  17. package/base/patternfly-common.scss +50 -2
  18. package/base/patternfly-fa-icons.css +1 -1
  19. package/base/patternfly-fa-icons.scss +35 -2
  20. package/base/patternfly-fonts.scss +49 -2
  21. package/base/patternfly-pf-icons.scss +1 -2
  22. package/base/patternfly-svg-icons.css +5 -0
  23. package/base/{_svg-icons.scss → patternfly-svg-icons.scss} +2 -0
  24. package/base/patternfly-variables.scss +14 -2
  25. package/base/reset.scss +33 -0
  26. package/base/tokens/_index.scss +6 -0
  27. package/components/AboutModalBox/about-modal-box.css +8 -8
  28. package/components/AboutModalBox/about-modal-box.scss +3 -4
  29. package/components/Accordion/accordion.css +1 -1
  30. package/components/Accordion/accordion.scss +8 -8
  31. package/components/ActionList/action-list.css +1 -1
  32. package/components/ActionList/action-list.scss +3 -1
  33. package/components/Alert/alert-group.scss +1 -1
  34. package/components/Alert/alert.css +1 -1
  35. package/components/Alert/alert.scss +3 -3
  36. package/components/AppLauncher/app-launcher.scss +1 -3
  37. package/components/Avatar/avatar.css +1 -1
  38. package/components/Avatar/avatar.scss +3 -2
  39. package/components/BackToTop/back-to-top.css +2 -2
  40. package/components/BackToTop/back-to-top.scss +2 -2
  41. package/components/Backdrop/backdrop.css +1 -2
  42. package/components/Backdrop/backdrop.scss +2 -3
  43. package/components/BackgroundImage/background-image.css +1 -2
  44. package/components/BackgroundImage/background-image.scss +2 -3
  45. package/components/Badge/badge.css +1 -1
  46. package/components/Badge/badge.scss +2 -2
  47. package/components/Banner/banner.css +2 -2
  48. package/components/Banner/banner.scss +3 -3
  49. package/components/Brand/brand.scss +2 -1
  50. package/components/Breadcrumb/breadcrumb.css +1 -2
  51. package/components/Breadcrumb/breadcrumb.scss +3 -2
  52. package/components/Button/button.css +1 -2
  53. package/components/Button/button.scss +3 -2
  54. package/components/CalendarMonth/calendar-month.css +1 -2
  55. package/components/CalendarMonth/calendar-month.scss +5 -5
  56. package/components/Card/card.css +1 -2
  57. package/components/Card/card.scss +4 -5
  58. package/components/Check/check.css +1 -2
  59. package/components/Check/check.scss +2 -3
  60. package/components/Chip/chip-group.scss +1 -1
  61. package/components/Chip/chip.scss +1 -1
  62. package/components/ClipboardCopy/clipboard-copy.css +1 -2
  63. package/components/ClipboardCopy/clipboard-copy.scss +2 -3
  64. package/components/CodeBlock/code-block.css +1 -1
  65. package/components/CodeBlock/code-block.scss +2 -2
  66. package/components/CodeEditor/code-editor.css +1 -1
  67. package/components/CodeEditor/code-editor.scss +2 -2
  68. package/components/Content/content.css +1 -2
  69. package/components/Content/content.scss +2 -3
  70. package/components/ContextSelector/context-selector.scss +1 -1
  71. package/components/DataList/data-list-grid.scss +2 -0
  72. package/components/DataList/data-list.css +3 -3
  73. package/components/DataList/data-list.scss +5 -5
  74. package/components/DatePicker/date-picker.css +1 -2
  75. package/components/DatePicker/date-picker.scss +2 -3
  76. package/components/DescriptionList/description-list-order.scss +2 -0
  77. package/components/DescriptionList/description-list.css +7 -7
  78. package/components/DescriptionList/description-list.scss +5 -4
  79. package/components/Divider/divider.css +1 -2
  80. package/components/Divider/divider.scss +3 -3
  81. package/components/DragDrop/drag-drop.css +2 -2
  82. package/components/DragDrop/drag-drop.scss +3 -3
  83. package/components/Drawer/drawer.css +3 -6
  84. package/components/Drawer/drawer.scss +14 -13
  85. package/components/Dropdown/dropdown.scss +2 -1
  86. package/components/DualListSelector/dual-list-selector.css +1 -1
  87. package/components/DualListSelector/dual-list-selector.scss +4 -3
  88. package/components/EmptyState/empty-state.css +1 -1
  89. package/components/EmptyState/empty-state.scss +2 -2
  90. package/components/ExpandableSection/expandable-section.css +1 -1
  91. package/components/ExpandableSection/expandable-section.scss +7 -9
  92. package/components/FileUpload/file-upload.css +1 -2
  93. package/components/FileUpload/file-upload.scss +2 -3
  94. package/components/Form/form.css +1 -2
  95. package/components/Form/form.scss +4 -4
  96. package/components/FormControl/form-control.css +1 -2
  97. package/components/FormControl/form-control.scss +6 -5
  98. package/components/HelperText/helper-text.css +1 -1
  99. package/components/HelperText/helper-text.scss +4 -3
  100. package/components/Hint/hint.css +1 -1
  101. package/components/Hint/hint.scss +2 -2
  102. package/components/Icon/icon.css +1 -2
  103. package/components/Icon/icon.scss +2 -3
  104. package/components/InlineEdit/inline-edit.css +1 -2
  105. package/components/InlineEdit/inline-edit.scss +2 -3
  106. package/components/InputGroup/input-group.css +1 -2
  107. package/components/InputGroup/input-group.scss +2 -3
  108. package/components/JumpLinks/jump-links.css +1 -2
  109. package/components/JumpLinks/jump-links.scss +3 -3
  110. package/components/Label/label-group.css +1 -2
  111. package/components/Label/label-group.scss +2 -3
  112. package/components/Label/label.css +1 -2
  113. package/components/Label/label.scss +2 -4
  114. package/components/List/list.scss +1 -1
  115. package/components/LogViewer/log-viewer.scss +1 -1
  116. package/components/Login/login.css +9 -9
  117. package/components/Login/login.scss +2 -2
  118. package/components/Masthead/masthead.css +1 -2
  119. package/components/Masthead/masthead.scss +3 -2
  120. package/components/Menu/menu.css +1 -2
  121. package/components/Menu/menu.scss +3 -2
  122. package/components/MenuToggle/menu-toggle.css +1 -2
  123. package/components/MenuToggle/menu-toggle.scss +2 -3
  124. package/components/ModalBox/modal-box.css +2 -2
  125. package/components/ModalBox/modal-box.scss +3 -3
  126. package/components/MultipleFileUpload/multiple-file-upload.css +1 -2
  127. package/components/MultipleFileUpload/multiple-file-upload.scss +2 -3
  128. package/components/Nav/nav.css +1 -2
  129. package/components/Nav/nav.scss +3 -2
  130. package/components/NotificationBadge/notification-badge.css +1 -1
  131. package/components/NotificationBadge/notification-badge.scss +2 -2
  132. package/components/NotificationDrawer/notification-drawer.css +1 -2
  133. package/components/NotificationDrawer/notification-drawer.scss +2 -3
  134. package/components/NumberInput/number-input.css +1 -2
  135. package/components/NumberInput/number-input.scss +2 -3
  136. package/components/OptionsMenu/options-menu.scss +1 -1
  137. package/components/OverflowMenu/overflow-menu.css +1 -1
  138. package/components/OverflowMenu/overflow-menu.scss +3 -1
  139. package/components/Page/page.css +5 -5
  140. package/components/Page/page.scss +3 -2
  141. package/components/Pagination/pagination.css +3 -6
  142. package/components/Pagination/pagination.scss +3 -3
  143. package/components/Panel/panel.css +1 -2
  144. package/components/Panel/panel.scss +2 -3
  145. package/components/Popover/popover.scss +1 -1
  146. package/components/Progress/progress.css +1 -2
  147. package/components/Progress/progress.scss +5 -6
  148. package/components/ProgressStepper/progress-stepper.css +2 -4
  149. package/components/ProgressStepper/progress-stepper.scss +3 -3
  150. package/components/Radio/radio.css +1 -2
  151. package/components/Radio/radio.scss +2 -3
  152. package/components/Select/select.scss +1 -1
  153. package/components/Sidebar/sidebar.css +1 -2
  154. package/components/Sidebar/sidebar.scss +5 -5
  155. package/components/SimpleList/simple-list.css +1 -1
  156. package/components/SimpleList/simple-list.scss +3 -3
  157. package/components/Skeleton/skeleton.css +1 -2
  158. package/components/Skeleton/skeleton.scss +2 -3
  159. package/components/SkipToContent/skip-to-content.css +1 -1
  160. package/components/SkipToContent/skip-to-content.scss +2 -2
  161. package/components/Slider/slider.css +1 -2
  162. package/components/Slider/slider.scss +12 -13
  163. package/components/Spinner/spinner.css +1 -2
  164. package/components/Spinner/spinner.scss +4 -5
  165. package/components/Switch/switch.css +1 -2
  166. package/components/Switch/switch.scss +2 -3
  167. package/components/TabContent/tab-content.css +1 -2
  168. package/components/TabContent/tab-content.scss +3 -3
  169. package/components/Table/table-grid.scss +2 -0
  170. package/components/Table/table-scrollable.css +1 -2
  171. package/components/Table/table-scrollable.scss +3 -3
  172. package/components/Table/table-tree-view.css +1 -2
  173. package/components/Table/table-tree-view.scss +3 -2
  174. package/components/Table/table.css +1 -2
  175. package/components/Table/table.scss +3 -2
  176. package/components/Tabs/tabs.css +1 -2
  177. package/components/Tabs/tabs.scss +7 -7
  178. package/components/TextInputGroup/text-input-group.css +1 -2
  179. package/components/TextInputGroup/text-input-group.scss +4 -4
  180. package/components/Tile/tile.css +1 -2
  181. package/components/Tile/tile.scss +2 -3
  182. package/components/Timestamp/timestamp.css +1 -1
  183. package/components/Timestamp/timestamp.scss +4 -3
  184. package/components/Title/title.css +1 -1
  185. package/components/Title/title.scss +3 -3
  186. package/components/ToggleGroup/toggle-group.css +1 -2
  187. package/components/ToggleGroup/toggle-group.scss +3 -4
  188. package/components/Toolbar/toolbar.css +1 -2
  189. package/components/Toolbar/toolbar.scss +3 -2
  190. package/components/Tooltip/tooltip.css +1 -1
  191. package/components/Tooltip/tooltip.scss +5 -4
  192. package/components/TreeView/tree-view.css +1 -2
  193. package/components/TreeView/tree-view.scss +3 -3
  194. package/components/Truncate/truncate.css +1 -2
  195. package/components/Truncate/truncate.scss +2 -3
  196. package/components/Wizard/wizard.css +2 -4
  197. package/components/Wizard/wizard.scss +2 -3
  198. package/components/_index.css +25850 -0
  199. package/components/_index.scss +91 -0
  200. package/layouts/Bullseye/bullseye.css +1 -2
  201. package/layouts/Bullseye/bullseye.scss +3 -2
  202. package/layouts/Flex/flex.css +1 -2
  203. package/layouts/Flex/flex.scss +5 -4
  204. package/layouts/Gallery/gallery.css +1 -2
  205. package/layouts/Gallery/gallery.scss +3 -2
  206. package/layouts/Grid/grid.css +1 -2
  207. package/layouts/Grid/grid.scss +3 -2
  208. package/layouts/Level/level.css +1 -2
  209. package/layouts/Level/level.scss +3 -2
  210. package/layouts/Split/split.css +1 -2
  211. package/layouts/Split/split.scss +3 -2
  212. package/layouts/Stack/stack.css +1 -2
  213. package/layouts/Stack/stack.scss +3 -2
  214. package/layouts/_index.css +3454 -0
  215. package/layouts/_index.scss +8 -0
  216. package/package.json +1 -2
  217. package/patternfly-addons.scss +2 -12
  218. package/patternfly-base-no-globals.css +1156 -1156
  219. package/patternfly-base-no-globals.scss +5 -3
  220. package/patternfly-base.css +1251 -1251
  221. package/patternfly-base.scss +2 -5
  222. package/patternfly-charts.scss +1 -1
  223. package/patternfly-no-globals.css +1278 -1341
  224. package/patternfly-no-globals.scss +5 -4
  225. package/patternfly.css +1374 -1437
  226. package/patternfly.min.css +1 -1
  227. package/patternfly.min.css.map +1 -1
  228. package/patternfly.scss +3 -4
  229. package/sass-utilities/_index.scss +6 -0
  230. package/sass-utilities/functions.scss +10 -4
  231. package/sass-utilities/mixins.scss +9 -7
  232. package/sass-utilities/{component-namespaces.scss → namespaces-components.scss} +3 -0
  233. package/sass-utilities/{layout-namespaces.scss → namespaces-layouts.scss} +3 -1
  234. package/sass-utilities/scss-variables.scss +0 -2
  235. package/utilities/Accessibility/accessibility.scss +2 -0
  236. package/utilities/Alignment/alignment.scss +2 -0
  237. package/utilities/BackgroundColor/{BackgroundColor.scss → background-color.scss} +1 -4
  238. package/utilities/BoxShadow/box-shadow.scss +2 -1
  239. package/utilities/Display/display.scss +2 -1
  240. package/utilities/Flex/flex.scss +2 -1
  241. package/utilities/Float/float.scss +4 -4
  242. package/utilities/Sizing/sizing.scss +2 -0
  243. package/utilities/Spacing/spacing.scss +2 -2
  244. package/utilities/Text/text.scss +2 -1
  245. package/utilities/_index.css +7777 -0
  246. package/utilities/_index.scss +10 -0
  247. package/base/_base.scss +0 -2
  248. package/base/_common.scss +0 -50
  249. package/base/_fa-icons.scss +0 -33
  250. package/base/_fonts.scss +0 -48
  251. package/base/_icons.scss +0 -3
  252. package/base/_pficons.scss +0 -2
  253. package/base/_variables.scss +0 -14
  254. package/base/patternfly-globals.css +0 -116
  255. package/base/patternfly-globals.scss +0 -2
  256. package/base/patternfly-icons.css +0 -4728
  257. package/base/patternfly-icons.scss +0 -2
  258. package/components/_all.scss +0 -91
  259. package/layouts/_all.scss +0 -7
  260. package/sass-utilities/_all.scss +0 -7
  261. package/sass-utilities/div.import.scss +0 -3
  262. package/sass-utilities/div.scss +0 -4
  263. /package/base/tokens/{_tokens-charts.scss → tokens-charts.scss} +0 -0
  264. /package/base/tokens/{_tokens-dark.scss → tokens-dark.scss} +0 -0
  265. /package/base/tokens/{_tokens-default.scss → tokens-default.scss} +0 -0
  266. /package/base/tokens/{_tokens-font.scss → tokens-font.scss} +0 -0
  267. /package/base/tokens/{_tokens-palette.scss → tokens-palette.scss} +0 -0
  268. /package/base/tokens/{_workspace-overrides.scss → workspace-overrides.scss} +0 -0
  269. /package/sass-utilities/{_init.scss → init.scss} +0 -0
  270. /package/utilities/BackgroundColor/{BackgroundColor.css → background-color.css} +0 -0
@@ -1,5 +1,4 @@
1
- :where(:root),
2
- :where(.pf-v6-c-menu-toggle) {
1
+ :where(:root, .pf-v6-c-menu-toggle) {
3
2
  --pf-v6-c-menu-toggle--ColumnGap: var(--pf-t--global--spacer--sm);
4
3
  --pf-v6-c-menu-toggle--PaddingTop: var(--pf-t--global--spacer--sm);
5
4
  --pf-v6-c-menu-toggle--PaddingRight: var(--pf-t--global--spacer--sm);
@@ -1,4 +1,4 @@
1
- // @debug $menu-toggle; // check your variable names located in src/patternfly/sass-utilities/component-namespaces.scss
1
+ @use '../../sass-utilities' as *;
2
2
 
3
3
  // TODO: standardize this layout
4
4
  // TODO: add .#{$menu-toggle}__main to house extra elements, like .#{$menu-toggle}__icon, .#{$menu-toggle}__text, .#{$menu-toggle}__count, .#{$menu-toggle}__controls
@@ -8,8 +8,7 @@
8
8
  // TODO: update text-input-button to use gap
9
9
  // TODO: label all variables group - // * Menu toggle (vars) // - Menu toggle (selectors)
10
10
 
11
- :where(:root),
12
- :where(.#{$menu-toggle}) {
11
+ :where(:root, .#{$menu-toggle}) {
13
12
  --#{$menu-toggle}--ColumnGap: var(--pf-t--global--spacer--sm);
14
13
  --#{$menu-toggle}--PaddingTop: var(--pf-t--global--spacer--sm);
15
14
  --#{$menu-toggle}--PaddingRight: var(--pf-t--global--spacer--sm);
@@ -1,4 +1,4 @@
1
- :root {
1
+ :where(:root, .pf-v6-c-modal-box) {
2
2
  --pf-v6-c-modal-box--BackgroundColor: var(--pf-t--global--background--color--floating--default);
3
3
  --pf-v6-c-modal-box--BorderRadius: var(--pf-t--global--border--radius--large);
4
4
  --pf-v6-c-modal-box--BoxShadow: var(--pf-t--global--box-shadow--lg);
@@ -48,7 +48,7 @@
48
48
  --pf-v6-c-modal-box__footer--c-button--sm--MarginRight: calc(var(--pf-v6-c-modal-box__footer--c-button--MarginRight) / 2);
49
49
  }
50
50
  @media (min-width: 1200px) {
51
- :root {
51
+ :where(:root, .pf-v6-c-modal-box) {
52
52
  --pf-v6-c-modal-box--m-align-top--spacer: var(--pf-v6-c-modal-box--m-align-top--xl--spacer);
53
53
  }
54
54
  }
@@ -1,6 +1,6 @@
1
- // @debug $modal-box; // check your variable names located in src/patternfly/sass-utilities/component-namespaces.scss
1
+ @use '../../sass-utilities' as *;
2
2
 
3
- :root {
3
+ :where(:root, .#{$modal-box}) {
4
4
  --#{$modal-box}--BackgroundColor: var(--pf-t--global--background--color--floating--default);
5
5
  --#{$modal-box}--BorderRadius: var(--pf-t--global--border--radius--large);
6
6
  --#{$modal-box}--BoxShadow: var(--pf-t--global--box-shadow--lg);
@@ -49,7 +49,7 @@
49
49
  // Description
50
50
  --#{$modal-box}__description--FontSize: var(--pf-t--global--font--size--body--sm);
51
51
  --#{$modal-box}__description--Color: var(--pf-t--global--text--color--subtle);
52
-
52
+
53
53
  // Body
54
54
  --#{$modal-box}__body--MinHeight: calc(var(--pf-t--global--font--size--body--default) * var(--pf-t--global--font--line-height--body)); // Allow for at least 1 line of content in the body
55
55
  --#{$modal-box}__body--PaddingTop: var(--pf-t--global--spacer--lg);
@@ -1,5 +1,4 @@
1
- :root,
2
- :where(.pf-v6-c-multiple-file-upload) {
1
+ :where(:root, .pf-v6-c-multiple-file-upload) {
3
2
  --pf-v6-c-multiple-file-upload--GridTemplateColumns: 1fr;
4
3
  --pf-v6-c-multiple-file-upload--Gap: var(--pf-t--global--spacer--md);
5
4
  --pf-v6-c-multiple-file-upload__main--TextAlign: center;
@@ -1,7 +1,6 @@
1
- // @debug $multiple-file-upload; // check your variable names located in src/patternfly/sass-utilities/component-namespaces.scss
1
+ @use '../../sass-utilities' as *;
2
2
 
3
- :root,
4
- :where(.#{$multiple-file-upload}) {
3
+ :where(:root, .#{$multiple-file-upload}) {
5
4
  --#{$multiple-file-upload}--GridTemplateColumns: 1fr;
6
5
  --#{$multiple-file-upload}--Gap: var(--pf-t--global--spacer--md);
7
6
 
@@ -1,5 +1,4 @@
1
- :where(:root),
2
- :where(.pf-v6-c-nav) {
1
+ :where(:root, .pf-v6-c-nav) {
3
2
  --pf-v6-c-nav__link--PaddingBlockStart: var(--pf-t--global--spacer--sm);
4
3
  --pf-v6-c-nav__link--PaddingBlockEnd: var(--pf-t--global--spacer--sm);
5
4
  --pf-v6-c-nav__link--PaddingInlineStart: var(--pf-t--global--spacer--md);
@@ -1,5 +1,6 @@
1
- :where(:root),
2
- :where(.#{$nav}) {
1
+ @use '../../sass-utilities' as *;
2
+
3
+ :where(:root, .#{$nav}) {
3
4
  // * Nav shared values
4
5
  --#{$nav}__link--PaddingBlockStart: var(--pf-t--global--spacer--sm);
5
6
  --#{$nav}__link--PaddingBlockEnd: var(--pf-t--global--spacer--sm);
@@ -1,4 +1,4 @@
1
- :root {
1
+ :where(:root, .pf-v6-c-notification-badge) {
2
2
  --pf-v6-c-notification-badge--BackgroundColor: transparent;
3
3
  --pf-v6-c-notification-badge--MinWidth: 40px;
4
4
  --pf-v6-c-notification-badge--Gap: var(--pf-t--global--spacer--xs);
@@ -1,6 +1,6 @@
1
- // @debug $notification-badge; // check your variable names located in src/patternfly/sass-utilities/component-namespaces.scss
1
+ @use '../../sass-utilities' as *;
2
2
 
3
- :root {
3
+ :where(:root, .#{$notification-badge}) {
4
4
  --#{$notification-badge}--BackgroundColor: transparent;
5
5
  --#{$notification-badge}--MinWidth: 40px;
6
6
  --#{$notification-badge}--Gap: var(--pf-t--global--spacer--xs);
@@ -1,5 +1,4 @@
1
- :root,
2
- .pf-v6-c-notification-drawer {
1
+ :where(:root, .pf-v6-c-notification-drawer) {
3
2
  --pf-v6-c-notification-drawer--BackgroundColor: var(--pf-t--global--background--color--floating--default);
4
3
  --pf-v6-c-notification-drawer__header--PaddingTop: var(--pf-t--global--spacer--md);
5
4
  --pf-v6-c-notification-drawer__header--PaddingRight: var(--pf-t--global--spacer--lg);
@@ -1,7 +1,6 @@
1
- // @debug $notification-drawer; // check your variable names located in src/patternfly/sass-utilities/component-namespaces.scss
1
+ @use '../../sass-utilities' as *;
2
2
 
3
- :root,
4
- .#{$notification-drawer} {
3
+ :where(:root, .#{$notification-drawer}) {
5
4
  --#{$notification-drawer}--BackgroundColor: var(--pf-t--global--background--color--floating--default);
6
5
 
7
6
  // Header
@@ -1,5 +1,4 @@
1
- :root,
2
- .pf-v6-c-number-input {
1
+ :where(:root, .pf-v6-c-number-input) {
3
2
  --pf-v6-c-number-input__unit--c-input-group--MarginLeft: var(--pf-t--global--spacer--sm);
4
3
  --pf-v6-c-number-input__icon--FontSize: var(--pf-t--global--font--size--xs);
5
4
  --pf-v6-c-number-input--c-form-control--width-base: calc(var(--pf-t--global--spacer--md) * 2 + var(--pf-t--global--border--width--box--default) * 2);
@@ -1,7 +1,6 @@
1
- // @debug $number-input; // check your variable names located in src/patternfly/sass-utilities/component-namespaces.scss
1
+ @use '../../sass-utilities' as *;
2
2
 
3
- :root,
4
- .#{$number-input} {
3
+ :where(:root, .#{$number-input}) {
5
4
  // unit
6
5
  --#{$number-input}__unit--c-input-group--MarginLeft: var(--pf-t--global--spacer--sm);
7
6
 
@@ -1,4 +1,4 @@
1
- // @debug $option-menu; // check your variable names located in src/patternfly/sass-utilities/component-namespaces.scss
1
+ @use '../../sass-utilities' as *;
2
2
 
3
3
  .#{$options-menu} {
4
4
  // Toggle
@@ -1,4 +1,4 @@
1
- :root {
1
+ :where(:root, .pf-v6-c-overflow-menu) {
2
2
  --pf-v6-c-overflow-menu--ColumnGap: var(--pf-t--global--spacer--md);
3
3
  --pf-v6-c-overflow-menu__group--ColumnGap: var(--pf-t--global--spacer--md);
4
4
  --pf-v6-c-overflow-menu__group--m-button-group--ColumnGap: var(--pf-t--global--spacer--sm);
@@ -1,4 +1,6 @@
1
- :root {
1
+ @use '../../sass-utilities' as *;
2
+
3
+ :where(:root, .#{$overflow-menu}) {
2
4
  --#{$overflow-menu}--ColumnGap: var(--pf-t--global--spacer--md);
3
5
 
4
6
  // * Overflow menu group
@@ -1,4 +1,4 @@
1
- :root {
1
+ :where(:root, .pf-v6-c-page) {
2
2
  --pf-v6-c-page--BackgroundColor: var(--pf-t--global--background--color--secondary--default);
3
3
  --pf-v6-c-page--inset: var(--pf-t--global--spacer--md);
4
4
  --pf-v6-c-page--xl--inset: var(--pf-t--global--spacer--xl);
@@ -110,25 +110,25 @@
110
110
  --pf-v6-c-page__main-wizard--BorderTopWidth: var(--pf-t--global--border--width--button--default);
111
111
  }
112
112
  @media (min-width: 1200px) {
113
- :root {
113
+ :where(:root, .pf-v6-c-page) {
114
114
  --pf-v6-c-page__header-brand--PaddingLeft: var(--pf-v6-c-page__header-brand--xl--PaddingLeft);
115
115
  --pf-v6-c-page--inset: var(--pf-v6-c-page--xl--inset);
116
116
  }
117
117
  }
118
118
  @media screen and (min-width: 1200px) {
119
- :root {
119
+ :where(:root, .pf-v6-c-page) {
120
120
  --pf-v6-c-page__header-nav--BackgroundColor: var(--pf-v6-c-page__header-nav--xl--BackgroundColor);
121
121
  --pf-v6-c-page__header-nav--PaddingRight: var(--pf-v6-c-page__header-nav--xl--PaddingRight);
122
122
  --pf-v6-c-page__header-nav--PaddingLeft: var(--pf-v6-c-page__header-nav--xl--PaddingLeft);
123
123
  }
124
124
  }
125
125
  @media screen and (min-width: 1200px) {
126
- :root {
126
+ :where(:root, .pf-v6-c-page) {
127
127
  --pf-v6-c-page__header-tools--MarginRight: var(--pf-v6-c-page__header-tools--xl--MarginRight);
128
128
  }
129
129
  }
130
130
  @media screen and (min-width: 1200px) {
131
- :root {
131
+ :where(:root, .pf-v6-c-page) {
132
132
  --pf-v6-c-page__sidebar--TranslateX: var(--pf-v6-c-page__sidebar--xl--TranslateX);
133
133
  }
134
134
  }
@@ -1,10 +1,11 @@
1
- // @debug $page; // check your variable names located in src/patternfly/sass-utilities/component-namespaces.scss
1
+ @use '../../sass-utilities' as *;
2
+
2
3
  // stylelint-disable
3
4
  $pf-page-v6--breakpoint-map: build-breakpoint-map("base", "sm", "md", "lg", "xl", "2xl");
4
5
  $pf-page-v6--height-breakpoint-map: build-breakpoint-map("base", "sm", "md", "lg", "xl", "2xl");
5
6
  // stylelint-enable
6
7
 
7
- :root {
8
+ :where(:root, .#{$page}) {
8
9
  --#{$page}--BackgroundColor: var(--pf-t--global--background--color--secondary--default);
9
10
  --#{$page}--inset: var(--pf-t--global--spacer--md);
10
11
  --#{$page}--xl--inset: var(--pf-t--global--spacer--xl);
@@ -1,5 +1,4 @@
1
- :where(:root),
2
- :where(.pf-v6-c-pagination) {
1
+ :where(:root, .pf-v6-c-pagination) {
3
2
  --pf-v6-c-pagination--inset: 0;
4
3
  --pf-v6-c-pagination--ColumnGap: var(--pf-t--global--spacer--lg);
5
4
  --pf-v6-c-pagination--m-page-insets--inset: var(--pf-t--global--spacer--lg);
@@ -34,8 +33,7 @@
34
33
  --pf-v6-c-pagination--m-display-full__page-menu--Display: inline-flex;
35
34
  }
36
35
  @media screen and (min-width: 768px) {
37
- :where(:root),
38
- :where(.pf-v6-c-pagination) {
36
+ :where(:root, .pf-v6-c-pagination) {
39
37
  --pf-v6-c-pagination--m-bottom--BoxShadow: none;
40
38
  --pf-v6-c-pagination__page-menu--Display: inline-flex;
41
39
  --pf-v6-c-pagination__nav--Display: inline-flex;
@@ -43,8 +41,7 @@
43
41
  }
44
42
  }
45
43
  @media screen and (min-width: 1200px) {
46
- :where(:root),
47
- :where(.pf-v6-c-pagination) {
44
+ :where(:root, .pf-v6-c-pagination) {
48
45
  --pf-v6-c-pagination__scroll-button--Width: var(--pf-v6-c-pagination__scroll-button--xl--Width);
49
46
  }
50
47
  }
@@ -1,9 +1,9 @@
1
- // @debug $pagination; // check your variable names located in src/patternfly/sass-utilities/component-namespaces.scss
1
+ @use '../../sass-utilities' as *;
2
+
2
3
  $pf-v6-c-pagination--breakpoint-map: build-breakpoint-map();
3
4
  $pf-v6-c-pagination--variable-map: build-spacer-map("none", "sm", "md", "lg", "xl", "2xl");
4
5
 
5
- :where(:root),
6
- :where(.#{$pagination}) {
6
+ :where(:root, .#{$pagination}) {
7
7
  --#{$pagination}--inset: 0;
8
8
  --#{$pagination}--ColumnGap: var(--pf-t--global--spacer--lg);
9
9
 
@@ -1,5 +1,4 @@
1
- :root,
2
- .pf-v6-c-panel {
1
+ :where(:root, .pf-v6-c-panel) {
3
2
  --pf-v6-c-panel--Width: auto;
4
3
  --pf-v6-c-panel--MinWidth: auto;
5
4
  --pf-v6-c-panel--MaxWidth: none;
@@ -1,7 +1,6 @@
1
- // @debug $panel; // check your variable names located in src/patternfly/sass-utilities/component-namespaces.scss
1
+ @use '../../sass-utilities' as *;
2
2
 
3
- :root,
4
- .#{$panel} {
3
+ :where(:root, .#{$panel}) {
5
4
  --#{$panel}--Width: auto;
6
5
  --#{$panel}--MinWidth: auto;
7
6
  --#{$panel}--MaxWidth: none;
@@ -1,4 +1,4 @@
1
- // @debug $popover; // check your variable names located in src/patternfly/sass-utilities/component-namespaces.scss
1
+ @use '../../sass-utilities' as *;
2
2
 
3
3
  .#{$popover} {
4
4
  // Component
@@ -1,5 +1,4 @@
1
- :root,
2
- .pf-v6-c-progress {
1
+ :where(:root, .pf-v6-c-progress) {
3
2
  --pf-v6-c-progress--GridGap: var(--pf-t--global--spacer--md);
4
3
  --pf-v6-c-progress__bar--Height: var(--pf-t--global--spacer--md);
5
4
  --pf-v6-c-progress__bar--BackgroundColor: var(--pf-t--global--color--nonstatus--gray--default);
@@ -1,10 +1,9 @@
1
- // @debug $progress; // check your variable names located in src/patternfly/sass-utilities/component-namespaces.scss
1
+ @use '../../sass-utilities' as *;
2
2
 
3
- :root,
4
- .#{$progress} {
3
+ :where(:root, .#{$progress}) {
5
4
  // Component variables
6
5
  --#{$progress}--GridGap: var(--pf-t--global--spacer--md);
7
-
6
+
8
7
  // Element variables
9
8
  --#{$progress}__bar--Height: var(--pf-t--global--spacer--md);
10
9
  --#{$progress}__bar--BackgroundColor: var(--pf-t--global--color--nonstatus--gray--default); // the bar always needs white under it so that the semi-transparent color shows correctly
@@ -14,7 +13,7 @@
14
13
  --#{$progress}__indicator--Height: var(--#{$progress}__bar--Height);
15
14
  --#{$progress}__indicator--BackgroundColor: var(--pf-t--global--color--brand--default);
16
15
  --#{$progress}__helper-text--MarginTop: calc(var(--pf-t--global--spacer--sm) - var(--#{$progress}--GridGap));
17
-
16
+
18
17
  // Modifier variables
19
18
  --#{$progress}--m-success__indicator--BackgroundColor: var(--pf-t--global--color--status--success--default);
20
19
  --#{$progress}--m-warning__indicator--BackgroundColor: var(--pf-t--global--color--status--warning--default);
@@ -135,7 +134,7 @@
135
134
  --#{$progress}__status-icon--Color: var(--#{$progress}--m-warning__status-icon--Color);
136
135
  --#{$progress}--m-inside__measure--Color: var(--#{$progress}--m-warning--m-inside__measure--Color);
137
136
  }
138
-
137
+
139
138
  &.pf-m-danger {
140
139
  --#{$progress}__indicator--BackgroundColor: var(--#{$progress}--m-danger__indicator--BackgroundColor);
141
140
  --#{$progress}__status-icon--Color: var(--#{$progress}--m-danger__status-icon--Color);
@@ -1,5 +1,4 @@
1
- :where(:root),
2
- :where(.pf-v6-c-progress-stepper) {
1
+ :where(:root, .pf-v6-c-progress-stepper) {
3
2
  --pf-v6-c-progress-stepper--m-vertical--GridAutoFlow: row;
4
3
  --pf-v6-c-progress-stepper--m-vertical--GridTemplateColumns: auto 1fr;
5
4
  --pf-v6-c-progress-stepper--m-vertical__step-connector--before--Top: 0;
@@ -118,8 +117,7 @@
118
117
  --pf-v6-c-progress-stepper--m-center__step-main--before--Content: "";
119
118
  }
120
119
  @media screen and (min-width: 768px) {
121
- :where(:root),
122
- :where(.pf-v6-c-progress-stepper) {
120
+ :where(:root, .pf-v6-c-progress-stepper) {
123
121
  --pf-v6-c-progress-stepper--GridAutoFlow: var(--pf-v6-c-progress-stepper--m-horizontal--GridAutoFlow);
124
122
  --pf-v6-c-progress-stepper--GridTemplateColumns: var(--pf-v6-c-progress-stepper--m-horizontal--GridTemplateColumns);
125
123
  --pf-v6-c-progress-stepper__step-connector--before--Top: var(--pf-v6-c-progress-stepper--m-horizontal__step-connector--before--Top);
@@ -1,4 +1,5 @@
1
- // @debug $progress-stepper; // check your variable names located in src/patternfly/sass-utilities/component-namespaces.scss
1
+ @use '../../sass-utilities' as *;
2
+
2
3
  $pf-v6-c-progress-stepper--breakpoint-map: build-breakpoint-map();
3
4
 
4
5
  // Default layout is vertical
@@ -57,8 +58,7 @@ $pf-v6-c-progress-stepper--breakpoint-map: build-breakpoint-map();
57
58
  }
58
59
 
59
60
  // Progress stepper is vertically oriented by default
60
- :where(:root),
61
- :where(.#{$progress-stepper}) {
61
+ :where(: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,5 +1,4 @@
1
- :root,
2
- .pf-v6-c-radio {
1
+ :where(:root, .pf-v6-c-radio) {
3
2
  --pf-v6-c-radio--GridGap: var(--pf-t--global--spacer--sm) var(--pf-t--global--spacer--sm);
4
3
  --pf-v6-c-radio--AccentColor: var(--pf-t--global--icon--color--brand--default);
5
4
  --pf-v6-c-radio--Height: calc(var(--pf-v6-c-radio__label--FontSize) * var(--pf-v6-c-radio__label--LineHeight));
@@ -1,7 +1,6 @@
1
- // @debug $radio; // check your variable names located in src/patternfly/sass-utilities/component-namespaces.scss
1
+ @use '../../sass-utilities' as *;
2
2
 
3
- :root,
4
- .#{$radio} {
3
+ :where(:root, .#{$radio}) {
5
4
  --#{$radio}--GridGap: var(--pf-t--global--spacer--sm) var(--pf-t--global--spacer--sm);
6
5
  --#{$radio}--AccentColor: var(--pf-t--global--icon--color--brand--default);
7
6
  --#{$radio}--Height: calc(var(--#{$radio}__label--FontSize) * var(--#{$radio}__label--LineHeight));
@@ -1,4 +1,4 @@
1
- // @debug $select; // check your variable names located in src/patternfly/sass-utilities/component-namespaces.scss
1
+ @use '../../sass-utilities' as *;
2
2
 
3
3
  .#{$select} {
4
4
  // Toggle
@@ -1,5 +1,4 @@
1
- :root,
2
- :where(.pf-v6-c-sidebar) {
1
+ :where(:root, .pf-v6-c-sidebar) {
3
2
  --pf-v6-c-sidebar--inset: var(--pf-t--global--spacer--md);
4
3
  --pf-v6-c-sidebar--xl--inset: var(--pf-t--global--spacer--lg);
5
4
  --pf-v6-c-sidebar--BorderWidth--base: var(--pf-t--global--border--width--regular);
@@ -1,9 +1,10 @@
1
- // @debug $sidebar; // check your variable names located in src/patternfly/sass-utilities/component-namespaces.scss
1
+ @use 'sass:math';
2
+ @use '../../sass-utilities' as *;
3
+
2
4
  $pf-v6-c-sidebar--breakpoint-map--width: build-breakpoint-map("base", "sm", "md", "lg", "xl", "2xl");
3
5
  $pf-v6-c-sidebar__panel--list--width: ("default", 25, 33, 50, 66, 75, 100);
4
6
 
5
- :root,
6
- :where(.#{$sidebar}) {
7
+ :where(:root, .#{$sidebar}) {
7
8
  --#{$sidebar}--inset: var(--pf-t--global--spacer--md);
8
9
  --#{$sidebar}--xl--inset: var(--pf-t--global--spacer--lg);
9
10
  --#{$sidebar}--BorderWidth--base: var(--pf-t--global--border--width--regular);
@@ -243,7 +244,6 @@ $pf-v6-c-sidebar__panel--list--width: ("default", 25, 33, 50, 66, 75, 100);
243
244
  }
244
245
  }
245
246
 
246
-
247
247
  // Responsive width modifiers
248
248
  @each $breakpoint, $breakpoint-value in $pf-v6-c-sidebar--breakpoint-map--width {
249
249
  $breakpoint-name: if($breakpoint != "base", -on-#{$breakpoint}, "");
@@ -254,7 +254,7 @@ $pf-v6-c-sidebar__panel--list--width: ("default", 25, 33, 50, 66, 75, 100);
254
254
  @if $width-value == "default" {
255
255
  --pf-v6-c-sidebar__panel--FlexBasis: var(--pf-v6-c-sidebar__panel--FlexBasis--base);
256
256
  } @else {
257
- --pf-v6-c-sidebar__panel--FlexBasis: #{percentage(div($width-value, 100))};
257
+ --pf-v6-c-sidebar__panel--FlexBasis: #{percentage(math.div($width-value, 100))};
258
258
  }
259
259
  }
260
260
  }
@@ -1,4 +1,4 @@
1
- :root, .pf-v6-c-simple-list {
1
+ :where(:root, .pf-v6-c-simple-list) {
2
2
  --pf-v6-c-simple-list__item-link--PaddingTop: var(--pf-t--global--spacer--xs);
3
3
  --pf-v6-c-simple-list__item-link--PaddingRight: var(--pf-t--global--spacer--md);
4
4
  --pf-v6-c-simple-list__item-link--PaddingBottom: var(--pf-t--global--spacer--xs);
@@ -1,6 +1,6 @@
1
- // @debug $simple-list; // check your variable names located in src/patternfly/sass-utilities/component-namespaces.scss
1
+ @use '../../sass-utilities' as *;
2
2
 
3
- :root, .#{$simple-list} {
3
+ :where(:root, .#{$simple-list}) {
4
4
  // Simple list item link
5
5
  --#{$simple-list}__item-link--PaddingTop: var(--pf-t--global--spacer--xs);
6
6
  --#{$simple-list}__item-link--PaddingRight: var(--pf-t--global--spacer--md);
@@ -47,7 +47,7 @@
47
47
  background-color: var(--#{$simple-list}__item-link--BackgroundColor);
48
48
  border: none;
49
49
  border-radius: var(--#{$simple-list}__item-link--BorderRadius);
50
-
50
+
51
51
  &.pf-m-link {
52
52
  --#{$simple-list}__item-link--Color: var(--#{$simple-list}__item-link--m-link--Color);
53
53
  --#{$simple-list}__item-link--hover--Color: var(--#{$simple-list}__item-link--m-link--m-current--Color);
@@ -1,6 +1,5 @@
1
1
  @charset "UTF-8";
2
- :root,
3
- .pf-v6-c-skeleton {
2
+ :where(:root, .pf-v6-c-skeleton) {
4
3
  --pf-v6-c-skeleton--BackgroundColor: var(--pf-t--global--background--color--secondary--default);
5
4
  --pf-v6-c-skeleton--Width: auto;
6
5
  --pf-v6-c-skeleton--Height: auto;
@@ -1,7 +1,6 @@
1
- // @debug $skeleton; // check your variable names located in src/patternfly/sass-utilities/component-namespaces.scss
1
+ @use '../../sass-utilities' as *;
2
2
 
3
- :root,
4
- .#{$skeleton} {
3
+ :where(:root, .#{$skeleton}) {
5
4
  --#{$skeleton}--BackgroundColor: var(--pf-t--global--background--color--secondary--default);
6
5
  --#{$skeleton}--Width: auto;
7
6
  --#{$skeleton}--Height: auto;
@@ -1,4 +1,4 @@
1
- :root {
1
+ :where(:root, .pf-v6-c-skip-to-content) {
2
2
  --pf-v6-c-skip-to-content--Top: var(--pf-t--global--spacer--md);
3
3
  --pf-v6-c-skip-to-content--ZIndex: var(--pf-t--global--z-index--2xl);
4
4
  --pf-v6-c-skip-to-content--focus--Left: var(--pf-t--global--spacer--md);
@@ -1,6 +1,6 @@
1
- // @debug $skip-to-content; // check your variable names located in src/patternfly/sass-utilities/component-namespaces.scss
1
+ @use '../../sass-utilities' as *;
2
2
 
3
- :root {
3
+ :where(:root, .#{$skip-to-content}) {
4
4
  --#{$skip-to-content}--Top: 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--Left: var(--pf-t--global--spacer--md);
@@ -1,5 +1,4 @@
1
- :root,
2
- .pf-v6-c-slider {
1
+ :where(:root, .pf-v6-c-slider) {
3
2
  --pf-v6-c-slider--value: 0;
4
3
  --pf-v6-c-slider__step--Left: 0;
5
4
  --pf-v6-c-slider__rail--PaddingTop: var(--pf-t--global--spacer--md);
@@ -1,10 +1,9 @@
1
- // @debug $slider; // check your variable names located in src/patternfly/sass-utilities/component-namespaces.scss
1
+ @use '../../sass-utilities' as *;
2
2
 
3
- :root,
4
- .#{$slider} {
3
+ :where(:root, .#{$slider}) {
5
4
  --#{$slider}--value: 0; // should always be set inline
6
5
  --#{$slider}__step--Left: 0; // should always be set inline
7
-
6
+
8
7
  // rail
9
8
  --#{$slider}__rail--PaddingTop: var(--pf-t--global--spacer--md);
10
9
  --#{$slider}__rail--PaddingBottom: var(--pf-t--global--spacer--md);
@@ -13,11 +12,11 @@
13
12
  --#{$slider}__rail-track--before--fill--BackgroundColor: var(--pf-t--global--border--color--hover);
14
13
  --#{$slider}__rail-track--before--BorderRadius: var(--pf-t--global--border--radius--tiny);
15
14
  --#{$slider}__rail-track--before--fill--BackgroundColor--gradient-stop: var(--#{$slider}--value);
16
-
15
+
17
16
  // steps
18
17
  --#{$slider}__steps--FontSize: var(--pf-t--global--font--size--sm);
19
18
  --#{$slider}__steps--Height: var(--#{$slider}__steps--FontSize);
20
-
19
+
21
20
  // step tick
22
21
  --#{$slider}__step-tick--Top: var(--pf-t--global--spacer--md);
23
22
  --#{$slider}__step-tick--Width: #{pf-size-prem(4px)};
@@ -28,13 +27,13 @@
28
27
  --#{$slider}__step--m-active__slider-tick--BackgroundColor: var(--pf-t--global--icon--color--brand--clicked);
29
28
  --#{$slider}__step--first-child__step-tick--TranslateX: 0;
30
29
  --#{$slider}__step--last-child__step-tick--TranslateX: -100%;
31
-
30
+
32
31
  // step label
33
32
  --#{$slider}__step-label--TranslateX: -50%;
34
33
  --#{$slider}__step-label--Top: calc(var(--pf-t--global--spacer--xl) + var(--#{$slider}__rail-track--Height));
35
34
  --#{$slider}__step--first-child__step-label--TranslateX: 0;
36
35
  --#{$slider}__step--last-child__step-label--TranslateX: -100%;
37
-
36
+
38
37
  // thumb
39
38
  --#{$slider}__thumb--Top: calc(var(--#{$slider}__rail-track--Height) / 2 + var(--pf-t--global--spacer--md));
40
39
  --#{$slider}__thumb--Width: #{pf-size-prem(16px)};
@@ -57,7 +56,7 @@
57
56
  --#{$slider}__thumb--before--BorderRadius: var(--pf-t--global--border--radius--large);
58
57
  --#{$slider}__thumb--before--TranslateX: -50%;
59
58
  --#{$slider}__thumb--before--TranslateY: -50%;
60
-
59
+
61
60
  // value
62
61
  --#{$slider}__value--MarginLeft: var(--pf-t--global--spacer--md);
63
62
  --#{$slider}__value--c-form-control--width-base: calc(var(--#{$form-control}--PaddingLeft) + var(--#{$form-control}--PaddingRight) + #{pf-size-prem(20px)}); // form control base width + number input spinner width
@@ -67,11 +66,11 @@
67
66
  --#{$slider}__value--m-floating--TranslateY: -100%;
68
67
  --#{$slider}__value--m-floating--Left: var(--#{$slider}--value);
69
68
  --#{$slider}__value--m-floating--ZIndex: var(--pf-t--global--z-index--sm);
70
-
69
+
71
70
  // actions
72
71
  --#{$slider}__actions--MarginRight: var(--pf-t--global--spacer--sm);
73
72
  --#{$slider}__main--actions--MarginLeft: var(--pf-t--global--spacer--sm);
74
-
73
+
75
74
  // disabled
76
75
  --#{$slider}--m-disabled__rail-track--before--fill--BackgroundColor: var(--pf-t--global--background--color--disabled--default);
77
76
  --#{$slider}--m-disabled__step--m-active__slider-tick--BackgroundColor: var(--pf-t--global--icon--color--disabled);
@@ -80,11 +79,11 @@
80
79
 
81
80
  .#{$slider} {
82
81
  @include pf-v6-bidirectional-style(
83
- $prop: --#{$slider}__rail-track--before--fill--direction,
82
+ $prop: --#{$slider}__rail-track--before--fill--direction,
84
83
  $ltr-val: right,
85
84
  $rtl-val: left
86
85
  );
87
-
86
+
88
87
  display: flex;
89
88
 
90
89
  &.pf-m-disabled {
@@ -1,5 +1,4 @@
1
- :root,
2
- .pf-v6-c-spinner {
1
+ :where(:root, .pf-v6-c-spinner) {
3
2
  --pf-v6-c-spinner--diameter: var(--pf-t--global--icon--size--2xl);
4
3
  --pf-v6-c-spinner--Width: var(--pf-v6-c-spinner--diameter);
5
4
  --pf-v6-c-spinner--Height: var(--pf-v6-c-spinner--diameter);
@@ -1,7 +1,6 @@
1
- // @debug $spinner; // check your variable names located in src/patternfly/sass-utilities/component-namespaces.scss
1
+ @use '../../sass-utilities' as *;
2
2
 
3
- :root,
4
- .#{$spinner} {
3
+ :where(:root, .#{$spinner}) {
5
4
  --#{$spinner}--diameter: var(--pf-t--global--icon--size--2xl);
6
5
  --#{$spinner}--Width: var(--#{$spinner}--diameter);
7
6
  --#{$spinner}--Height: var(--#{$spinner}--diameter);
@@ -13,13 +12,13 @@
13
12
  // path
14
13
  --#{$spinner}__path--StrokeWidth: var(--#{$spinner}--StrokeWidth);
15
14
  --#{$spinner}__path--AnimationTimingFunction: ease-in-out;
16
-
15
+
17
16
  // sizes
18
17
  --#{$spinner}--m-sm--diameter: var(--pf-t--global--icon--size--md);
19
18
  --#{$spinner}--m-md--diameter: var(--pf-t--global--icon--size--lg);
20
19
  --#{$spinner}--m-lg--diameter: var(--pf-t--global--icon--size--xl);
21
20
  --#{$spinner}--m-xl--diameter: var(--pf-t--global--icon--size--2xl);
22
-
21
+
23
22
  // inline
24
23
  --#{$spinner}--m-inline--diameter: 1em;
25
24
  }
@@ -1,5 +1,4 @@
1
- :root,
2
- .pf-v6-c-switch {
1
+ :where(:root, .pf-v6-c-switch) {
3
2
  --pf-v6-c-switch--FontSize: var(--pf-t--global--font--size--sm);
4
3
  --pf-v6-c-switch--ColumnGap: var(--pf-t--global--spacer--sm);
5
4
  --pf-v6-c-switch__toggle-icon--FontSize: calc(var(--pf-v6-c-switch--FontSize) * .625);