@patternfly/patternfly 6.0.0-alpha.8 → 6.0.0-alpha.81

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 (334) hide show
  1. package/CODE_OF_CONDUCT.md +1 -2
  2. package/assets/images/PF-Backdrop.svg +1 -0
  3. package/assets/images/PF-HorizontalLogo-Color.svg +29 -0
  4. package/assets/images/PF-HorizontalLogo-Reverse.svg +28 -0
  5. package/assets/images/PF-IconLogo-Reverse.svg +14 -0
  6. package/assets/images/PF-IconLogo-color.svg +17 -0
  7. package/assets/images/PF-IconLogo.svg +17 -0
  8. package/assets/images/logo__pf--reverse-on-md.svg +1 -1
  9. package/assets/images/pf-background.svg +22 -0
  10. package/assets/images/pf-c-brand__logo-on-lg-white.svg +32 -0
  11. package/assets/images/pf-c-brand__logo-on-md-white.svg +42 -0
  12. package/assets/images/pf-c-brand__logo-on-sm-white.svg +17 -0
  13. package/assets/images/pf-c-brand__logo-on-sm.svg +1 -1
  14. package/assets/images/pf-c-brand__logo-on-xl-white.svg +39 -0
  15. package/assets/images/pf_logo_white.hbs +35 -0
  16. package/assets/images/pf_logo_white.svg +38 -0
  17. package/base/_common.scss +8 -4
  18. package/base/_globals.scss +4 -6
  19. package/base/_variables.scss +2 -7
  20. package/base/patternfly-common.css +8 -4
  21. package/base/patternfly-globals.css +4 -3
  22. package/base/patternfly-variables.css +884 -871
  23. package/base/tokens/_tokens-charts.scss +159 -0
  24. package/base/tokens/_tokens-dark.scss +311 -287
  25. package/base/tokens/_tokens-default.scss +425 -329
  26. package/base/tokens/_tokens-font.scss +29 -36
  27. package/base/tokens/_tokens-palette.scss +71 -71
  28. package/base/tokens/_workspace-overrides.scss +7 -0
  29. package/components/AboutModalBox/about-modal-box.css +57 -94
  30. package/components/AboutModalBox/about-modal-box.scss +37 -62
  31. package/components/Accordion/accordion.css +85 -177
  32. package/components/Accordion/accordion.scss +96 -195
  33. package/components/ActionList/action-list.css +18 -17
  34. package/components/ActionList/action-list.scss +26 -16
  35. package/components/Alert/alert-group.css +20 -16
  36. package/components/Alert/alert-group.scss +20 -16
  37. package/components/Alert/alert.css +59 -84
  38. package/components/Alert/alert.scss +62 -78
  39. package/components/Avatar/avatar.css +10 -13
  40. package/components/Avatar/avatar.scss +10 -17
  41. package/components/BackToTop/back-to-top.css +17 -16
  42. package/components/BackToTop/back-to-top.scss +12 -12
  43. package/components/Backdrop/backdrop.css +6 -2
  44. package/components/Backdrop/backdrop.scss +5 -2
  45. package/components/BackgroundImage/background-image.css +5 -1
  46. package/components/BackgroundImage/background-image.scss +5 -1
  47. package/components/Badge/badge.css +23 -15
  48. package/components/Badge/badge.scss +25 -17
  49. package/components/Banner/banner.css +90 -64
  50. package/components/Banner/banner.scss +95 -32
  51. package/components/Breadcrumb/breadcrumb.css +19 -16
  52. package/components/Breadcrumb/breadcrumb.scss +18 -16
  53. package/components/Button/button.css +419 -353
  54. package/components/Button/button.scss +476 -476
  55. package/components/CalendarMonth/calendar-month.css +61 -92
  56. package/components/CalendarMonth/calendar-month.scss +68 -63
  57. package/components/Card/card.css +100 -194
  58. package/components/Card/card.scss +121 -237
  59. package/components/Check/check.css +24 -21
  60. package/components/Check/check.scss +25 -23
  61. package/components/ClipboardCopy/clipboard-copy.css +30 -33
  62. package/components/ClipboardCopy/clipboard-copy.scss +34 -26
  63. package/components/CodeBlock/code-block.css +22 -9
  64. package/components/CodeBlock/code-block.scss +22 -10
  65. package/components/CodeEditor/code-editor.css +94 -72
  66. package/components/CodeEditor/code-editor.scss +104 -82
  67. package/components/Content/content.css +7 -7
  68. package/components/Content/content.scss +7 -7
  69. package/components/DataList/data-list.css +101 -158
  70. package/components/DataList/data-list.scss +95 -154
  71. package/components/DatePicker/date-picker.css +13 -14
  72. package/components/DatePicker/date-picker.scss +12 -16
  73. package/components/DescriptionList/description-list.css +39 -34
  74. package/components/DescriptionList/description-list.scss +25 -25
  75. package/components/Divider/divider.css +91 -169
  76. package/components/Divider/divider.scss +60 -77
  77. package/components/DragDrop/drag-drop.css +18 -14
  78. package/components/DragDrop/drag-drop.scss +18 -17
  79. package/components/Drawer/drawer.css +112 -113
  80. package/components/Drawer/drawer.scss +134 -134
  81. package/components/Dropdown/dropdown.css +1 -3
  82. package/components/Dropdown/dropdown.scss +2 -6
  83. package/components/DualListSelector/dual-list-selector.css +56 -48
  84. package/components/DualListSelector/dual-list-selector.scss +57 -50
  85. package/components/EmptyState/empty-state.css +57 -34
  86. package/components/EmptyState/empty-state.scss +63 -34
  87. package/components/ExpandableSection/expandable-section.css +64 -62
  88. package/components/ExpandableSection/expandable-section.scss +73 -76
  89. package/components/FileUpload/file-upload.css +28 -34
  90. package/components/FileUpload/file-upload.scss +30 -42
  91. package/components/Form/form.css +68 -114
  92. package/components/Form/form.scss +65 -126
  93. package/components/FormControl/form-control.css +86 -111
  94. package/components/FormControl/form-control.scss +88 -92
  95. package/components/HelperText/helper-text.css +28 -34
  96. package/components/HelperText/helper-text.scss +30 -40
  97. package/components/Hint/hint.css +28 -21
  98. package/components/Hint/hint.scss +28 -24
  99. package/components/Icon/icon.css +154 -18
  100. package/components/Icon/icon.scss +187 -20
  101. package/components/InlineEdit/inline-edit.css +8 -7
  102. package/components/InlineEdit/inline-edit.scss +8 -7
  103. package/components/InputGroup/input-group.css +22 -38
  104. package/components/InputGroup/input-group.scss +21 -29
  105. package/components/JumpLinks/jump-links.css +34 -34
  106. package/components/JumpLinks/jump-links.scss +35 -36
  107. package/components/Label/label-group.css +39 -44
  108. package/components/Label/label-group.scss +39 -45
  109. package/components/Label/label.css +380 -355
  110. package/components/Label/label.scss +434 -348
  111. package/components/List/list.css +16 -16
  112. package/components/List/list.scss +17 -17
  113. package/components/Login/login.css +70 -97
  114. package/components/Login/login.scss +56 -64
  115. package/components/Masthead/masthead.css +261 -502
  116. package/components/Masthead/masthead.scss +123 -286
  117. package/components/Menu/menu.css +3 -0
  118. package/components/Menu/menu.scss +7 -3
  119. package/components/MenuToggle/menu-toggle.css +8 -8
  120. package/components/MenuToggle/menu-toggle.scss +8 -10
  121. package/components/ModalBox/modal-box.css +59 -52
  122. package/components/ModalBox/modal-box.scss +57 -53
  123. package/components/MultipleFileUpload/multiple-file-upload.css +77 -50
  124. package/components/MultipleFileUpload/multiple-file-upload.scss +82 -53
  125. package/components/Nav/nav.css +240 -918
  126. package/components/Nav/nav.scss +300 -1082
  127. package/components/NotificationBadge/notification-badge.css +56 -81
  128. package/components/NotificationBadge/notification-badge.scss +60 -97
  129. package/components/NotificationDrawer/notification-drawer.css +104 -115
  130. package/components/NotificationDrawer/notification-drawer.scss +106 -116
  131. package/components/NumberInput/number-input.css +8 -8
  132. package/components/NumberInput/number-input.scss +7 -12
  133. package/components/OverflowMenu/overflow-menu.css +17 -47
  134. package/components/OverflowMenu/overflow-menu.scss +27 -65
  135. package/components/Page/page.css +56 -164
  136. package/components/Page/page.scss +60 -154
  137. package/components/Pagination/pagination.css +57 -124
  138. package/components/Pagination/pagination.scss +40 -128
  139. package/components/Panel/panel.css +27 -23
  140. package/components/Panel/panel.scss +29 -26
  141. package/components/Popover/popover.css +42 -53
  142. package/components/Popover/popover.scss +46 -55
  143. package/components/Progress/progress.css +31 -45
  144. package/components/Progress/progress.scss +36 -55
  145. package/components/ProgressStepper/progress-stepper.css +72 -69
  146. package/components/ProgressStepper/progress-stepper.scss +65 -65
  147. package/components/Radio/radio.css +27 -20
  148. package/components/Radio/radio.scss +28 -22
  149. package/components/Sidebar/sidebar.css +20 -9
  150. package/components/Sidebar/sidebar.scss +23 -11
  151. package/components/SimpleList/simple-list.css +35 -52
  152. package/components/SimpleList/simple-list.scss +41 -51
  153. package/components/Skeleton/skeleton.css +18 -20
  154. package/components/Skeleton/skeleton.scss +17 -21
  155. package/components/SkipToContent/skip-to-content.css +6 -3
  156. package/components/SkipToContent/skip-to-content.scss +8 -6
  157. package/components/Slider/slider.css +34 -30
  158. package/components/Slider/slider.scss +46 -43
  159. package/components/Spinner/spinner.css +17 -34
  160. package/components/Spinner/spinner.scss +19 -47
  161. package/components/Switch/switch.css +42 -38
  162. package/components/Switch/switch.scss +48 -43
  163. package/components/TabContent/tab-content.css +17 -11
  164. package/components/TabContent/tab-content.scss +18 -14
  165. package/components/Table/table-grid.css +29 -45
  166. package/components/Table/table-grid.scss +40 -53
  167. package/components/Table/table-scrollable.css +6 -6
  168. package/components/Table/table-scrollable.scss +8 -8
  169. package/components/Table/table-tree-view.css +76 -74
  170. package/components/Table/table-tree-view.scss +44 -39
  171. package/components/Table/table.css +67 -93
  172. package/components/Table/table.scss +83 -105
  173. package/components/Tabs/tabs.css +143 -175
  174. package/components/Tabs/tabs.scss +159 -217
  175. package/components/Tile/tile.css +40 -81
  176. package/components/Tile/tile.scss +38 -84
  177. package/components/Timestamp/timestamp.css +12 -9
  178. package/components/Timestamp/timestamp.scss +11 -10
  179. package/components/Title/title.css +70 -19
  180. package/components/Title/title.scss +90 -20
  181. package/components/ToggleGroup/toggle-group.css +54 -48
  182. package/components/ToggleGroup/toggle-group.scss +62 -50
  183. package/components/Toolbar/toolbar.css +2527 -1031
  184. package/components/Toolbar/toolbar.scss +233 -520
  185. package/components/Tooltip/tooltip.css +16 -18
  186. package/components/Tooltip/tooltip.scss +20 -24
  187. package/components/TreeView/tree-view.css +76 -97
  188. package/components/TreeView/tree-view.scss +82 -113
  189. package/components/Truncate/truncate.css +4 -0
  190. package/components/Truncate/truncate.scss +3 -0
  191. package/docs/components/AboutModalBox/examples/AboutModalBox.md +2 -2
  192. package/docs/components/Accordion/examples/Accordion.md +614 -416
  193. package/docs/components/ActionList/examples/ActionList.md +73 -22
  194. package/docs/components/Alert/examples/Alert.md +3 -3
  195. package/docs/components/Avatar/examples/Avatar.md +5 -19
  196. package/docs/components/BackgroundImage/examples/BackgroundImage.md +1 -1
  197. package/docs/components/Badge/examples/Badge.md +21 -0
  198. package/docs/components/Banner/examples/Banner.md +48 -25
  199. package/docs/components/Brand/examples/Brand.css +12 -0
  200. package/docs/components/Brand/examples/Brand.md +51 -32
  201. package/docs/components/Breadcrumb/examples/Breadcrumb.md +1 -1
  202. package/docs/components/Button/examples/Button.css +4 -0
  203. package/docs/components/Button/examples/Button.md +1419 -93
  204. package/docs/components/CalendarMonth/examples/CalendarMonth.md +48 -224
  205. package/docs/components/Card/examples/Card.md +550 -133
  206. package/docs/components/Check/examples/Check.md +1 -0
  207. package/docs/components/CodeBlock/examples/CodeBlock.md +4 -4
  208. package/docs/components/CodeEditor/examples/CodeEditor.md +144 -132
  209. package/docs/components/Content/examples/Content.md +5 -5
  210. package/docs/components/DatePicker/examples/DatePicker.md +5 -2
  211. package/docs/components/Divider/examples/Divider.css +3 -1
  212. package/docs/components/Divider/examples/Divider.md +30 -5
  213. package/docs/components/DragDrop/examples/DragDrop.css +1 -1
  214. package/docs/components/Drawer/examples/Drawer.md +294 -256
  215. package/docs/components/EmptyState/examples/EmptyState.md +45 -1
  216. package/docs/components/ExpandableSection/examples/ExpandableSection.md +49 -28
  217. package/docs/components/FileUpload/examples/FileUpload.md +112 -53
  218. package/docs/components/Form/examples/Form.md +134 -89
  219. package/docs/components/Icon/examples/Icon.md +82 -11
  220. package/docs/components/InlineEdit/examples/InlineEdit.md +3 -1
  221. package/docs/components/JumpLinks/examples/JumpLinks.md +280 -168
  222. package/docs/components/Label/examples/Label.css +4 -0
  223. package/docs/components/Label/examples/Label.md +3090 -703
  224. package/docs/components/LogViewer/examples/LogViewer.md +180 -180
  225. package/docs/components/Login/examples/Login.md +10 -5
  226. package/docs/components/Masthead/examples/masthead.md +443 -65
  227. package/docs/components/Menu/examples/Menu.md +507 -473
  228. package/docs/components/MenuToggle/examples/MenuToggle.md +106 -114
  229. package/docs/components/MultipleFileUpload/examples/MultipleFileUpload.md +9 -9
  230. package/docs/components/Nav/examples/Navigation.css +1 -23
  231. package/docs/components/Nav/examples/Navigation.md +209 -356
  232. package/docs/components/NotificationBadge/examples/NotificationBadge.md +5 -7
  233. package/docs/components/Page/examples/Page.css +0 -8
  234. package/docs/components/Page/examples/Page.md +22 -21
  235. package/docs/components/Pagination/examples/Pagination.md +663 -637
  236. package/docs/components/Panel/examples/Panel.md +12 -0
  237. package/docs/components/Popover/examples/Popover.md +1 -1
  238. package/docs/components/ProgressStepper/examples/ProgressStepper.md +15 -14
  239. package/docs/components/Radio/examples/Radio.md +1 -1
  240. package/docs/components/Sidebar/examples/Sidebar.md +19 -0
  241. package/docs/components/SimpleList/examples/SimpleList.md +3 -3
  242. package/docs/components/TabContent/examples/TabContent.md +10 -10
  243. package/docs/components/Table/examples/Table.md +8 -8
  244. package/docs/components/Tabs/examples/Tabs.css +1 -1
  245. package/docs/components/Tabs/examples/Tabs.md +1025 -826
  246. package/docs/components/TextInputGroup/examples/TextInputGroup.md +9 -9
  247. package/docs/components/Tile/examples/Tile.md +264 -144
  248. package/docs/components/Title/examples/Title.md +18 -0
  249. package/docs/components/Toolbar/examples/Toolbar.css +20 -15
  250. package/docs/components/Toolbar/examples/Toolbar.md +985 -3355
  251. package/docs/components/TreeView/examples/TreeView.md +7 -57
  252. package/docs/components/Truncate/examples/Truncate.css +2 -2
  253. package/docs/demos/AboutModal/examples/AboutModal.md +104 -31
  254. package/docs/demos/Alert/examples/Alert.md +330 -87
  255. package/docs/demos/BackToTop/examples/BackToTop.md +102 -29
  256. package/docs/demos/Banner/examples/Banner.md +211 -60
  257. package/docs/demos/Card/examples/Card.md +2 -2
  258. package/docs/demos/CardView/examples/CardView.md +241 -187
  259. package/docs/demos/ContextSelector/examples/ContextSelector.md +377 -94
  260. package/docs/demos/Dashboard/examples/Dashboard.md +102 -29
  261. package/docs/demos/DataList/examples/DataList.md +999 -938
  262. package/docs/demos/DescriptionList/examples/DescriptionList.md +306 -87
  263. package/docs/demos/Drawer/examples/Drawer.md +640 -251
  264. package/docs/demos/Form/examples/BasicForms.md +138 -84
  265. package/docs/demos/JumpLinks/examples/JumpLinks.md +917 -385
  266. package/docs/demos/Masthead/examples/Masthead.md +786 -342
  267. package/docs/demos/Modal/examples/Modal.md +645 -198
  268. package/docs/demos/Nav/examples/Nav.md +691 -902
  269. package/docs/demos/NotificationDrawer/examples/NotificationDrawer.md +515 -145
  270. package/docs/demos/Page/examples/Page.md +942 -273
  271. package/docs/demos/Page/examples/Penta.md +66 -26
  272. package/docs/demos/PasswordGenerator/examples/PasswordGenerator.md +13 -9
  273. package/docs/demos/PasswordStrength/examples/PasswordStrength.md +44 -32
  274. package/docs/demos/PrimaryDetail/examples/PrimaryDetail.md +1183 -832
  275. package/docs/demos/Skeleton/examples/Skeleton.md +102 -29
  276. package/docs/demos/Table/examples/Table.md +3811 -3456
  277. package/docs/demos/Tabs/examples/Tabs.md +636 -194
  278. package/docs/demos/Toolbar/examples/Toolbar.css +10 -0
  279. package/docs/demos/Toolbar/examples/Toolbar.md +1316 -1478
  280. package/docs/demos/Wizard/examples/Wizard.md +918 -261
  281. package/docs/layouts/Flex/examples/Flex.md +11 -11
  282. package/package.json +32 -32
  283. package/patternfly-base-no-globals-theme-dark-unversioned.css +897 -880
  284. package/patternfly-base-no-globals.css +897 -880
  285. package/patternfly-base-theme-dark-unversioned.css +890 -872
  286. package/patternfly-base.css +890 -872
  287. package/patternfly-no-globals.css +8107 -8027
  288. package/patternfly-theme-dark-unversioned.css +8111 -8030
  289. package/patternfly.css +8111 -8030
  290. package/patternfly.min.css +1 -1
  291. package/patternfly.min.css.map +1 -1
  292. package/sass-utilities/mixins.scss +18 -0
  293. package/base/themes/dark/_variables.scss +0 -102
  294. package/components/AboutModalBox/themes/dark/about-modal-box.scss +0 -7
  295. package/components/Accordion/themes/dark/accordion.scss +0 -9
  296. package/components/Alert/themes/dark/alert.scss +0 -17
  297. package/components/Badge/themes/dark/badge.scss +0 -9
  298. package/components/Banner/themes/dark/banner.scss +0 -14
  299. package/components/Button/themes/dark/button.scss +0 -51
  300. package/components/CalendarMonth/themes/dark/calendar-month.scss +0 -37
  301. package/components/Card/themes/dark/card.scss +0 -20
  302. package/components/ClipboardCopy/themes/dark/clipboard-copy.scss +0 -19
  303. package/components/CodeEditor/themes/dark/code-editor.scss +0 -14
  304. package/components/DataList/themes/dark/data-list.scss +0 -10
  305. package/components/DatePicker/themes/dark/date-picker.scss +0 -8
  306. package/components/DragDrop/themes/dark/drag-drop.scss +0 -7
  307. package/components/Drawer/themes/dark/drawer.scss +0 -13
  308. package/components/DualListSelector/themes/dark/dual-list-selector.scss +0 -9
  309. package/components/Form/themes/dark/form.scss +0 -7
  310. package/components/FormControl/themes/dark/form-control.scss +0 -24
  311. package/components/HelperText/themes/dark/helper-text.scss +0 -7
  312. package/components/Hint/themes/dark/hint.scss +0 -8
  313. package/components/InputGroup/themes/dark/input-group.scss +0 -22
  314. package/components/Label/themes/dark/label.scss +0 -53
  315. package/components/Login/themes/dark/login.scss +0 -12
  316. package/components/Masthead/themes/dark/masthead.scss +0 -14
  317. package/components/ModalBox/themes/dark/modal-box.scss +0 -7
  318. package/components/NotificationBadge/themes/dark/notification-badge.scss +0 -10
  319. package/components/NotificationDrawer/themes/dark/notification-drawer.scss +0 -14
  320. package/components/Page/themes/dark/page.scss +0 -69
  321. package/components/Pagination/themes/dark/pagination.scss +0 -7
  322. package/components/Panel/themes/dark/panel.scss +0 -7
  323. package/components/Popover/themes/dark/popover.scss +0 -11
  324. package/components/Progress/themes/dark/progress.scss +0 -9
  325. package/components/SimpleList/themes/dark/simple-list.scss +0 -14
  326. package/components/Skeleton/themes/dark/skeleton.scss +0 -10
  327. package/components/Switch/themes/dark/switch.scss +0 -11
  328. package/components/Tabs/themes/dark/tabs.scss +0 -10
  329. package/components/Tile/themes/dark/tile.scss +0 -10
  330. package/components/ToggleGroup/themes/dark/toggle-group.scss +0 -12
  331. package/components/Tooltip/themes/dark/tooltip.scss +0 -8
  332. package/components/TreeView/themes/dark/tree-view.scss +0 -8
  333. package/docs/components/Avatar/examples/Avatar.css +0 -3
  334. package/docs/components/NotificationBadge/examples/NotificationBadge.css +0 -3
@@ -1,74 +1,62 @@
1
- .pf-v5-c-alert {
2
- --pf-v5-global--Color--100: var(--pf-v5-global--Color--dark-100);
3
- --pf-v5-global--Color--200: var(--pf-v5-global--Color--dark-200);
4
- --pf-v5-global--BorderColor--100: var(--pf-v5-global--BorderColor--dark-100);
5
- --pf-v5-global--primary-color--100: var(--pf-v5-global--primary-color--dark-100);
6
- --pf-v5-global--link--Color: var(--pf-v5-global--link--Color--dark);
7
- --pf-v5-global--link--Color--hover: var(--pf-v5-global--link--Color--dark--hover);
8
- --pf-v5-global--BackgroundColor--100: var(--pf-v5-global--BackgroundColor--light-100);
9
- --pf-v5-global--icon--Color--light: var(--pf-v5-global--icon--Color--light--dark);
10
- --pf-v5-global--icon--Color--dark: var(--pf-v5-global--icon--Color--dark--dark);
11
- }
12
-
13
- .pf-v5-c-alert {
14
- --pf-v5-c-alert--BoxShadow: var(--pf-v5-global--BoxShadow--lg);
15
- --pf-v5-c-alert--BackgroundColor: var(--pf-v5-global--BackgroundColor--100);
1
+ :root {
2
+ --pf-v5-c-alert--BoxShadow: var(--pf-t--global--box-shadow--lg);
3
+ --pf-v5-c-alert--BackgroundColor: var(--pf-t--global--background--color--floating--default);
16
4
  --pf-v5-c-alert--GridTemplateColumns: max-content 1fr max-content;
17
5
  --pf-v5-c-alert--GridTemplateAreas:
18
6
  "icon title action"
19
7
  ". description description"
20
8
  ". actiongroup actiongroup";
21
- --pf-v5-c-alert--BorderTopWidth: var(--pf-v5-global--BorderWidth--md);
22
- --pf-v5-c-alert--BorderTopColor: var(--pf-v5-global--BorderColor--100);
23
- --pf-v5-c-alert--PaddingTop: var(--pf-v5-global--spacer--md);
24
- --pf-v5-c-alert--PaddingRight: var(--pf-v5-global--spacer--md);
25
- --pf-v5-c-alert--PaddingBottom: var(--pf-v5-global--spacer--md);
26
- --pf-v5-c-alert--PaddingLeft: var(--pf-v5-global--spacer--md);
27
- --pf-v5-c-alert__FontSize: var(--pf-v5-global--FontSize--sm);
9
+ --pf-v5-c-alert--BorderWidth: var(--pf-t--global--border--width--box--status--default);
10
+ --pf-v5-c-alert--BorderColor: transparent;
11
+ --pf-v5-c-alert--BorderRadius: var(--pf-t--global--border--radius--medium);
12
+ --pf-v5-c-alert--PaddingTop: var(--pf-t--global--spacer--md);
13
+ --pf-v5-c-alert--PaddingRight: var(--pf-t--global--spacer--md);
14
+ --pf-v5-c-alert--PaddingBottom: var(--pf-t--global--spacer--md);
15
+ --pf-v5-c-alert--PaddingLeft: var(--pf-t--global--spacer--md);
16
+ --pf-v5-c-alert--FontSize: var(--pf-t--global--font--size--body--default);
28
17
  --pf-v5-c-alert__toggle--MarginTop: calc(-1 * var(--pf-v5-global--spacer--form-element) - 0.0625rem);
29
18
  --pf-v5-c-alert__toggle--MarginBottom: calc(-1 * var(--pf-v5-global--spacer--form-element));
30
- --pf-v5-c-alert__toggle--MarginLeft: calc(-1 * var(--pf-v5-global--spacer--md));
19
+ --pf-v5-c-alert__toggle--MarginRight: var(--pf-t--global--spacer--sm);
31
20
  --pf-v5-c-alert__toggle-icon--Rotate: 0;
32
21
  --pf-v5-c-alert__toggle-icon--Transition: var(--pf-v5-global--Transition);
33
- --pf-v5-c-alert__icon--Color: var(--pf-v5-global--Color--100);
34
- --pf-v5-c-alert__icon--MarginTop: 0.0625rem;
35
- --pf-v5-c-alert__icon--MarginRight: var(--pf-v5-global--spacer--sm);
36
- --pf-v5-c-alert__icon--FontSize: var(--pf-v5-global--icon--FontSize--md);
37
- --pf-v5-c-alert__title--FontWeight: var(--pf-v5-global--FontWeight--bold);
38
- --pf-v5-c-alert__title--Color: var(--pf-v5-global--Color--100);
22
+ --pf-v5-c-alert__icon--Color: var(--pf-t--global--icon--color--regular);
23
+ --pf-v5-c-alert__icon--MarginTop: 0.25rem;
24
+ --pf-v5-c-alert__icon--MarginRight: var(--pf-t--global--spacer--sm);
25
+ --pf-v5-c-alert__icon--FontSize: var(--pf-t--global--icon--size--md);
26
+ --pf-v5-c-alert__title--FontFamily: var(--pf-t--global--font--family--heading);
27
+ --pf-v5-c-alert__title--FontSize: var(--pf-t--global--font--size--heading--xs);
28
+ --pf-v5-c-alert__title--FontWeight: var(--pf-t--global--font--weight--heading);
29
+ --pf-v5-c-alert__title--LineHeight: var(--pf-t--global--font--line-height--heading);
30
+ --pf-v5-c-alert__title--Color: var(--pf-t--global--text--color--regular);
39
31
  --pf-v5-c-alert__title--max-lines: 1;
40
32
  --pf-v5-c-alert__action--MarginTop: calc(var(--pf-v5-global--spacer--form-element) * -1);
41
33
  --pf-v5-c-alert__action--MarginBottom: calc(var(--pf-v5-global--spacer--form-element) * -1);
42
34
  --pf-v5-c-alert__action--TranslateY: 0.125rem;
43
- --pf-v5-c-alert__action--MarginRight: calc(var(--pf-v5-global--spacer--sm) * -1);
44
- --pf-v5-c-alert__description--PaddingTop: var(--pf-v5-global--spacer--xs);
45
- --pf-v5-c-alert__action-group--PaddingTop-base: var(--pf-v5-global--spacer--xs);
35
+ --pf-v5-c-alert__action--MarginRight: calc(var(--pf-t--global--spacer--sm) * -1);
36
+ --pf-v5-c-alert__description--PaddingTop: var(--pf-t--global--spacer--xs);
37
+ --pf-v5-c-alert__action-group--PaddingTop-base: var(--pf-t--global--spacer--xs);
46
38
  --pf-v5-c-alert__action-group--PaddingTop: var(--pf-v5-c-alert__action-group--PaddingTop-base);
47
- --pf-v5-c-alert__description--action-group--PaddingTop-base: var(--pf-v5-global--spacer--md);
39
+ --pf-v5-c-alert__description--action-group--PaddingTop-base: var(--pf-t--global--spacer--sm);
48
40
  --pf-v5-c-alert__description--action-group--PaddingTop: var(--pf-v5-c-alert__description--action-group--PaddingTop-base);
49
- --pf-v5-c-alert__action-group__c-button--not-last-child--MarginRight: var(--pf-v5-global--spacer--lg);
50
- --pf-v5-c-alert--m-custom--BorderTopColor: var(--pf-v5-global--custom-color--200);
51
- --pf-v5-c-alert--m-custom__icon--Color: var(--pf-v5-global--custom-color--200);
52
- --pf-v5-c-alert--m-custom__title--Color: var(--pf-v5-global--custom-color--300);
53
- --pf-v5-c-alert--m-success--BorderTopColor: var(--pf-v5-global--success-color--100);
54
- --pf-v5-c-alert--m-success__icon--Color: var(--pf-v5-global--success-color--100);
55
- --pf-v5-c-alert--m-success__title--Color: var(--pf-v5-global--success-color--200);
56
- --pf-v5-c-alert--m-danger--BorderTopColor: var(--pf-v5-global--danger-color--100);
57
- --pf-v5-c-alert--m-danger__icon--Color: var(--pf-v5-global--danger-color--100);
58
- --pf-v5-c-alert--m-danger__title--Color: var(--pf-v5-global--danger-color--200);
59
- --pf-v5-c-alert--m-warning--BorderTopColor: var(--pf-v5-global--warning-color--100);
60
- --pf-v5-c-alert--m-warning__icon--Color: var(--pf-v5-global--warning-color--100);
61
- --pf-v5-c-alert--m-warning__title--Color: var(--pf-v5-global--warning-color--200);
62
- --pf-v5-c-alert--m-info--BorderTopColor: var(--pf-v5-global--info-color--100);
63
- --pf-v5-c-alert--m-info__icon--Color: var(--pf-v5-global--info-color--100);
64
- --pf-v5-c-alert--m-info__title--Color: var(--pf-v5-global--info-color--200);
41
+ --pf-v5-c-alert__action-group__c-button--not-last-child--MarginRight: var(--pf-t--global--spacer--lg);
42
+ --pf-v5-c-alert--m-custom--BorderColor: var(--pf-t--global--border--color--status--custom--default);
43
+ --pf-v5-c-alert--m-custom__icon--Color: var(--pf-t--global--icon--color--status--custom--default);
44
+ --pf-v5-c-alert--m-custom__title--Color: var(--pf-t--global--text--color--regular);
45
+ --pf-v5-c-alert--m-success--BorderColor: var(--pf-t--global--border--color--status--success--default);
46
+ --pf-v5-c-alert--m-success__icon--Color: var(--pf-t--global--icon--color--status--success--default);
47
+ --pf-v5-c-alert--m-success__title--Color: var(--pf-t--global--text--color--regular);
48
+ --pf-v5-c-alert--m-danger--BorderColor: var(--pf-t--global--border--color--status--danger--default);
49
+ --pf-v5-c-alert--m-danger__icon--Color: var(--pf-t--global--icon--color--status--danger--default);
50
+ --pf-v5-c-alert--m-danger__title--Color: var(--pf-t--global--text--color--regular);
51
+ --pf-v5-c-alert--m-warning--BorderColor: var(--pf-t--global--border--color--status--warning--default);
52
+ --pf-v5-c-alert--m-warning__icon--Color: var(--pf-t--global--icon--color--status--warning--default);
53
+ --pf-v5-c-alert--m-warning__title--Color: var(--pf-t--global--text--color--regular);
54
+ --pf-v5-c-alert--m-info--BorderColor: var(--pf-t--global--border--color--status--info--default);
55
+ --pf-v5-c-alert--m-info__icon--Color: var(--pf-t--global--icon--color--status--info--default);
56
+ --pf-v5-c-alert--m-info__title--Color: var(--pf-t--global--text--color--regular);
57
+ --pf-v5-c-alert--m-inline--BackgroundColor: var(--pf-t--global--background--color--primary--default);
65
58
  --pf-v5-c-alert--m-inline--BoxShadow: none;
66
- --pf-v5-c-alert--m-inline--m-custom--BackgroundColor: var(--pf-v5-global--palette--cyan-50);
67
- --pf-v5-c-alert--m-inline--m-success--BackgroundColor: var(--pf-v5-global--palette--green-50);
68
- --pf-v5-c-alert--m-inline--m-danger--BackgroundColor: var(--pf-v5-global--palette--red-50);
69
- --pf-v5-c-alert--m-inline--m-warning--BackgroundColor: var(--pf-v5-global--palette--gold-50);
70
- --pf-v5-c-alert--m-inline--m-info--BackgroundColor: var(--pf-v5-global--palette--blue-50);
71
- --pf-v5-c-alert--m-inline--m-plain--BorderTopWidth: 0;
59
+ --pf-v5-c-alert--m-inline--m-plain--BorderWidth: 0;
72
60
  --pf-v5-c-alert--m-inline--m-plain--BackgroundColor: transparent;
73
61
  --pf-v5-c-alert--m-inline--m-plain--PaddingTop: 0;
74
62
  --pf-v5-c-alert--m-inline--m-plain--PaddingRight: 0;
@@ -82,7 +70,9 @@
82
70
  --pf-v5-c-alert--m-expandable__description--action-group--PaddingTop: var(--pf-v5-c-alert__action-group--PaddingTop-base);
83
71
  --pf-v5-c-alert--m-expanded__toggle-icon--Rotate: 90deg;
84
72
  --pf-v5-c-alert--m-expanded__description--action-group--PaddingTop: var(--pf-v5-c-alert__description--action-group--PaddingTop-base);
85
- color: var(--pf-v5-global--Color--100);
73
+ }
74
+
75
+ .pf-v5-c-alert {
86
76
  position: relative;
87
77
  display: grid;
88
78
  grid-template-areas: var(--pf-v5-c-alert--GridTemplateAreas);
@@ -91,47 +81,43 @@
91
81
  padding-block-end: var(--pf-v5-c-alert--PaddingBottom);
92
82
  padding-inline-start: var(--pf-v5-c-alert--PaddingLeft);
93
83
  padding-inline-end: var(--pf-v5-c-alert--PaddingRight);
94
- font-size: var(--pf-v5-c-alert__FontSize);
84
+ font-size: var(--pf-v5-c-alert--FontSize);
95
85
  background-color: var(--pf-v5-c-alert--BackgroundColor);
96
- border-block-start: var(--pf-v5-c-alert--BorderTopWidth) solid var(--pf-v5-c-alert--BorderTopColor);
86
+ border: var(--pf-v5-c-alert--BorderWidth) solid var(--pf-v5-c-alert--BorderColor);
87
+ border-radius: var(--pf-v5-c-alert--BorderRadius);
97
88
  box-shadow: var(--pf-v5-c-alert--BoxShadow);
98
89
  }
99
90
  .pf-v5-c-alert.pf-m-custom {
100
- --pf-v5-c-alert--BorderTopColor: var(--pf-v5-c-alert--m-custom--BorderTopColor);
91
+ --pf-v5-c-alert--BorderColor: var(--pf-v5-c-alert--m-custom--BorderColor);
101
92
  --pf-v5-c-alert__icon--Color: var(--pf-v5-c-alert--m-custom__icon--Color);
102
93
  --pf-v5-c-alert__title--Color: var(--pf-v5-c-alert--m-custom__title--Color);
103
- --pf-v5-c-alert--m-inline--BackgroundColor: var(--pf-v5-c-alert--m-inline--m-custom--BackgroundColor);
104
94
  }
105
95
  .pf-v5-c-alert.pf-m-success {
106
- --pf-v5-c-alert--BorderTopColor: var(--pf-v5-c-alert--m-success--BorderTopColor);
96
+ --pf-v5-c-alert--BorderColor: var(--pf-v5-c-alert--m-success--BorderColor);
107
97
  --pf-v5-c-alert__icon--Color: var(--pf-v5-c-alert--m-success__icon--Color);
108
98
  --pf-v5-c-alert__title--Color: var(--pf-v5-c-alert--m-success__title--Color);
109
- --pf-v5-c-alert--m-inline--BackgroundColor: var(--pf-v5-c-alert--m-inline--m-success--BackgroundColor);
110
99
  }
111
100
  .pf-v5-c-alert.pf-m-danger {
112
- --pf-v5-c-alert--BorderTopColor: var(--pf-v5-c-alert--m-danger--BorderTopColor);
101
+ --pf-v5-c-alert--BorderColor: var(--pf-v5-c-alert--m-danger--BorderColor);
113
102
  --pf-v5-c-alert__icon--Color: var(--pf-v5-c-alert--m-danger__icon--Color);
114
103
  --pf-v5-c-alert__title--Color: var(--pf-v5-c-alert--m-danger__title--Color);
115
- --pf-v5-c-alert--m-inline--BackgroundColor: var(--pf-v5-c-alert--m-inline--m-danger--BackgroundColor);
116
104
  }
117
105
  .pf-v5-c-alert.pf-m-warning {
118
- --pf-v5-c-alert--BorderTopColor: var(--pf-v5-c-alert--m-warning--BorderTopColor);
106
+ --pf-v5-c-alert--BorderColor: var(--pf-v5-c-alert--m-warning--BorderColor);
119
107
  --pf-v5-c-alert__icon--Color: var(--pf-v5-c-alert--m-warning__icon--Color);
120
108
  --pf-v5-c-alert__title--Color: var(--pf-v5-c-alert--m-warning__title--Color);
121
- --pf-v5-c-alert--m-inline--BackgroundColor: var(--pf-v5-c-alert--m-inline--m-warning--BackgroundColor);
122
109
  }
123
110
  .pf-v5-c-alert.pf-m-info {
124
- --pf-v5-c-alert--BorderTopColor: var(--pf-v5-c-alert--m-info--BorderTopColor);
111
+ --pf-v5-c-alert--BorderColor: var(--pf-v5-c-alert--m-info--BorderColor);
125
112
  --pf-v5-c-alert__icon--Color: var(--pf-v5-c-alert--m-info__icon--Color);
126
113
  --pf-v5-c-alert__title--Color: var(--pf-v5-c-alert--m-info__title--Color);
127
- --pf-v5-c-alert--m-inline--BackgroundColor: var(--pf-v5-c-alert--m-inline--m-info--BackgroundColor);
128
114
  }
129
115
  .pf-v5-c-alert.pf-m-inline {
130
116
  --pf-v5-c-alert--BoxShadow: var(--pf-v5-c-alert--m-inline--BoxShadow);
131
117
  --pf-v5-c-alert--BackgroundColor: var(--pf-v5-c-alert--m-inline--BackgroundColor);
132
118
  }
133
119
  .pf-v5-c-alert.pf-m-plain {
134
- --pf-v5-c-alert--BorderTopWidth: var(--pf-v5-c-alert--m-inline--m-plain--BorderTopWidth);
120
+ --pf-v5-c-alert--BorderWidth: var(--pf-v5-c-alert--m-inline--m-plain--BorderWidth);
135
121
  --pf-v5-c-alert--BackgroundColor: var(--pf-v5-c-alert--m-inline--m-plain--BackgroundColor);
136
122
  --pf-v5-c-alert--PaddingTop: var(--pf-v5-c-alert--m-inline--m-plain--PaddingTop);
137
123
  --pf-v5-c-alert--PaddingRight: var(--pf-v5-c-alert--m-inline--m-plain--PaddingRight);
@@ -151,7 +137,7 @@
151
137
  .pf-v5-c-alert__toggle {
152
138
  margin-block-start: var(--pf-v5-c-alert__toggle--MarginTop);
153
139
  margin-block-end: var(--pf-v5-c-alert__toggle--MarginBottom);
154
- margin-inline-start: var(--pf-v5-c-alert__toggle--MarginLeft);
140
+ margin-inline-end: var(--pf-v5-c-alert__toggle--MarginRight);
155
141
  }
156
142
 
157
143
  .pf-v5-c-alert__toggle-icon {
@@ -174,7 +160,10 @@
174
160
 
175
161
  .pf-v5-c-alert__title {
176
162
  grid-area: title;
163
+ font-family: var(--pf-v5-c-alert__title--FontFamily);
164
+ font-size: var(--pf-v5-c-alert__title--FontSize);
177
165
  font-weight: var(--pf-v5-c-alert__title--FontWeight);
166
+ line-height: var(--pf-v5-c-alert__title--LineHeight);
178
167
  color: var(--pf-v5-c-alert__title--Color);
179
168
  word-break: break-word;
180
169
  }
@@ -214,18 +203,4 @@
214
203
  }
215
204
  .pf-v5-c-alert__action-group > .pf-v5-c-button:not(:last-child) {
216
205
  margin-inline-end: var(--pf-v5-c-alert__action-group__c-button--not-last-child--MarginRight);
217
- }
218
-
219
- :where(.pf-v5-theme-dark) .pf-v5-c-alert {
220
- --pf-v5-c-alert--BackgroundColor: var(--pf-v5-global--BackgroundColor--300);
221
- --pf-v5-c-alert--m-custom__title--Color: var(--pf-v5-global--custom-color--200);
222
- --pf-v5-c-alert--m-success__title--Color: var(--pf-v5-global--success-color--100);
223
- --pf-v5-c-alert--m-danger__title--Color: var(--pf-v5-global--danger-color--100);
224
- --pf-v5-c-alert--m-warning__title--Color: var(--pf-v5-global--warning-color--100);
225
- --pf-v5-c-alert--m-info__title--Color: var(--pf-v5-global--info-color--100);
226
- --pf-v5-c-alert--m-inline--m-custom--BackgroundColor: var(--pf-v5-global--BackgroundColor--300);
227
- --pf-v5-c-alert--m-inline--m-success--BackgroundColor: var(--pf-v5-global--BackgroundColor--300);
228
- --pf-v5-c-alert--m-inline--m-danger--BackgroundColor: var(--pf-v5-global--BackgroundColor--300);
229
- --pf-v5-c-alert--m-inline--m-warning--BackgroundColor: var(--pf-v5-global--BackgroundColor--300);
230
- --pf-v5-c-alert--m-inline--m-info--BackgroundColor: var(--pf-v5-global--BackgroundColor--300);
231
206
  }
@@ -1,103 +1,95 @@
1
1
  // @debug $alert; // check your variable names located in src/patternfly/sass-utilities/component-namespaces.scss
2
2
 
3
- .#{$alert} {
3
+ // TODO create a token for --#{$pf-global}--spacer--form-element ?
4
+
5
+ :root {
4
6
  // Alert variables
5
- --#{$alert}--BoxShadow: var(--#{$pf-global}--BoxShadow--lg);
6
- --#{$alert}--BackgroundColor: var(--#{$pf-global}--BackgroundColor--100);
7
+ --#{$alert}--BoxShadow: var(--pf-t--global--box-shadow--lg);
8
+ --#{$alert}--BackgroundColor: var(--pf-t--global--background--color--floating--default);
7
9
  --#{$alert}--GridTemplateColumns: max-content 1fr max-content;
8
10
  --#{$alert}--GridTemplateAreas:
9
11
  "icon title action"
10
12
  ". description description"
11
13
  ". actiongroup actiongroup";
12
- --#{$alert}--BorderTopWidth: var(--#{$pf-global}--BorderWidth--md);
13
- --#{$alert}--BorderTopColor: var(--#{$pf-global}--BorderColor--100);
14
- --#{$alert}--PaddingTop: var(--#{$pf-global}--spacer--md);
15
- --#{$alert}--PaddingRight: var(--#{$pf-global}--spacer--md);
16
- --#{$alert}--PaddingBottom: var(--#{$pf-global}--spacer--md);
17
- --#{$alert}--PaddingLeft: var(--#{$pf-global}--spacer--md);
18
- --#{$alert}__FontSize: var(--#{$pf-global}--FontSize--sm);
14
+ --#{$alert}--BorderWidth: var(--pf-t--global--border--width--box--status--default);
15
+ --#{$alert}--BorderColor: transparent;
16
+ --#{$alert}--BorderRadius: var(--pf-t--global--border--radius--medium);
17
+ --#{$alert}--PaddingTop: var(--pf-t--global--spacer--md);
18
+ --#{$alert}--PaddingRight: var(--pf-t--global--spacer--md);
19
+ --#{$alert}--PaddingBottom: var(--pf-t--global--spacer--md);
20
+ --#{$alert}--PaddingLeft: var(--pf-t--global--spacer--md);
21
+ --#{$alert}--FontSize: var(--pf-t--global--font--size--body--default);
19
22
 
20
23
  // Toggle
21
24
  --#{$alert}__toggle--MarginTop: calc(-1 * var(--#{$pf-global}--spacer--form-element) - #{pf-size-prem(1px)});
22
25
  --#{$alert}__toggle--MarginBottom: calc(-1 * var(--#{$pf-global}--spacer--form-element));
23
- --#{$alert}__toggle--MarginLeft: calc(-1 * var(--#{$pf-global}--spacer--md));
26
+ --#{$alert}__toggle--MarginRight: var(--pf-t--global--spacer--sm);
24
27
 
25
28
  // Toggle icon
26
29
  --#{$alert}__toggle-icon--Rotate: 0;
27
30
  --#{$alert}__toggle-icon--Transition: var(--#{$pf-global}--Transition);
28
31
 
29
32
  // Icon
30
- --#{$alert}__icon--Color: var(--#{$pf-global}--Color--100);
31
- --#{$alert}__icon--MarginTop: #{pf-size-prem(1px)};
32
- --#{$alert}__icon--MarginRight: var(--#{$pf-global}--spacer--sm);
33
- --#{$alert}__icon--FontSize: var(--#{$pf-global}--icon--FontSize--md);
33
+ --#{$alert}__icon--Color: var(--pf-t--global--icon--color--regular);
34
+ --#{$alert}__icon--MarginTop: #{pf-size-prem(4px)};
35
+ --#{$alert}__icon--MarginRight: var(--pf-t--global--spacer--sm);
36
+ --#{$alert}__icon--FontSize: var(--pf-t--global--icon--size--md);
34
37
 
35
38
  // Title
36
- --#{$alert}__title--FontWeight: var(--#{$pf-global}--FontWeight--bold);
37
- --#{$alert}__title--Color: var(--#{$pf-global}--Color--100);
39
+ --#{$alert}__title--FontFamily: var(--pf-t--global--font--family--heading);
40
+ --#{$alert}__title--FontSize: var(--pf-t--global--font--size--heading--xs);
41
+ --#{$alert}__title--FontWeight: var(--pf-t--global--font--weight--heading);
42
+ --#{$alert}__title--LineHeight: var(--pf-t--global--font--line-height--heading);
43
+ --#{$alert}__title--Color: var(--pf-t--global--text--color--regular);
38
44
  --#{$alert}__title--max-lines: 1;
39
45
 
40
46
  // Action
41
47
  --#{$alert}__action--MarginTop: calc(var(--#{$pf-global}--spacer--form-element) * -1);
42
48
  --#{$alert}__action--MarginBottom: calc(var(--#{$pf-global}--spacer--form-element) * -1);
43
49
  --#{$alert}__action--TranslateY: #{pf-size-prem(2px)};
44
- --#{$alert}__action--MarginRight: calc(var(--#{$pf-global}--spacer--sm) * -1);
50
+ --#{$alert}__action--MarginRight: calc(var(--pf-t--global--spacer--sm) * -1);
45
51
 
46
52
  // Description
47
- --#{$alert}__description--PaddingTop: var(--#{$pf-global}--spacer--xs);
53
+ --#{$alert}__description--PaddingTop: var(--pf-t--global--spacer--xs);
48
54
 
49
55
  // Action group
50
- --#{$alert}__action-group--PaddingTop-base: var(--#{$pf-global}--spacer--xs);
56
+ --#{$alert}__action-group--PaddingTop-base: var(--pf-t--global--spacer--xs);
51
57
  --#{$alert}__action-group--PaddingTop: var(--#{$alert}__action-group--PaddingTop-base);
52
- --#{$alert}__description--action-group--PaddingTop-base: var(--#{$pf-global}--spacer--md);
58
+ --#{$alert}__description--action-group--PaddingTop-base: var(--pf-t--global--spacer--sm);
53
59
  --#{$alert}__description--action-group--PaddingTop: var(--#{$alert}__description--action-group--PaddingTop-base);
54
- --#{$alert}__action-group__c-button--not-last-child--MarginRight: var(--#{$pf-global}--spacer--lg);
60
+ --#{$alert}__action-group__c-button--not-last-child--MarginRight: var(--pf-t--global--spacer--lg);
55
61
 
56
62
  // Custom
57
- --#{$alert}--m-custom--BorderTopColor: var(--#{$pf-global}--custom-color--200);
58
- --#{$alert}--m-custom__icon--Color: var(--#{$pf-global}--custom-color--200);
59
- --#{$alert}--m-custom__title--Color: var(--#{$pf-global}--custom-color--300);
63
+ --#{$alert}--m-custom--BorderColor: var(--pf-t--global--border--color--status--custom--default);
64
+ --#{$alert}--m-custom__icon--Color: var(--pf-t--global--icon--color--status--custom--default);
65
+ --#{$alert}--m-custom__title--Color: var(--pf-t--global--text--color--regular);
60
66
 
61
67
  // Success
62
- --#{$alert}--m-success--BorderTopColor: var(--#{$pf-global}--success-color--100);
63
- --#{$alert}--m-success__icon--Color: var(--#{$pf-global}--success-color--100);
64
- --#{$alert}--m-success__title--Color: var(--#{$pf-global}--success-color--200);
68
+ --#{$alert}--m-success--BorderColor: var(--pf-t--global--border--color--status--success--default);
69
+ --#{$alert}--m-success__icon--Color: var(--pf-t--global--icon--color--status--success--default);
70
+ --#{$alert}--m-success__title--Color: var(--pf-t--global--text--color--regular);
65
71
 
66
72
  // Danger
67
- --#{$alert}--m-danger--BorderTopColor: var(--#{$pf-global}--danger-color--100);
68
- --#{$alert}--m-danger__icon--Color: var(--#{$pf-global}--danger-color--100);
69
- --#{$alert}--m-danger__title--Color: var(--#{$pf-global}--danger-color--200);
73
+ --#{$alert}--m-danger--BorderColor: var(--pf-t--global--border--color--status--danger--default);
74
+ --#{$alert}--m-danger__icon--Color: var(--pf-t--global--icon--color--status--danger--default);
75
+ --#{$alert}--m-danger__title--Color: var(--pf-t--global--text--color--regular);
70
76
 
71
77
  // Warning
72
- --#{$alert}--m-warning--BorderTopColor: var(--#{$pf-global}--warning-color--100);
73
- --#{$alert}--m-warning__icon--Color: var(--#{$pf-global}--warning-color--100);
74
- --#{$alert}--m-warning__title--Color: var(--#{$pf-global}--warning-color--200);
78
+ --#{$alert}--m-warning--BorderColor: var(--pf-t--global--border--color--status--warning--default);
79
+ --#{$alert}--m-warning__icon--Color: var(--pf-t--global--icon--color--status--warning--default);
80
+ --#{$alert}--m-warning__title--Color: var(--pf-t--global--text--color--regular);
75
81
 
76
82
  // Info
77
- --#{$alert}--m-info--BorderTopColor: var(--#{$pf-global}--info-color--100);
78
- --#{$alert}--m-info__icon--Color: var(--#{$pf-global}--info-color--100);
79
- --#{$alert}--m-info__title--Color: var(--#{$pf-global}--info-color--200);
83
+ --#{$alert}--m-info--BorderColor: var(--pf-t--global--border--color--status--info--default);
84
+ --#{$alert}--m-info__icon--Color: var(--pf-t--global--icon--color--status--info--default);
85
+ --#{$alert}--m-info__title--Color: var(--pf-t--global--text--color--regular);
80
86
 
81
87
  // Inline
82
- --#{$alert}--m-inline--BoxShadow: none;
83
-
84
- // Inline custom
85
- --#{$alert}--m-inline--m-custom--BackgroundColor: var(--#{$pf-global}--palette--cyan-50);
86
-
87
- // Inline success
88
- --#{$alert}--m-inline--m-success--BackgroundColor: var(--#{$pf-global}--palette--green-50);
89
-
90
- // Inline danger
91
- --#{$alert}--m-inline--m-danger--BackgroundColor: var(--#{$pf-global}--palette--red-50);
92
-
93
- // Inline warning
94
- --#{$alert}--m-inline--m-warning--BackgroundColor: var(--#{$pf-global}--palette--gold-50);
95
-
96
- // Inline info
97
- --#{$alert}--m-inline--m-info--BackgroundColor: var(--#{$pf-global}--palette--blue-50);
88
+ --#{$alert}--m-inline--BackgroundColor: var(--pf-t--global--background--color--primary--default);
89
+ --#{$alert}--m-inline--BoxShadow: none;
98
90
 
99
91
  // Inline plain
100
- --#{$alert}--m-inline--m-plain--BorderTopWidth: 0;
92
+ --#{$alert}--m-inline--m-plain--BorderWidth: 0;
101
93
  --#{$alert}--m-inline--m-plain--BackgroundColor: transparent;
102
94
  --#{$alert}--m-inline--m-plain--PaddingTop: 0;
103
95
  --#{$alert}--m-inline--m-plain--PaddingRight: 0;
@@ -115,9 +107,9 @@
115
107
  // Expanded
116
108
  --#{$alert}--m-expanded__toggle-icon--Rotate: 90deg;
117
109
  --#{$alert}--m-expanded__description--action-group--PaddingTop: var(--#{$alert}__description--action-group--PaddingTop-base);
110
+ }
118
111
 
119
- @include pf-v5-t-light; // This component always needs to be light
120
-
112
+ .#{$alert} {
121
113
  position: relative;
122
114
  display: grid;
123
115
  grid-template-areas: var(--#{$alert}--GridTemplateAreas);
@@ -126,44 +118,40 @@
126
118
  padding-block-end: var(--#{$alert}--PaddingBottom);
127
119
  padding-inline-start: var(--#{$alert}--PaddingLeft);
128
120
  padding-inline-end: var(--#{$alert}--PaddingRight);
129
- font-size: var(--#{$alert}__FontSize);
121
+ font-size: var(--#{$alert}--FontSize);
130
122
  background-color: var(--#{$alert}--BackgroundColor);
131
- border-block-start: var(--#{$alert}--BorderTopWidth) solid var(--#{$alert}--BorderTopColor);
123
+ border: var(--#{$alert}--BorderWidth) solid var(--#{$alert}--BorderColor);
124
+ border-radius: var(--#{$alert}--BorderRadius);
132
125
  box-shadow: var(--#{$alert}--BoxShadow);
133
126
 
134
127
  &.pf-m-custom {
135
- --#{$alert}--BorderTopColor: var(--#{$alert}--m-custom--BorderTopColor);
128
+ --#{$alert}--BorderColor: var(--#{$alert}--m-custom--BorderColor);
136
129
  --#{$alert}__icon--Color: var(--#{$alert}--m-custom__icon--Color);
137
130
  --#{$alert}__title--Color: var(--#{$alert}--m-custom__title--Color);
138
- --#{$alert}--m-inline--BackgroundColor: var(--#{$alert}--m-inline--m-custom--BackgroundColor);
139
131
  }
140
132
 
141
133
  &.pf-m-success {
142
- --#{$alert}--BorderTopColor: var(--#{$alert}--m-success--BorderTopColor);
134
+ --#{$alert}--BorderColor: var(--#{$alert}--m-success--BorderColor);
143
135
  --#{$alert}__icon--Color: var(--#{$alert}--m-success__icon--Color);
144
136
  --#{$alert}__title--Color: var(--#{$alert}--m-success__title--Color);
145
- --#{$alert}--m-inline--BackgroundColor: var(--#{$alert}--m-inline--m-success--BackgroundColor);
146
- }
137
+ }
147
138
 
148
139
  &.pf-m-danger {
149
- --#{$alert}--BorderTopColor: var(--#{$alert}--m-danger--BorderTopColor);
140
+ --#{$alert}--BorderColor: var(--#{$alert}--m-danger--BorderColor);
150
141
  --#{$alert}__icon--Color: var(--#{$alert}--m-danger__icon--Color);
151
142
  --#{$alert}__title--Color: var(--#{$alert}--m-danger__title--Color);
152
- --#{$alert}--m-inline--BackgroundColor: var(--#{$alert}--m-inline--m-danger--BackgroundColor);
153
143
  }
154
144
 
155
145
  &.pf-m-warning {
156
- --#{$alert}--BorderTopColor: var(--#{$alert}--m-warning--BorderTopColor);
146
+ --#{$alert}--BorderColor: var(--#{$alert}--m-warning--BorderColor);
157
147
  --#{$alert}__icon--Color: var(--#{$alert}--m-warning__icon--Color);
158
148
  --#{$alert}__title--Color: var(--#{$alert}--m-warning__title--Color);
159
- --#{$alert}--m-inline--BackgroundColor: var(--#{$alert}--m-inline--m-warning--BackgroundColor);
160
149
  }
161
150
 
162
151
  &.pf-m-info {
163
- --#{$alert}--BorderTopColor: var(--#{$alert}--m-info--BorderTopColor);
152
+ --#{$alert}--BorderColor: var(--#{$alert}--m-info--BorderColor);
164
153
  --#{$alert}__icon--Color: var(--#{$alert}--m-info__icon--Color);
165
154
  --#{$alert}__title--Color: var(--#{$alert}--m-info__title--Color);
166
- --#{$alert}--m-inline--BackgroundColor: var(--#{$alert}--m-inline--m-info--BackgroundColor);
167
155
  }
168
156
 
169
157
  &.pf-m-inline {
@@ -172,7 +160,7 @@
172
160
  }
173
161
 
174
162
  &.pf-m-plain {
175
- --#{$alert}--BorderTopWidth: var(--#{$alert}--m-inline--m-plain--BorderTopWidth);
163
+ --#{$alert}--BorderWidth: var(--#{$alert}--m-inline--m-plain--BorderWidth);
176
164
  --#{$alert}--BackgroundColor: var(--#{$alert}--m-inline--m-plain--BackgroundColor);
177
165
  --#{$alert}--PaddingTop: var(--#{$alert}--m-inline--m-plain--PaddingTop);
178
166
  --#{$alert}--PaddingRight: var(--#{$alert}--m-inline--m-plain--PaddingRight);
@@ -195,7 +183,7 @@
195
183
  .#{$alert}__toggle {
196
184
  margin-block-start: var(--#{$alert}__toggle--MarginTop);
197
185
  margin-block-end: var(--#{$alert}__toggle--MarginBottom);
198
- margin-inline-start: var(--#{$alert}__toggle--MarginLeft);
186
+ margin-inline-end: var(--#{$alert}__toggle--MarginRight);
199
187
  }
200
188
 
201
189
  .#{$alert}__toggle-icon {
@@ -217,7 +205,10 @@
217
205
 
218
206
  .#{$alert}__title {
219
207
  grid-area: title;
208
+ font-family: var(--#{$alert}__title--FontFamily);
209
+ font-size: var(--#{$alert}__title--FontSize);
220
210
  font-weight: var(--#{$alert}__title--FontWeight);
211
+ line-height: var(--#{$alert}__title--LineHeight);
221
212
  color: var(--#{$alert}__title--Color);
222
213
  word-break: break-word;
223
214
 
@@ -260,10 +251,3 @@
260
251
  }
261
252
  }
262
253
  }
263
-
264
- // stylelint-disable no-invalid-position-at-import-rule
265
- @import "themes/dark/alert";
266
-
267
- @include pf-v5-theme-dark {
268
- @include pf-v5-theme-dark-alert;
269
- }
@@ -1,7 +1,7 @@
1
- .pf-v5-c-avatar {
1
+ :root, .pf-v5-c-avatar {
2
2
  --pf-v5-c-avatar--BorderColor: transparent;
3
3
  --pf-v5-c-avatar--BorderWidth: 0;
4
- --pf-v5-c-avatar--BorderRadius: var(--pf-v5-global--BorderRadius--lg);
4
+ --pf-v5-c-avatar--BorderRadius: var(--pf-t--global--border--radius--pill);
5
5
  --pf-v5-c-avatar--Width: 2.25rem;
6
6
  --pf-v5-c-avatar--Height: 2.25rem;
7
7
  --pf-v5-c-avatar--m-sm--Width: 1.5rem;
@@ -12,22 +12,19 @@
12
12
  --pf-v5-c-avatar--m-lg--Height: 4.5rem;
13
13
  --pf-v5-c-avatar--m-xl--Width: 8rem;
14
14
  --pf-v5-c-avatar--m-xl--Height: 8rem;
15
- --pf-v5-c-avatar--m-light--BorderColor: var(--pf-v5-global--BorderColor--dark-100);
16
- --pf-v5-c-avatar--m-light--BorderWidth: var(--pf-v5-global--BorderWidth--sm);
17
- --pf-v5-c-avatar--m-dark--BorderColor: var(--pf-v5-global--palette--black-700);
18
- --pf-v5-c-avatar--m-dark--BorderWidth: var(--pf-v5-global--BorderWidth--sm);
15
+ --pf-v5-c-avatar--m-bordered--BorderColor: var(--pf-t--global--border--color--default);
16
+ --pf-v5-c-avatar--m-bordered--BorderWidth: var(--pf-t--global--border--width--box--default);
17
+ }
18
+
19
+ .pf-v5-c-avatar {
19
20
  width: var(--pf-v5-c-avatar--Width);
20
21
  height: var(--pf-v5-c-avatar--Height);
21
22
  border: var(--pf-v5-c-avatar--BorderWidth) solid var(--pf-v5-c-avatar--BorderColor);
22
23
  border-radius: var(--pf-v5-c-avatar--BorderRadius);
23
24
  }
24
- .pf-v5-c-avatar.pf-m-light {
25
- --pf-v5-c-avatar--BorderColor: var(--pf-v5-c-avatar--m-light--BorderColor);
26
- --pf-v5-c-avatar--BorderWidth: var(--pf-v5-c-avatar--m-light--BorderWidth);
27
- }
28
- .pf-v5-c-avatar.pf-m-dark {
29
- --pf-v5-c-avatar--BorderColor: var(--pf-v5-c-avatar--m-dark--BorderColor);
30
- --pf-v5-c-avatar--BorderWidth: var(--pf-v5-c-avatar--m-dark--BorderWidth);
25
+ .pf-v5-c-avatar.pf-m-bordered {
26
+ --pf-v5-c-avatar--BorderColor: var(--pf-v5-c-avatar--m-bordered--BorderColor);
27
+ --pf-v5-c-avatar--BorderWidth: var(--pf-v5-c-avatar--m-bordered--BorderWidth);
31
28
  }
32
29
  .pf-v5-c-avatar.pf-m-sm {
33
30
  --pf-v5-c-avatar--Width: var(--pf-v5-c-avatar--m-sm--Width);
@@ -2,10 +2,10 @@
2
2
  $pf-v5-c-avatar--breakpoint-map: build-breakpoint-map("base", "sm", "md", "lg", "xl", "2xl");
3
3
  $pf-v5-c-avatar--sizes: "sm", "md", "lg", "xl";
4
4
 
5
- .#{$avatar} {
5
+ :root, .#{$avatar} {
6
6
  --#{$avatar}--BorderColor: transparent;
7
7
  --#{$avatar}--BorderWidth: 0;
8
- --#{$avatar}--BorderRadius: var(--#{$pf-global}--BorderRadius--lg);
8
+ --#{$avatar}--BorderRadius: var(--pf-t--global--border--radius--pill);
9
9
  --#{$avatar}--Width: #{pf-size-prem(36px)};
10
10
  --#{$avatar}--Height: #{pf-size-prem(36px)};
11
11
  --#{$avatar}--m-sm--Width: #{pf-size-prem(24px)};
@@ -17,27 +17,20 @@ $pf-v5-c-avatar--sizes: "sm", "md", "lg", "xl";
17
17
  --#{$avatar}--m-xl--Width: #{pf-size-prem(128px)};
18
18
  --#{$avatar}--m-xl--Height: #{pf-size-prem(128px)};
19
19
 
20
- // Light
21
- --#{$avatar}--m-light--BorderColor: var(--#{$pf-global}--BorderColor--dark-100);
22
- --#{$avatar}--m-light--BorderWidth: var(--#{$pf-global}--BorderWidth--sm);
23
-
24
- // Dark
25
- --#{$avatar}--m-dark--BorderColor: var(--#{$pf-global}--palette--black-700);
26
- --#{$avatar}--m-dark--BorderWidth: var(--#{$pf-global}--BorderWidth--sm);
20
+ // Bordered
21
+ --#{$avatar}--m-bordered--BorderColor: var(--pf-t--global--border--color--default);
22
+ --#{$avatar}--m-bordered--BorderWidth: var(--pf-t--global--border--width--box--default);
23
+ }
27
24
 
25
+ .#{$avatar} {
28
26
  width: var(--#{$avatar}--Width);
29
27
  height: var(--#{$avatar}--Height);
30
28
  border: var(--#{$avatar}--BorderWidth) solid var(--#{$avatar}--BorderColor);
31
29
  border-radius: var(--#{$avatar}--BorderRadius);
32
30
 
33
- &.pf-m-light {
34
- --#{$avatar}--BorderColor: var(--#{$avatar}--m-light--BorderColor);
35
- --#{$avatar}--BorderWidth: var(--#{$avatar}--m-light--BorderWidth);
36
- }
37
-
38
- &.pf-m-dark {
39
- --#{$avatar}--BorderColor: var(--#{$avatar}--m-dark--BorderColor);
40
- --#{$avatar}--BorderWidth: var(--#{$avatar}--m-dark--BorderWidth);
31
+ &.pf-m-bordered {
32
+ --#{$avatar}--BorderColor: var(--#{$avatar}--m-bordered--BorderColor);
33
+ --#{$avatar}--BorderWidth: var(--#{$avatar}--m-bordered--BorderWidth);
41
34
  }
42
35
 
43
36
  @each $size in $pf-v5-c-avatar--sizes {
@@ -1,29 +1,30 @@
1
- .pf-v5-c-back-to-top {
2
- --pf-v5-c-back-to-top--Right: var(--pf-v5-global--spacer--2xl);
3
- --pf-v5-c-back-to-top--Bottom: var(--pf-v5-global--spacer--lg);
4
- --pf-v5-c-back-to-top--md--Bottom: var(--pf-v5-global--spacer--2xl);
5
- --pf-v5-c-back-to-top--c-button--FontSize: var(--pf-v5-global--FontSize--xs);
6
- --pf-v5-c-back-to-top--c-button--BorderRadius: var(--pf-v5-global--BorderRadius--lg);
7
- --pf-v5-c-back-to-top--c-button--PaddingTop: var(--pf-v5-global--spacer--xs);
8
- --pf-v5-c-back-to-top--c-button--PaddingRight: var(--pf-v5-global--spacer--sm);
9
- --pf-v5-c-back-to-top--c-button--PaddingBottom: var(--pf-v5-global--spacer--xs);
10
- --pf-v5-c-back-to-top--c-button--PaddingLeft: var(--pf-v5-global--spacer--sm);
11
- --pf-v5-c-back-to-top--c-button--BoxShadow: var(--pf-v5-global--BoxShadow--lg-bottom);
12
- position: absolute;
13
- inset-block-end: var(--pf-v5-c-back-to-top--Bottom);
14
- inset-inline-end: var(--pf-v5-c-back-to-top--Right);
1
+ :root {
2
+ --pf-v5-c-back-to-top--Right: var(--pf-t--global--spacer--2xl);
3
+ --pf-v5-c-back-to-top--Bottom: var(--pf-t--global--spacer--lg);
4
+ --pf-v5-c-back-to-top--md--Bottom: var(--pf-t--global--spacer--2xl);
5
+ --pf-v5-c-back-to-top--c-button--FontSize: var(--pf-t--global--font--size--body--sm);
6
+ --pf-v5-c-back-to-top--c-button--PaddingTop: var(--pf-t--global--spacer--xs);
7
+ --pf-v5-c-back-to-top--c-button--PaddingRight: var(--pf-t--global--spacer--sm);
8
+ --pf-v5-c-back-to-top--c-button--PaddingBottom: var(--pf-t--global--spacer--xs);
9
+ --pf-v5-c-back-to-top--c-button--PaddingLeft: var(--pf-t--global--spacer--sm);
10
+ --pf-v5-c-back-to-top--c-button--BoxShadow: var(--pf-t--global--box-shadow--sm);
15
11
  }
16
12
  @media (min-width: 768px) {
17
- .pf-v5-c-back-to-top {
13
+ :root {
18
14
  --pf-v5-c-back-to-top--Bottom: var(--pf-v5-c-back-to-top--md--Bottom);
19
15
  }
20
16
  }
17
+
18
+ .pf-v5-c-back-to-top {
19
+ position: absolute;
20
+ inset-block-end: var(--pf-v5-c-back-to-top--Bottom);
21
+ inset-inline-end: var(--pf-v5-c-back-to-top--Right);
22
+ }
21
23
  .pf-v5-c-back-to-top.pf-m-hidden {
22
24
  display: none;
23
25
  }
24
26
  .pf-v5-c-back-to-top .pf-v5-c-button {
25
27
  --pf-v5-c-button--FontSize: var(--pf-v5-c-back-to-top--c-button--FontSize);
26
- --pf-v5-c-button--BorderRadius: var(--pf-v5-c-back-to-top--c-button--BorderRadius);
27
28
  --pf-v5-c-button--PaddingTop: var(--pf-v5-c-back-to-top--c-button--PaddingTop);
28
29
  --pf-v5-c-button--PaddingRight: var(--pf-v5-c-back-to-top--c-button--PaddingRight);
29
30
  --pf-v5-c-button--PaddingBottom: var(--pf-v5-c-back-to-top--c-button--PaddingBottom);