@patternfly/patternfly 5.0.0-alpha.2 → 5.0.0-alpha.20

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 (222) hide show
  1. package/README.md +1 -1
  2. package/RELEASE-NOTES.md +47 -0
  3. package/assets/icons/iconUnicodes.json +1 -0
  4. package/assets/pficon/pficon.scss +6 -0
  5. package/assets/pficon/pficon.woff +0 -0
  6. package/assets/pficon/pficon.woff2 +0 -0
  7. package/base/_chart-globals.scss +0 -4
  8. package/base/_common.scss +0 -22
  9. package/base/patternfly-common.css +0 -10
  10. package/base/patternfly-icons.css +5 -1
  11. package/base/patternfly-pf-icons.css +5 -1
  12. package/components/Accordion/accordion.css +2 -0
  13. package/components/Accordion/accordion.scss +2 -0
  14. package/components/AppLauncher/app-launcher.css +2 -0
  15. package/components/AppLauncher/app-launcher.scss +2 -0
  16. package/components/Breadcrumb/breadcrumb.css +2 -0
  17. package/components/Breadcrumb/breadcrumb.scss +2 -0
  18. package/components/CalendarMonth/calendar-month.css +1 -1
  19. package/components/CalendarMonth/calendar-month.scss +1 -1
  20. package/components/Card/card.css +9 -12
  21. package/components/Card/card.scss +11 -17
  22. package/components/ChipGroup/chip-group.css +27 -17
  23. package/components/ChipGroup/chip-group.scss +36 -22
  24. package/components/Content/content.css +6 -0
  25. package/components/Content/content.scss +8 -0
  26. package/components/ContextSelector/context-selector.css +5 -1
  27. package/components/ContextSelector/context-selector.scss +6 -2
  28. package/components/DataList/data-list.css +2 -1
  29. package/components/DataList/data-list.scss +2 -1
  30. package/components/Drawer/drawer.css +13 -14
  31. package/components/Drawer/drawer.scss +0 -1
  32. package/components/Dropdown/dropdown.css +27 -10
  33. package/components/Dropdown/dropdown.scss +22 -0
  34. package/components/EmptyState/empty-state.css +46 -52
  35. package/components/EmptyState/empty-state.scss +58 -57
  36. package/components/ExpandableSection/expandable-section.css +2 -0
  37. package/components/ExpandableSection/expandable-section.scss +2 -0
  38. package/components/FormControl/form-control.css +1 -1
  39. package/components/FormControl/themes/dark/form-control.scss +1 -1
  40. package/components/InputGroup/input-group.css +14 -0
  41. package/components/InputGroup/input-group.scss +9 -0
  42. package/components/InputGroup/themes/dark/input-group.scss +8 -0
  43. package/components/Label/label.css +2 -0
  44. package/components/Label/label.scss +2 -0
  45. package/components/LabelGroup/label-group.css +26 -22
  46. package/components/LabelGroup/label-group.scss +31 -26
  47. package/components/Login/login.css +1 -1
  48. package/components/Menu/menu.css +7 -0
  49. package/components/Menu/menu.scss +8 -0
  50. package/components/MenuToggle/menu-toggle.css +2 -0
  51. package/components/MenuToggle/menu-toggle.scss +2 -0
  52. package/components/ModalBox/modal-box.css +9 -8
  53. package/components/ModalBox/modal-box.scss +11 -11
  54. package/components/Page/page.css +60 -60
  55. package/components/Pagination/pagination.css +122 -2
  56. package/components/Pagination/pagination.scss +24 -1
  57. package/components/Popover/popover.css +2 -7
  58. package/components/Popover/themes/dark/popover.scss +2 -8
  59. package/components/Progress/progress.css +5 -2
  60. package/components/Progress/progress.scss +5 -2
  61. package/components/SearchInput/search-input.css +2 -0
  62. package/components/SearchInput/search-input.scss +2 -0
  63. package/components/Slider/slider.css +0 -7
  64. package/components/Slider/slider.scss +0 -9
  65. package/components/Table/table-grid.css +28 -28
  66. package/components/Table/table-tree-view.css +4 -4
  67. package/components/Tabs/tabs.css +0 -4
  68. package/components/Tabs/tabs.scss +0 -7
  69. package/components/TextInputGroup/text-input-group.css +4 -2
  70. package/components/TextInputGroup/text-input-group.scss +4 -3
  71. package/components/Toolbar/toolbar.css +65 -37
  72. package/components/Toolbar/toolbar.scss +37 -3
  73. package/components/Tooltip/themes/dark/tooltip.scss +1 -11
  74. package/components/Tooltip/tooltip.css +7 -12
  75. package/components/Tooltip/tooltip.scss +6 -3
  76. package/components/TreeView/tree-view.css +7 -15
  77. package/components/TreeView/tree-view.scss +7 -18
  78. package/components/Wizard/wizard.css +2 -0
  79. package/components/Wizard/wizard.scss +2 -0
  80. package/docs/components/AboutModalBox/examples/AboutModalBox.md +13 -13
  81. package/docs/components/Accordion/examples/Accordion.md +12 -12
  82. package/docs/components/ActionList/examples/ActionList.md +6 -6
  83. package/docs/components/Alert/examples/Alert.md +19 -19
  84. package/docs/components/AlertGroup/examples/AlertGroup.md +12 -12
  85. package/docs/components/AppLauncher/examples/application-launcher.md +51 -46
  86. package/docs/components/Avatar/examples/Avatar.md +11 -11
  87. package/docs/components/BackToTop/examples/BackToTop.md +4 -4
  88. package/docs/components/Backdrop/examples/Backdrop.md +4 -4
  89. package/docs/components/BackgroundImage/examples/BackgroundImage.md +4 -4
  90. package/docs/components/Badge/examples/Badge.md +5 -5
  91. package/docs/components/Banner/examples/Banner.md +8 -8
  92. package/docs/components/Brand/examples/Brand.md +9 -9
  93. package/docs/components/Breadcrumb/examples/Breadcrumb.md +20 -20
  94. package/docs/components/Button/examples/Button.md +35 -35
  95. package/docs/components/CalendarMonth/examples/CalendarMonth.md +32 -32
  96. package/docs/components/Card/examples/Card.md +61 -44
  97. package/docs/components/Check/examples/Check.md +15 -19
  98. package/docs/components/Chip/examples/Chip.md +13 -13
  99. package/docs/components/ChipGroup/examples/ChipGroup.md +15 -344
  100. package/docs/components/ClipboardCopy/examples/ClipboardCopy.md +22 -22
  101. package/docs/components/CodeBlock/examples/CodeBlock.md +9 -9
  102. package/docs/components/CodeEditor/examples/CodeEditor.md +54 -35
  103. package/docs/components/Content/examples/Content.md +37 -9
  104. package/docs/components/ContextSelector/examples/context-selector.css +5 -1
  105. package/docs/components/ContextSelector/examples/context-selector.md +86 -80
  106. package/docs/components/DataList/examples/DataList.md +187 -148
  107. package/docs/components/DatePicker/examples/DatePicker.md +10 -10
  108. package/docs/components/DescriptionList/examples/DescriptionList.md +24 -24
  109. package/docs/components/Divider/examples/Divider.md +10 -10
  110. package/docs/components/DragDrop/examples/DragDrop.md +5 -5
  111. package/docs/components/Drawer/examples/Drawer.md +43 -43
  112. package/docs/components/Dropdown/examples/Dropdown.css +5 -2
  113. package/docs/components/Dropdown/examples/Dropdown.md +311 -71
  114. package/docs/components/DualListSelector/examples/DualListSelector.md +201 -197
  115. package/docs/components/EmptyState/examples/EmptyState.md +130 -82
  116. package/docs/components/ExpandableSection/examples/ExpandableSection.md +23 -23
  117. package/docs/components/FileUpload/examples/FileUpload.md +8 -8
  118. package/docs/components/Form/examples/Form.md +64 -64
  119. package/docs/components/FormControl/examples/FormControl.md +20 -20
  120. package/docs/components/HelperText/examples/HelperText.md +12 -12
  121. package/docs/components/Hint/examples/Hint.md +7 -7
  122. package/docs/components/Icon/examples/Icon.md +10 -10
  123. package/docs/components/InlineEdit/examples/InlineEdit.md +24 -24
  124. package/docs/components/InputGroup/examples/InputGroup.md +10 -9
  125. package/docs/components/JumpLinks/examples/JumpLinks.md +35 -35
  126. package/docs/components/Label/examples/Label.md +31 -31
  127. package/docs/components/LabelGroup/examples/LabelGroup.md +24 -36
  128. package/docs/components/List/examples/List.md +18 -18
  129. package/docs/components/LogViewer/examples/LogViewer.md +69 -69
  130. package/docs/components/Login/examples/Login.md +32 -32
  131. package/docs/components/Masthead/examples/masthead.md +9 -9
  132. package/docs/components/Menu/examples/Menu.md +82 -80
  133. package/docs/components/MenuToggle/examples/MenuToggle.md +28 -28
  134. package/docs/components/ModalBox/examples/ModalBox.md +106 -85
  135. package/docs/components/MultipleFileUpload/examples/MultipleFileUpload.md +25 -25
  136. package/docs/components/Nav/examples/Navigation.md +69 -69
  137. package/docs/components/NotificationBadge/examples/NotificationBadge.md +8 -8
  138. package/docs/components/NotificationDrawer/examples/NotificationDrawer.md +44 -44
  139. package/docs/components/NumberInput/examples/NumberInput.md +12 -12
  140. package/docs/components/OptionsMenu/examples/options-menu.md +27 -28
  141. package/docs/components/OverflowMenu/examples/overflow-menu.md +25 -25
  142. package/docs/components/Page/examples/Page.md +54 -54
  143. package/docs/components/Pagination/examples/Pagination.md +129 -30
  144. package/docs/components/Panel/examples/Panel.md +10 -10
  145. package/docs/components/Popover/examples/Popover.md +34 -34
  146. package/docs/components/Progress/examples/Progress.md +31 -60
  147. package/docs/components/ProgressStepper/examples/ProgressStepper.md +45 -38
  148. package/docs/components/Radio/examples/Radio.md +11 -11
  149. package/docs/components/SearchInput/examples/SearchInput.md +34 -34
  150. package/docs/components/Select/examples/Select.md +143 -143
  151. package/docs/components/Sidebar/examples/Sidebar.md +14 -14
  152. package/docs/components/SimpleList/examples/SimpleList.md +15 -15
  153. package/docs/components/Skeleton/examples/Skeleton.md +8 -8
  154. package/docs/components/SkipToContent/examples/SkipToContent.md +5 -5
  155. package/docs/components/Slider/examples/Slider.md +30 -30
  156. package/docs/components/Spinner/examples/Spinner.md +24 -24
  157. package/docs/components/Switch/examples/Switch.md +19 -19
  158. package/docs/components/TabContent/examples/TabContent.md +13 -13
  159. package/docs/components/Table/examples/Table.md +1272 -855
  160. package/docs/components/Tabs/examples/Tabs.md +149 -149
  161. package/docs/components/TextInputGroup/examples/TextInputGroup.md +19 -19
  162. package/docs/components/Tile/examples/Tile.md +15 -15
  163. package/docs/components/Timestamp/examples/Timestamp.md +5 -5
  164. package/docs/components/Title/examples/Title.md +17 -17
  165. package/docs/components/ToggleGroup/examples/toggle-group.md +13 -13
  166. package/docs/components/Toolbar/examples/Toolbar.md +165 -144
  167. package/docs/components/Tooltip/examples/Tooltip.md +10 -10
  168. package/docs/components/TreeView/examples/TreeView.md +34 -34
  169. package/docs/components/Truncate/examples/Truncate.md +4 -4
  170. package/docs/components/Wizard/examples/Wizard.md +63 -70
  171. package/docs/demos/AboutModal/examples/AboutModal.md +4 -4
  172. package/docs/demos/Alert/examples/Alert.md +13 -13
  173. package/docs/demos/BackToTop/examples/BackToTop.md +4 -4
  174. package/docs/demos/Banner/examples/Banner.md +10 -11
  175. package/docs/demos/Card/examples/Card.md +151 -116
  176. package/docs/demos/CardView/examples/CardView.md +16 -15
  177. package/docs/demos/ContextSelector/examples/ContextSelector.md +18 -18
  178. package/docs/demos/Dashboard/examples/Dashboard.md +10 -9
  179. package/docs/demos/DataList/examples/DataList.md +160 -111
  180. package/docs/demos/DescriptionList/examples/DescriptionList.md +12 -13
  181. package/docs/demos/Drawer/examples/Drawer.md +20 -20
  182. package/docs/demos/HelperText/examples/HelperText.md +8 -9
  183. package/docs/demos/JumpLinks/examples/JumpLinks.md +28 -28
  184. package/docs/demos/Masthead/examples/Masthead.md +32 -35
  185. package/docs/demos/Modal/examples/Modal.md +54 -66
  186. package/docs/demos/Nav/examples/Nav.md +720 -767
  187. package/docs/demos/NotificationDrawer/examples/NotificationDrawer.md +40 -28
  188. package/docs/demos/Page/examples/Page.md +37 -37
  189. package/docs/demos/PasswordStrength/examples/PasswordStrength.md +32 -33
  190. package/docs/demos/PrimaryDetail/examples/PrimaryDetail.md +53 -49
  191. package/docs/demos/Skeleton/examples/Skeleton.md +4 -4
  192. package/docs/demos/Table/examples/Table.md +522 -378
  193. package/docs/demos/Tabs/examples/Tabs.md +120 -601
  194. package/docs/demos/Toolbar/examples/Toolbar.md +1781 -171
  195. package/docs/demos/Wizard/examples/Wizard.md +229 -225
  196. package/docs/layouts/Bullseye/examples/Bullseye.md +4 -4
  197. package/docs/layouts/Flex/examples/Flex.md +98 -98
  198. package/docs/layouts/Gallery/examples/Gallery.md +7 -7
  199. package/docs/layouts/Grid/examples/Grid.md +9 -9
  200. package/docs/layouts/Level/examples/Level.md +5 -5
  201. package/docs/layouts/Split/examples/Split.md +7 -7
  202. package/docs/layouts/Stack/examples/Stack.md +6 -6
  203. package/docs/utilities/Accessibility/examples/Accessibility.md +4 -4
  204. package/docs/utilities/Alignment/examples/Alignment.md +6 -6
  205. package/docs/utilities/BackgroundColor/examples/BackgroundColor.md +12 -12
  206. package/docs/utilities/BoxShadow/examples/box-shadow.md +22 -22
  207. package/docs/utilities/Display/examples/Display.md +11 -11
  208. package/docs/utilities/Flex/examples/Flex.md +34 -34
  209. package/docs/utilities/Float/examples/Float.md +4 -4
  210. package/docs/utilities/Sizing/examples/Sizing.md +50 -50
  211. package/docs/utilities/Spacing/examples/Spacing.md +34 -34
  212. package/docs/utilities/Text/examples/Text.md +27 -27
  213. package/icons/{pf-icons.json → pf-icons.mjs} +2 -1
  214. package/layouts/Grid/grid.css +5 -5
  215. package/package.json +59 -64
  216. package/patternfly-base-no-reset.css +5 -11
  217. package/patternfly-base.css +5 -11
  218. package/patternfly-no-reset.css +524 -336
  219. package/patternfly.css +524 -336
  220. package/patternfly.min.css +1 -1
  221. package/patternfly.min.css.map +1 -1
  222. package/sass-utilities/scss-variables.scss +0 -1
@@ -32,8 +32,8 @@ Always add a modifier class. Never use the class `.pf-c-badge` on its own.
32
32
 
33
33
  ### Usage
34
34
 
35
- | Class | Applied to | Outcome |
36
- | -------------- | ------------- | -------------------------------------------------------- |
37
- | `.pf-c-badge` | `<span>` | Initiates a badge. **Always use with a modifier class.** |
38
- | `.pf-m-read` | `.pf-c-badge` | Applies read badge styling. |
39
- | `.pf-m-unread` | `.pf-c-badge` | Applies unread badge styling. |
35
+ | Class | Applied to | Outcome |
36
+ | -- | -- | -- |
37
+ | `.pf-c-badge` | `<span>` | Initiates a badge. **Always use with a modifier class.** |
38
+ | `.pf-m-read` | `.pf-c-badge` | Applies read badge styling. |
39
+ | `.pf-m-unread` | `.pf-c-badge` | Applies unread badge styling. |
@@ -151,11 +151,11 @@ Add a modifier class to the default banner to change the presentation: `.pf-m-bl
151
151
 
152
152
  ### Usage
153
153
 
154
- | Class | Applied to | Outcome |
155
- | -------------- | -------------- | --------------------------------------------------------- |
156
- | `.pf-c-banner` | `<div>` | Initiates a banner. **Required** |
157
- | `.pf-m-blue` | `.pf-c-banner` | Modifies banner for blue styling. |
158
- | `.pf-m-red` | `.pf-c-banner` | Modifies banner for red styling. |
159
- | `.pf-m-green` | `.pf-c-banner` | Modifies banner for green styling. |
160
- | `.pf-m-gold` | `.pf-c-banner` | Modifies banner for gold styling. |
161
- | `.pf-m-sticky` | `.pf-c-banner` | Modifies banner to be sticky to the top of its container. |
154
+ | Class | Applied to | Outcome |
155
+ | -- | -- | -- |
156
+ | `.pf-c-banner` | `<div>` | Initiates a banner. **Required** |
157
+ | `.pf-m-blue` | `.pf-c-banner` | Modifies banner for blue styling. |
158
+ | `.pf-m-red` | `.pf-c-banner` | Modifies banner for red styling. |
159
+ | `.pf-m-green` | `.pf-c-banner` | Modifies banner for green styling. |
160
+ | `.pf-m-gold` | `.pf-c-banner` | Modifies banner for gold styling. |
161
+ | `.pf-m-sticky` | `.pf-c-banner` | Modifies banner to be sticky to the top of its container. |
@@ -50,15 +50,15 @@ Simple brand component.
50
50
 
51
51
  ### Accessibility
52
52
 
53
- | Attribute | Applied to | Outcome |
54
- | --------- | ------------- | ---------------------------------------------------------------------------------------------------------- |
55
- | `alt` | `.pf-c-brand` | The alt attribute specifies an alternate text for an image, if the image cannot be displayed. **Required** |
53
+ | Attribute | Applied to | Outcome |
54
+ | -- | -- | -- |
55
+ | `alt` | `.pf-c-brand` | The alt attribute specifies an alternate text for an image, if the image cannot be displayed. **Required** |
56
56
 
57
57
  ### Usage
58
58
 
59
- | Class | Applied to | Outcome |
60
- | -------------------------------------------------- | ------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------- |
61
- | `.pf-c-brand` | `<img>, <picture>` | Initiates a brand image. **Required** |
62
- | `.pf-m-picture` | `.pf-c-brand` | Modifies a brand image to a picture. |
63
- | `--pf-c-brand--Width{-on-[breakpoint]}: {width}` | `.pf-c-brand` | Modifies the width value of a picture on optional [breakpoint](/developer-resources/global-css-variables#breakpoint-variables-and-class-suffixes). |
64
- | `--pf-c-brand--Height{-on-[breakpoint]}: {height}` | `.pf-c-brand` | Modifies the height value of a picture on optional [breakpoint](/developer-resources/global-css-variables#breakpoint-variables-and-class-suffixes). |
59
+ | Class | Applied to | Outcome |
60
+ | -- | -- | -- |
61
+ | `.pf-c-brand` | `<img>, <picture>` | Initiates a brand image. **Required** |
62
+ | `.pf-m-picture` | `.pf-c-brand` | Modifies a brand image to a picture. |
63
+ | `--pf-c-brand--Width{-on-[breakpoint]}: {width}` | `.pf-c-brand` | Modifies the width value of a picture on optional [breakpoint](/developer-resources/global-css-variables#breakpoint-variables-and-class-suffixes). |
64
+ | `--pf-c-brand--Height{-on-[breakpoint]}: {height}` | `.pf-c-brand` | Modifies the height value of a picture on optional [breakpoint](/developer-resources/global-css-variables#breakpoint-variables-and-class-suffixes). |
@@ -10,7 +10,7 @@ cssPrefix: pf-c-breadcrumb
10
10
 
11
11
  ```html
12
12
  <nav class="pf-c-breadcrumb" aria-label="breadcrumb">
13
- <ol class="pf-c-breadcrumb__list">
13
+ <ol class="pf-c-breadcrumb__list" role="list">
14
14
  <li class="pf-c-breadcrumb__item">
15
15
  <span class="pf-c-breadcrumb__item-divider">
16
16
  <i class="fas fa-angle-right" aria-hidden="true"></i>
@@ -48,7 +48,7 @@ cssPrefix: pf-c-breadcrumb
48
48
 
49
49
  ```html
50
50
  <nav class="pf-c-breadcrumb" aria-label="breadcrumb">
51
- <ol class="pf-c-breadcrumb__list">
51
+ <ol class="pf-c-breadcrumb__list" role="list">
52
52
  <li class="pf-c-breadcrumb__item">
53
53
  <span class="pf-c-breadcrumb__item-divider">
54
54
  <i class="fas fa-angle-right" aria-hidden="true"></i>
@@ -98,7 +98,7 @@ cssPrefix: pf-c-breadcrumb
98
98
 
99
99
  ```html
100
100
  <nav class="pf-c-breadcrumb" aria-label="breadcrumb">
101
- <ol class="pf-c-breadcrumb__list">
101
+ <ol class="pf-c-breadcrumb__list" role="list">
102
102
  <li class="pf-c-breadcrumb__item">
103
103
  <span class="pf-c-breadcrumb__item-divider">
104
104
  <i class="fas fa-angle-right" aria-hidden="true"></i>
@@ -144,7 +144,7 @@ cssPrefix: pf-c-breadcrumb
144
144
 
145
145
  ```html
146
146
  <nav class="pf-c-breadcrumb" aria-label="breadcrumb">
147
- <ol class="pf-c-breadcrumb__list">
147
+ <ol class="pf-c-breadcrumb__list" role="list">
148
148
  <li class="pf-c-breadcrumb__item">
149
149
  <span class="pf-c-breadcrumb__item-divider">
150
150
  <i class="fas fa-angle-right" aria-hidden="true"></i>
@@ -235,7 +235,7 @@ cssPrefix: pf-c-breadcrumb
235
235
 
236
236
  ```html
237
237
  <nav class="pf-c-breadcrumb" aria-label="breadcrumb">
238
- <ol class="pf-c-breadcrumb__list">
238
+ <ol class="pf-c-breadcrumb__list" role="list">
239
239
  <li class="pf-c-breadcrumb__item">
240
240
  <span class="pf-c-breadcrumb__item-divider">
241
241
  <i class="fas fa-angle-right" aria-hidden="true"></i>
@@ -275,26 +275,26 @@ cssPrefix: pf-c-breadcrumb
275
275
 
276
276
  A breadcrumb is a list of links to display a user's navigational hierarchy. The last item of the breadcrumb list indicates the current page's location.
277
277
 
278
- - `.pf-c-breadcrumb__list` is the default breadcrumb navigation. It provides links to previous navigation pages and also shows the current page's location.
278
+ * `.pf-c-breadcrumb__list` is the default breadcrumb navigation. It provides links to previous navigation pages and also shows the current page's location.
279
279
 
280
280
  In the event that a page does not have a traditional `<h1>` page title, a heading can be included in the breadcrumbs and an optional link within.
281
281
 
282
282
  ### Accessibility
283
283
 
284
- | Attribute | Applied to | Outcome |
285
- | ------------------------------------- | -------------------------------------------------- | ------------------------------------------------- |
286
- | `aria-label="[landmark description]"` | `.pf-c-breadcrumb` | Describes `<nav>` landmark. |
287
- | `aria-label="[link name]"` | `.pf-c-breadcrumb__link` | If link has no text (icon), add an aria-label. |
288
- | `aria-current="page"` | `.pf-c-breadcrumb__item`, `.pf-c-breadcrumb__link` | Indicates the current page within a set of pages. |
284
+ | Attribute | Applied to | Outcome |
285
+ | -- | -- | -- |
286
+ | `aria-label="[landmark description]"` | `.pf-c-breadcrumb` | Describes `<nav>` landmark. |
287
+ | `aria-label="[link name]"` | `.pf-c-breadcrumb__link` | If link has no text (icon), add an aria-label. |
288
+ | `aria-current="page"` | `.pf-c-breadcrumb__item`, `.pf-c-breadcrumb__link` | Indicates the current page within a set of pages. |
289
289
 
290
290
  ### Usage
291
291
 
292
- | Class | Applied to | Outcome |
293
- | -------------------------------- | ------------------------ | ------------------------------------------------------ |
294
- | `.pf-c-breadcrumb` | `<nav>` | Initiates a primary breadcrumb element. **Required** |
295
- | `.pf-c-breadcrumb__list` | `<ol>` | Initiates default breadcrumb ordered list. |
296
- | `.pf-c-breadcrumb__item` | `<li>` | Initiates default breadcrumb list item. |
297
- | `.pf-c-breadcrumb__item-divider` | `<span>` | Initiates default breadcrumb list item divider. |
298
- | `.pf-c-breadcrumb__link` | `<a>`, `<button>` | Initiates default breadcrumb list link. |
299
- | `.pf-c-breadcrumb__title` | `<h1>` | Initiates breadcrumb header. |
300
- | `.pf-m-current` | `.pf-c-breadcrumb__link` | Modifies to display the list item as the current item. |
292
+ | Class | Applied to | Outcome |
293
+ | -- | -- | -- |
294
+ | `.pf-c-breadcrumb` | `<nav>` | Initiates a primary breadcrumb element. **Required** |
295
+ | `.pf-c-breadcrumb__list` | `<ol>` | Initiates default breadcrumb ordered list. |
296
+ | `.pf-c-breadcrumb__item` | `<li>` | Initiates default breadcrumb list item. |
297
+ | `.pf-c-breadcrumb__item-divider` | `<span>` | Initiates default breadcrumb list item divider. |
298
+ | `.pf-c-breadcrumb__link` | `<a>`, `<button>` | Initiates default breadcrumb list link. |
299
+ | `.pf-c-breadcrumb__title` | `<h1>` | Initiates breadcrumb header. |
300
+ | `.pf-m-current` | `.pf-c-breadcrumb__link` | Modifies to display the list item as the current item. |
@@ -479,41 +479,41 @@ Semantic buttons and links are important for usability as well as accessibility.
479
479
 
480
480
  ### Accessibility
481
481
 
482
- | Attribute | Applied to | Outcome |
483
- | ---------------------------------- | ------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
484
- | `aria-pressed="true or false"` | `.pf-c-button` | Indicates that the button is a toggle. When set to "true", `pf-m-active` should also be set so that the button displays in an active state. **Required when button is a toggle** |
485
- | `aria-label="[button label text]"` | `.pf-c-button.pf-m-plain` | Provides an accessible name for the button when an icon is used instead of text. **Required when icon is used with no supporting text** |
486
- | `aria-label="[descriptive text]"` | `a.pf-c-button`, `span.pf-c-button.pf-m-link.pf-m-inline` | The button component's text should adequately describe its purpose. If it does not, `aria-label` can provide more detailed interaction information. |
487
- | `disabled` | `button.pf-c-button` | When a button element is used, indicates that it is unavailable and removes it from keyboard focus. **Required when button is disabled** |
488
- | `aria-disabled="true"` | `button.pf-c-button` | When a button element is used, indicates that it is unavailable but does not prevent keyboard or hover interactions. Used when a disabled button provides interactive elements like a tooltip. |
489
- | `aria-disabled="true"` | `a.pf-c-button.pf-m-disabled`, `span.pf-c-button.pf-m-link.pf-m-inline.pf-m-disabled` | When a non-button element is used, indicates that it is unavailable. **Required when element is disabled** |
490
- | `aria-expanded="true"` | `.pf-c-button.pf-m-expanded` | Indicates that the expanded content element is visible. **Required** |
491
- | `tabindex="-1"` | `a.pf-c-button.pf-m-disabled`, `span.pf-c-button.pf-m-link.pf-m-inline.pf-m-disabled` | When a non-button element is used, removes it from keyboard focus. **Required when element is disabled** |
492
- | `tabindex="0"` | `span.pf-c-button.pf-m-link.pf-m-inline` | Inserts the span into the tab order of the page so that it is focusable. **Required when the element is a span** |
482
+ | Attribute | Applied to | Outcome |
483
+ | -- | -- | -- |
484
+ | `aria-pressed="true or false"` | `.pf-c-button` | Indicates that the button is a toggle. When set to "true", `pf-m-active` should also be set so that the button displays in an active state. **Required when button is a toggle** |
485
+ | `aria-label="[button label text]"` | `.pf-c-button.pf-m-plain` | Provides an accessible name for the button when an icon is used instead of text. **Required when icon is used with no supporting text** |
486
+ | `aria-label="[descriptive text]"` | `a.pf-c-button`, `span.pf-c-button.pf-m-link.pf-m-inline` | The button component's text should adequately describe its purpose. If it does not, `aria-label` can provide more detailed interaction information. |
487
+ | `disabled` | `button.pf-c-button` | When a button element is used, indicates that it is unavailable and removes it from keyboard focus. **Required when button is disabled** |
488
+ | `aria-disabled="true"` | `button.pf-c-button` | When a button element is used, indicates that it is unavailable but does not prevent keyboard or hover interactions. Used when a disabled button provides interactive elements like a tooltip. |
489
+ | `aria-disabled="true"` | `a.pf-c-button.pf-m-disabled`, `span.pf-c-button.pf-m-link.pf-m-inline.pf-m-disabled` | When a non-button element is used, indicates that it is unavailable. **Required when element is disabled** |
490
+ | `aria-expanded="true"` | `.pf-c-button.pf-m-expanded` | Indicates that the expanded content element is visible. **Required** |
491
+ | `tabindex="-1"` | `a.pf-c-button.pf-m-disabled`, `span.pf-c-button.pf-m-link.pf-m-inline.pf-m-disabled` | When a non-button element is used, removes it from keyboard focus. **Required when element is disabled** |
492
+ | `tabindex="0"` | `span.pf-c-button.pf-m-link.pf-m-inline` | Inserts the span into the tab order of the page so that it is focusable. **Required when the element is a span** |
493
493
 
494
494
  ### Usage
495
495
 
496
- | Class | Applied to | Outcome |
497
- | ------------------------ | --------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
498
- | `.pf-c-button` | `<button>` | Initiates a button. Always use it with a modifier class. **Required** |
499
- | `.pf-c-button__icon` | `<span>` | Initiates a button icon. |
500
- | `.pf-c-button__progress` | `<span>` | Initiates a button progress container. |
501
- | `.pf-c-button__count` | `<span>` | Initiates a button count container. **Note:** Count should only be used on link buttons. |
502
- | `.pf-m-primary` | `.pf-c-button` | Modifies for primary styles. |
503
- | `.pf-m-secondary` | `.pf-c-button` | Modifies for secondary styles. |
504
- | `.pf-m-tertiary` | `.pf-c-button` | Modifies for tertiary styles. |
505
- | `.pf-m-danger` | `.pf-c-button` | Modifies for danger styles. |
506
- | `.pf-m-link` | `.pf-c-button` | Modifies for link styles. This button has no background or border and is styled as a link. This button would commonly appear in a form and may include an icon. |
507
- | `.pf-m-plain` | `.pf-c-button` | Modifies for icon styles. This button has no background or border, uses a standard text color, and is used for `.pf-m-plain` icon buttons such as close, expand, kebab, etc. |
508
- | `.pf-m-inline` | `.pf-c-button.pf-m-link` | Modifies for inline styles. This button is presented similar to a normal link and has no padding and is displayed inline with other inline content. When used as a `<span>`, the text will flow inline with text around it. |
509
- | `.pf-m-block` | `.pf-c-button` | Creates a block level button. |
510
- | `.pf-m-control` | `.pf-c-button` | Modifies for control styles. **Note:** This modifier should only be used when using buttons in the Input Group or Clipboard Copy components. |
511
- | `.pf-m-expanded` | `.pf-c-button.pf-m-control` | Modifies a control button for the expanded state. |
512
- | `.pf-m-start` | `.pf-c-button__icon` | Applies right spacing to an icon inside of a button when the icon comes before text. |
513
- | `.pf-m-end` | `.pf-c-button__icon` | Applies left spacing to an icon inside of a button when the icon comes after text. |
514
- | `.pf-m-active` | `.pf-c-button` | Forces display of the active state of the button. This modifier should be used when `aria-pressed` is set to true so that the button displays in an active state. |
515
- | `.pf-m-small` | `.pf-c-button` | Modifies the button so that it has small font size. |
516
- | `.pf-m-aria-disabled` | `.pf-c-button` | Modifies a button to be visually disabled, yet is still focusable. |
517
- | `.pf-m-display-lg` | `.pf-c-button`, `pf-c-button.pf-m-link` | Modifies the button and link button for large display styling. For example, use this modifier to achieve "call to action" styles. |
518
- | `.pf-m-progress` | `.pf-c-button` | Indicates that the button supports the progress state. **Note:** Not used with the plain variation. |
519
- | `.pf-m-in-progress` | `.pf-c-button` | Indicates that the button is in the in progress state. |
496
+ | Class | Applied to | Outcome |
497
+ | -- | -- | -- |
498
+ | `.pf-c-button` | `<button>` | Initiates a button. Always use it with a modifier class. **Required** |
499
+ | `.pf-c-button__icon` | `<span>` | Initiates a button icon. |
500
+ | `.pf-c-button__progress` | `<span>` | Initiates a button progress container. |
501
+ | `.pf-c-button__count` | `<span>` | Initiates a button count container. **Note:** Count should only be used on link buttons.|
502
+ | `.pf-m-primary` | `.pf-c-button` | Modifies for primary styles. |
503
+ | `.pf-m-secondary` | `.pf-c-button` | Modifies for secondary styles. |
504
+ | `.pf-m-tertiary` | `.pf-c-button` | Modifies for tertiary styles. |
505
+ | `.pf-m-danger` | `.pf-c-button` | Modifies for danger styles. |
506
+ | `.pf-m-link` | `.pf-c-button` | Modifies for link styles. This button has no background or border and is styled as a link. This button would commonly appear in a form and may include an icon. |
507
+ | `.pf-m-plain` | `.pf-c-button` | Modifies for icon styles. This button has no background or border, uses a standard text color, and is used for `.pf-m-plain` icon buttons such as close, expand, kebab, etc. |
508
+ | `.pf-m-inline` | `.pf-c-button.pf-m-link` | Modifies for inline styles. This button is presented similar to a normal link and has no padding and is displayed inline with other inline content. When used as a `<span>`, the text will flow inline with text around it. |
509
+ | `.pf-m-block` | `.pf-c-button` | Creates a block level button. |
510
+ | `.pf-m-control` | `.pf-c-button` | Modifies for control styles. **Note:** This modifier should only be used when using buttons in the Input Group or Clipboard Copy components. |
511
+ | `.pf-m-expanded` | `.pf-c-button.pf-m-control` | Modifies a control button for the expanded state. |
512
+ | `.pf-m-start` | `.pf-c-button__icon` | Applies right spacing to an icon inside of a button when the icon comes before text. |
513
+ | `.pf-m-end` | `.pf-c-button__icon` | Applies left spacing to an icon inside of a button when the icon comes after text. |
514
+ | `.pf-m-active` | `.pf-c-button` | Forces display of the active state of the button. This modifier should be used when `aria-pressed` is set to true so that the button displays in an active state. |
515
+ | `.pf-m-small` | `.pf-c-button` | Modifies the button so that it has small font size. |
516
+ | `.pf-m-aria-disabled` | `.pf-c-button` | Modifies a button to be visually disabled, yet is still focusable. |
517
+ | `.pf-m-display-lg` | `.pf-c-button`, `pf-c-button.pf-m-link` | Modifies the button and link button for large display styling. For example, use this modifier to achieve "call to action" styles. |
518
+ | `.pf-m-progress` | `.pf-c-button` | Indicates that the button supports the progress state. **Note:** Not used with the plain variation. |
519
+ | `.pf-m-in-progress` | `.pf-c-button` | Indicates that the button is in the in progress state. |
@@ -1597,38 +1597,38 @@ cssPrefix: pf-c-calendar-month
1597
1597
 
1598
1598
  ### Accessibility
1599
1599
 
1600
- | Attribute | Applied to | Outcome |
1601
- | ------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------- |
1602
- | `aria-hidden="true"` | `.pf-c-calendar-month__header-nav-control > button > [icon]` | Hides the nav control icon from assistive technologies. **Required** |
1603
- | `aria-hidden="true"` | `.pf-c-calendar-month__day > span` | Hides the visual day of the month label from assistive technologies. **Required** |
1604
- | `.pf-screen-reader` | `.pf-c-calendar-month__day > span` | Hides the full day of the month text visually. **Required** |
1605
- | `aria-label="[Prev/Next] month"` | `.pf-c-calendar-month__header-nav-control` | Provides an accessible label for the nav controls. **Required** |
1606
- | `disabled` | `.pf-c-calendar-month__date` | Indicates that a date is selected. **Required when the parent is `.pf-c-calendar-month__dates-cell.pf-m-disabled`** |
1607
- | `aria-label="[date] [month] [year]"` | `.pf-c-calendar-month__date` | Provides an accessible label for the date button. **Required** |
1600
+ | Attribute | Applied to | Outcome |
1601
+ | -- | -- | -- |
1602
+ | `aria-hidden="true"` | `.pf-c-calendar-month__header-nav-control > button > [icon]` | Hides the nav control icon from assistive technologies. **Required** |
1603
+ | `aria-hidden="true"` | `.pf-c-calendar-month__day > span` | Hides the visual day of the month label from assistive technologies. **Required** |
1604
+ | `.pf-screen-reader` | `.pf-c-calendar-month__day > span` | Hides the full day of the month text visually. **Required** |
1605
+ | `aria-label="[Prev/Next] month"` | `.pf-c-calendar-month__header-nav-control` | Provides an accessible label for the nav controls. **Required** |
1606
+ | `disabled` | `.pf-c-calendar-month__date` | Indicates that a date is selected. **Required when the parent is `.pf-c-calendar-month__dates-cell.pf-m-disabled`** |
1607
+ | `aria-label="[date] [month] [year]"` | `.pf-c-calendar-month__date` | Provides an accessible label for the date button. **Required** |
1608
1608
 
1609
1609
  ### Usage
1610
1610
 
1611
- | Class | Applied to | Outcome |
1612
- | ------------------------------------------ | ------------------------------------------ | ------------------------------------------------------------- |
1613
- | `.pf-c-calendar-month` | `<div>` | Initiates the calendar month component. **Required** |
1614
- | `.pf-c-calendar-month__header` | `<div>` | Initiates the calendar month header. **Required** |
1615
- | `.pf-c-calendar-month__header-nav-control` | `<div>` | Initiates a nav control for navigating by month. **Required** |
1616
- | `.pf-c-calendar-month__header-month` | `<div>` | Initiates the month select. **Required** |
1617
- | `.pf-c-calendar-month__header-year` | `<div>` | Initiates the year input. **Required** |
1618
- | `.pf-c-calendar-month__calendar` | `<table>` | Initiates the calendar. **Required** |
1619
- | `.pf-c-calendar-month__days` | `<thead>` | Initiates the calendar days section. **Required** |
1620
- | `.pf-c-calendar-month__days-row` | `<tr>` | Initiates the calendar days row. **Required** |
1621
- | `.pf-c-calendar-month__day` | `<th>` | Initiates a calendar day. **Required** |
1622
- | `.pf-c-calendar-month__dates` | `<tbody>` | Initiates the calendar dates section. **Required** |
1623
- | `.pf-c-calendar-month__dates-row` | `<tr>` | Initiates a calendar dates row. **Required** |
1624
- | `.pf-c-calendar-month__dates-cell` | `<td>` | Initiates a calendar date cell. **Required** |
1625
- | `.pf-c-calendar-month__date` | `<button>` | Initiates a calendar date. **Required** |
1626
- | `.pf-m-prev-month` | `.pf-c-calendar-month__header-nav-control` | Indicates a nav control is the previous month. **Required** |
1627
- | `.pf-m-next-month` | `.pf-c-calendar-month__header-nav-control` | Indicates a nav control is the next month. **Required** |
1628
- | `.pf-m-current` | `.pf-c-calendar-month__dates-cell` | Indicates a date is the current day. **Required** |
1629
- | `.pf-m-selected` | `.pf-c-calendar-month__dates-cell` | Indicates a date is selected. |
1630
- | `.pf-m-start-range` | `.pf-c-calendar-month__dates-cell` | Indicates a date is the start of a range. |
1631
- | `.pf-m-in-range` | `.pf-c-calendar-month__dates-cell` | Indicates a date is in a range. |
1632
- | `.pf-m-end-range` | `.pf-c-calendar-month__dates-cell` | Indicates a date is the end of a range. |
1633
- | `.pf-m-adjacent-month` | `.pf-c-calendar-month__dates-cell` | Indicates a date is in an adjacent month. |
1634
- | `.pf-m-disabled` | `.pf-c-calendar-month__dates-cell` | Indicates a date is disabled and unavailable. |
1611
+ | Class | Applied to | Outcome |
1612
+ | -- | -- | -- |
1613
+ | `.pf-c-calendar-month` | `<div>` | Initiates the calendar month component. **Required** |
1614
+ | `.pf-c-calendar-month__header` | `<div>` | Initiates the calendar month header. **Required** |
1615
+ | `.pf-c-calendar-month__header-nav-control` | `<div>` | Initiates a nav control for navigating by month. **Required** |
1616
+ | `.pf-c-calendar-month__header-month` | `<div>` | Initiates the month select. **Required** |
1617
+ | `.pf-c-calendar-month__header-year` | `<div>` | Initiates the year input. **Required** |
1618
+ | `.pf-c-calendar-month__calendar` | `<table>` | Initiates the calendar. **Required** |
1619
+ | `.pf-c-calendar-month__days` | `<thead>` | Initiates the calendar days section. **Required** |
1620
+ | `.pf-c-calendar-month__days-row` | `<tr>` | Initiates the calendar days row. **Required** |
1621
+ | `.pf-c-calendar-month__day` | `<th>` | Initiates a calendar day. **Required** |
1622
+ | `.pf-c-calendar-month__dates` | `<tbody>` | Initiates the calendar dates section. **Required** |
1623
+ | `.pf-c-calendar-month__dates-row` | `<tr>` | Initiates a calendar dates row. **Required** |
1624
+ | `.pf-c-calendar-month__dates-cell` | `<td>` | Initiates a calendar date cell. **Required** |
1625
+ | `.pf-c-calendar-month__date` | `<button>` | Initiates a calendar date. **Required** |
1626
+ | `.pf-m-prev-month` | `.pf-c-calendar-month__header-nav-control` | Indicates a nav control is the previous month. **Required** |
1627
+ | `.pf-m-next-month` | `.pf-c-calendar-month__header-nav-control` | Indicates a nav control is the next month. **Required** |
1628
+ | `.pf-m-current` | `.pf-c-calendar-month__dates-cell` | Indicates a date is the current day. **Required** |
1629
+ | `.pf-m-selected` | `.pf-c-calendar-month__dates-cell` | Indicates a date is selected. |
1630
+ | `.pf-m-start-range` | `.pf-c-calendar-month__dates-cell` | Indicates a date is the start of a range. |
1631
+ | `.pf-m-in-range` | `.pf-c-calendar-month__dates-cell` | Indicates a date is in a range. |
1632
+ | `.pf-m-end-range` | `.pf-c-calendar-month__dates-cell` | Indicates a date is the end of a range. |
1633
+ | `.pf-m-adjacent-month` | `.pf-c-calendar-month__dates-cell` | Indicates a date is in an adjacent month. |
1634
+ | `.pf-m-disabled` | `.pf-c-calendar-month__dates-cell` | Indicates a date is disabled and unavailable. |
@@ -144,10 +144,12 @@ cssPrefix: pf-c-card
144
144
  />
145
145
  </div>
146
146
  </div>
147
- <div
148
- class="pf-c-card__title"
149
- id="card-action-example-2-check-label"
150
- >This is a really really really really really really really really really really long title</div>
147
+ <div class="pf-c-card__header-main">
148
+ <div
149
+ class="pf-c-card__title"
150
+ id="card-action-example-2-check-label"
151
+ >This is a really really really really really really really really really really long title</div>
152
+ </div>
151
153
  </div>
152
154
  <div class="pf-c-card__body">Body</div>
153
155
  <div class="pf-c-card__footer">Footer</div>
@@ -230,10 +232,12 @@ cssPrefix: pf-c-card
230
232
  <div class="pf-c-card__actions pf-m-no-offset">
231
233
  <button class="pf-c-button pf-m-primary" type="button">Action</button>
232
234
  </div>
233
- <h1
234
- class="pf-c-title pf-m-2xl"
235
- id="card-action-no-offset-check-label"
236
- >This is a card title</h1>
235
+ <div class="pf-c-card__header-main">
236
+ <h1
237
+ class="pf-c-title pf-m-2xl"
238
+ id="card-action-no-offset-check-label"
239
+ >This is a card title</h1>
240
+ </div>
237
241
  </div>
238
242
  <div class="pf-c-card__body">Body</div>
239
243
  <div class="pf-c-card__footer">Footer</div>
@@ -555,7 +559,9 @@ cssPrefix: pf-c-card
555
559
  />
556
560
  </div>
557
561
  </div>
558
- <div class="pf-c-card__title" id="card-expandable-example-title">Title</div>
562
+ <div class="pf-c-card__header-main">
563
+ <div class="pf-c-card__title" id="card-expandable-example-title">Title</div>
564
+ </div>
559
565
  </div>
560
566
  </div>
561
567
 
@@ -579,11 +585,13 @@ cssPrefix: pf-c-card
579
585
  </span>
580
586
  </button>
581
587
  </div>
582
- <img
583
- src="/assets/images/pf-logo-small.svg"
584
- alt="PatternFly logo"
585
- width="27px"
586
- />
588
+ <div class="pf-c-card__header-main">
589
+ <img
590
+ src="/assets/images/pf-logo-small.svg"
591
+ alt="PatternFly logo"
592
+ width="27px"
593
+ />
594
+ </div>
587
595
  <div class="pf-c-card__actions">
588
596
  <div class="pf-c-dropdown">
589
597
  <button
@@ -713,7 +721,9 @@ cssPrefix: pf-c-card
713
721
  />
714
722
  </div>
715
723
  </div>
716
- <div class="pf-c-card__title" id="card-expanded-example-title">Title</div>
724
+ <div class="pf-c-card__header-main">
725
+ <div class="pf-c-card__title" id="card-expanded-example-title">Title</div>
726
+ </div>
717
727
  </div>
718
728
  <div class="pf-c-card__expandable-content">
719
729
  <div class="pf-c-card__body">Body</div>
@@ -781,7 +791,9 @@ cssPrefix: pf-c-card
781
791
  />
782
792
  </div>
783
793
  </div>
784
- <div class="pf-c-card__title" id="card-full-height-example-title">Title</div>
794
+ <div class="pf-c-card__header-main">
795
+ <div class="pf-c-card__title" id="card-full-height-example-title">Title</div>
796
+ </div>
785
797
  </div>
786
798
  <div class="pf-c-card__body">Body</div>
787
799
  <div class="pf-c-card__footer">Footer</div>
@@ -847,7 +859,12 @@ cssPrefix: pf-c-card
847
859
  />
848
860
  </div>
849
861
  </div>
850
- <div class="pf-c-card__title" id="card-toggle-on-right-example-title">Title</div>
862
+ <div class="pf-c-card__header-main">
863
+ <div
864
+ class="pf-c-card__title"
865
+ id="card-toggle-on-right-example-title"
866
+ >Title</div>
867
+ </div>
851
868
  <div class="pf-c-card__header-toggle">
852
869
  <button
853
870
  class="pf-c-button pf-m-plain"
@@ -889,30 +906,30 @@ A card is a generic rectangular container that can be used to build other compon
889
906
 
890
907
  ### Usage
891
908
 
892
- | Class | Applied | Outcome |
893
- | -------------------------------- | ----------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
894
- | `.pf-c-card` | `<div>` | Creates a card component. **Required** |
895
- | `.pf-c-card__title` | `<div>` | Creates the title of a card. |
896
- | `.pf-c-card__body` | `<div>` | Creates the body of a card. By default, the body element fills the available space in the card. You can use multiple `.pf-c-card__body` elements. |
897
- | `.pf-c-card__footer` | `<div>` | Creates the footer of a card. |
898
- | `.pf-c-card__header` | `<div>` | Creates the header of the card where images, actions, and/or the card title can go. |
899
- | `.pf-c-card__header-toggle` | `<div>` | Creates the expandable card toggle. |
900
- | `.pf-c-card__header-toggle-icon` | `<span>` | Creates the expandable card toggle icon. |
901
- | `.pf-c-card__actions` | `<div>` | Creates an actions element to be used in the card header. |
902
- | `.pf-c-card__header-main` | `<div>` | Creates a wrapper element to be used in the card header when using an image, logo, or text. |
903
- | `.pf-c-card__expandable-content` | `<div>` | Creates the expandable card's expandable content. |
904
- | `.pf-c-card__sr-input` | `<input>` | Creates an input which, when focused, makes a following `.pf-c-card` appear focused. |
905
- | `.pf-m-compact` | `.pf-c-card` | Creates a compact variation of the card component that involves smaller font sizes and spacing. This variation is for use on dashboards and where a smaller card is preferred. |
906
- | `.pf-m-display-lg` | `.pf-c-card` | Creates a large variation of the card component that involves larger font sizes and spacing. This variation is for marketing use cases. |
907
- | `.pf-m-no-fill` | `.pf-c-card__body` | Sets a `.pf-c-card__body` to not fill the available space in `.pf-c-card`. `.pf-m-no-fill` can be added to multiple card bodies. |
908
- | `.pf-m-hoverable-raised` | `.pf-c-card` | Modifies the card to include hover styles on `:hover`. |
909
- | `.pf-m-selectable-raised` | `.pf-c-card` | Modifies a selectable card so that it is selectable. |
910
- | `.pf-m-selected-raised` | `.pf-c-card.pf-m-selectable-raised` | Modifies a selectable card for the selected state. |
911
- | `.pf-m-non-selectable-raised` | `.pf-c-card` | Modifies a selectable card so that it is not selectable. |
912
- | `.pf-m-flat` | `.pf-c-card` | Modifies the card to have a border instead of a shadow. `.pf-m-flat` is for use in layouts where cards are against a white background. |
913
- | `.pf-m-rounded` | `.pf-c-card` | Modifies the card to have rounded corners. |
914
- | `.pf-m-plain` | `.pf-c-card` | Modifies the card to have no box shadow and no background color. |
915
- | `.pf-m-expanded` | `.pf-c-card` | Modifies the card for the expanded state. |
916
- | `.pf-m-toggle-right` | `.pf-c-card__header` | Modifies the expandable card header toggle to be positioned at flex-end. |
917
- | `.pf-m-full-height` | `.pf-c-card` | Modifies the card to full height of its parent. |
918
- | `.pf-m-no-offset` | `.pf-c-card__actions` | Removes the negative vertical margins on the actions element intended to align the action content with the card title. |
909
+ | Class | Applied | Outcome |
910
+ | ---- | ---- | ---- |
911
+ | `.pf-c-card` | `<div>` | Creates a card component. **Required** |
912
+ | `.pf-c-card__title` | `<div>` | Creates the title of a card. |
913
+ | `.pf-c-card__body` | `<div>` | Creates the body of a card. By default, the body element fills the available space in the card. You can use multiple `.pf-c-card__body` elements. |
914
+ | `.pf-c-card__footer` | `<div>` | Creates the footer of a card. |
915
+ | `.pf-c-card__header` | `<div>` | Creates the header of the card where images, actions, and/or the card title can go. |
916
+ | `.pf-c-card__header-toggle` | `<div>` | Creates the expandable card toggle. |
917
+ | `.pf-c-card__header-toggle-icon` | `<span>` | Creates the expandable card toggle icon. |
918
+ | `.pf-c-card__actions` | `<div>` | Creates an actions element to be used in the card header. |
919
+ | `.pf-c-card__header-main` | `<div>` | Creates a wrapper element to be used in the card header when using an image, logo, or text. **Required if `.pf-c-card__header` has content outside of a card header toggle or card header actions** |
920
+ | `.pf-c-card__expandable-content` | `<div>` | Creates the expandable card's expandable content. |
921
+ | `.pf-c-card__sr-input` | `<input>` | Creates an input which, when focused, makes a following `.pf-c-card` appear focused. |
922
+ | `.pf-m-compact` | `.pf-c-card` | Creates a compact variation of the card component that involves smaller font sizes and spacing. This variation is for use on dashboards and where a smaller card is preferred. |
923
+ | `.pf-m-display-lg` | `.pf-c-card` | Creates a large variation of the card component that involves larger font sizes and spacing. This variation is for marketing use cases. |
924
+ | `.pf-m-no-fill` | `.pf-c-card__body` | Sets a `.pf-c-card__body` to not fill the available space in `.pf-c-card`. `.pf-m-no-fill` can be added to multiple card bodies. |
925
+ | `.pf-m-hoverable-raised` | `.pf-c-card` | Modifies the card to include hover styles on `:hover`. |
926
+ | `.pf-m-selectable-raised` | `.pf-c-card` | Modifies a selectable card so that it is selectable. |
927
+ | `.pf-m-selected-raised` | `.pf-c-card.pf-m-selectable-raised` | Modifies a selectable card for the selected state. |
928
+ | `.pf-m-non-selectable-raised` | `.pf-c-card` | Modifies a selectable card so that it is not selectable. |
929
+ | `.pf-m-flat` | `.pf-c-card` | Modifies the card to have a border instead of a shadow. `.pf-m-flat` is for use in layouts where cards are against a white background. |
930
+ | `.pf-m-rounded` | `.pf-c-card` | Modifies the card to have rounded corners. |
931
+ | `.pf-m-plain` | `.pf-c-card` | Modifies the card to have no box shadow and no background color. |
932
+ | `.pf-m-expanded` | `.pf-c-card` | Modifies the card for the expanded state. |
933
+ | `.pf-m-toggle-right` | `.pf-c-card__header` | Modifies the expandable card header toggle to be positioned at flex-end. |
934
+ | `.pf-m-full-height` | `.pf-c-card` | Modifies the card to full height of its parent. |
935
+ | `.pf-m-no-offset` | `.pf-c-card__actions` | Removes the negative vertical margins on the actions element intended to align the action content with the card title. |
@@ -97,22 +97,18 @@ cssPrefix: pf-c-check
97
97
  type="checkbox"
98
98
  id="check-disabled"
99
99
  name="check-disabled"
100
- disabled
101
100
  />
102
101
 
103
- <label
104
- class="pf-c-check__label pf-m-disabled"
105
- for="check-disabled"
106
- >Check disabled</label>
102
+ <label class="pf-c-check__label" for="check-disabled">Check disabled</label>
107
103
  </div>
108
104
  <div class="pf-c-check">
109
105
  <input
110
106
  class="pf-c-check__input"
111
107
  type="checkbox"
108
+ disabled
112
109
  id="check-disabled-2"
113
110
  name="check-disabled-2"
114
111
  checked
115
- disabled
116
112
  />
117
113
 
118
114
  <label
@@ -213,20 +209,20 @@ If you extend this component or modify the styles of this component, then make s
213
209
 
214
210
  ### Accessibility
215
211
 
216
- | Attribute | Applied to | Outcome |
217
- | ---------- | -------------------- | ----------------------------------------------------------------------------------------------------------------- |
212
+ | Attribute | Applied to | Outcome |
213
+ | -- | -- | -- |
218
214
  | `disabled` | `.pf-c-check__input` | Indicates that the element is unavailable and removes it from keyboard focus. **Required when input is disabled** |
219
- | `required` | `.pf-c-check__input` | Indicates that the element is required. |
215
+ | `required` | `.pf-c-check__input` | Indicates that the element is required. |
220
216
 
221
217
  ### Usage
222
218
 
223
- | Class | Applied to | Outcome |
224
- | ----------------------------- | ------------------------- | --------------------------------------------------------------------------------------------------------------------- |
225
- | `.pf-c-check` | `<div>`, `<label>` | Initiates the check component. **Required** |
226
- | `.pf-c-check__input` | `<input type="checkbox">` | Initiates a check input. **Required** |
227
- | `.pf-c-check__label` | `<label>`, `<span>` | Initiates a label. **Required** |
228
- | `.pf-c-check__label-required` | `<span>` | Initiates a required indicator. |
229
- | `.pf-c-check__description` | `<span>` | Initiates a check description. |
230
- | `.pf-c-check__body` | `<span>` | Initiates a check body. |
231
- | `.pf-m-standalone` | `.pf-c-check` | Modifies the check component for use with a standalone `<input type="checkbox">`. **Required when there is no label** |
232
- | `.pf-m-disabled` | `.pf-c-check__label` | Modifies the check component for the disabled state. **Required when input is disabled** |
219
+ | Class | Applied to | Outcome |
220
+ | -- | -- | -- |
221
+ | `.pf-c-check` | `<div>`, `<label>` | Initiates the check component. **Required** |
222
+ | `.pf-c-check__input` | `<input type="checkbox">` | Initiates a check input. **Required** |
223
+ | `.pf-c-check__label` | `<label>`, `<span>` | Initiates a label. **Required** |
224
+ | `.pf-c-check__label-required` | `<span>` | Initiates a required indicator. |
225
+ | `.pf-c-check__description` | `<span>` | Initiates a check description. |
226
+ | `.pf-c-check__body` | `<span>` | Initiates a check body. |
227
+ | `.pf-m-standalone` | `.pf-c-check` | Modifies the check component for use with a standalone `<input type="checkbox">`. **Required when there is no label** |
228
+ | `.pf-m-disabled` | `.pf-c-check__label` | Modifies the check component for the disabled state. **Required when input is disabled** |
@@ -80,20 +80,20 @@ A Chip is used to display items that have been filtered or selected from a large
80
80
 
81
81
  ## Accessibility
82
82
 
83
- | Attribute | Applied to | Outcome |
84
- | ---------------------------------------------- | -------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
85
- | `aria-label="[button label text]"` | `.pf-c-button` | Provides an accessible name for the button when an icon is used instead of text. Required when an icon is used with no supporting text. |
83
+ | Attribute | Applied to | Outcome |
84
+ | -- | -- | -- |
85
+ | `aria-label="[button label text]"` | `.pf-c-button` | Provides an accessible name for the button when an icon is used instead of text. Required when an icon is used with no supporting text. |
86
86
  | `aria-labelledby="[id value of .pf-c-button]"` | `.pf-c-button` | Gives the button an accessible name by referring to the element that provides the position of the button within a list. Required when the button is being removed. |
87
- | `aria-hidden="true"` | `<i>` | Hides the icon from assistive technologies. |
87
+ | `aria-hidden="true"` | `<i>` | Hides the icon from assistive technologies. |
88
88
 
89
89
  ## Usage
90
90
 
91
- | Class | Applied to | Outcome |
92
- | ------------------ | --------------------- | ------------------------------------------------------------------------------- |
93
- | `.pf-c-chip` | `<div>`, `<button>`, | Initiates the chip component. Use a `<button>` with overflow chips **Required** |
94
- | `.pf-c-chip__text` | `<span>` | Initiates the text inside of the chip. **Required** |
95
- | `.pf-c-chip__icon` | `<span>` | Initiates the icon inside of the chip. |
96
- | `.pf-c-button` | `.pf-c-chip <button>` | Initiates the button used to remove the chip. |
97
- | `.pf-c-badge` | `<span>` | Initiates the badge inside the chip. |
98
- | `.pf-m-overflow` | `button.pf-c-chip` | Applies styling of the overflow chip. |
99
- | `.pf-m-draggable` | `.pf-c-chip` | Modifies the chip to be in the draggable state. |
91
+ | Class | Applied to | Outcome |
92
+ | -- | -- | -- |
93
+ | `.pf-c-chip` | `<div>`, `<button>`, | Initiates the chip component. Use a `<button>` with overflow chips **Required** |
94
+ | `.pf-c-chip__text` | `<span>` | Initiates the text inside of the chip. **Required** |
95
+ | `.pf-c-chip__icon` | `<span>` | Initiates the icon inside of the chip. |
96
+ | `.pf-c-button` | `.pf-c-chip <button>` | Initiates the button used to remove the chip. |
97
+ | `.pf-c-badge` | `<span>` | Initiates the badge inside the chip. |
98
+ | `.pf-m-overflow` | `button.pf-c-chip` | Applies styling of the overflow chip. |
99
+ | `.pf-m-draggable` | `.pf-c-chip` | Modifies the chip to be in the draggable state. |