@patternfly/patternfly 6.0.0-alpha.99 → 6.0.0-prerelease.2

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 (501) hide show
  1. package/README.md +1 -2
  2. package/assets/fontawesome/_animated.scss +1 -0
  3. package/assets/fontawesome/_bordered-pulled.scss +1 -0
  4. package/assets/fontawesome/_core.scss +2 -0
  5. package/assets/fontawesome/_fixed-width.scss +2 -0
  6. package/assets/fontawesome/_icons.scss +1 -0
  7. package/assets/fontawesome/_index.scss +12 -0
  8. package/assets/fontawesome/_larger.scss +4 -2
  9. package/assets/fontawesome/_list.scss +4 -2
  10. package/assets/fontawesome/_rotated-flipped.scss +2 -0
  11. package/assets/fontawesome/_screen-reader.scss +1 -0
  12. package/assets/fontawesome/_stacked.scss +3 -1
  13. package/assets/fontawesome/_variables.scss +3 -2
  14. package/assets/fontawesome/fontawesome.scss +12 -12
  15. package/assets/icons/iconUnicodes.json +6 -0
  16. package/assets/images/img_avatar-dark.svg +22 -16
  17. package/assets/images/img_avatar-light.svg +25 -18
  18. package/assets/images/pf-background.svg +21 -21
  19. package/assets/images/pf_logo.svg +11 -11
  20. package/assets/images/pf_logo_white.svg +16 -17
  21. package/assets/pficon/pf-v6-pficon.woff2 +0 -0
  22. package/assets/pficon/pficon.scss +310 -271
  23. package/base/_index.scss +10 -0
  24. package/base/{_globals.scss → normalize.scss} +15 -48
  25. package/base/patternfly-common.css +14 -0
  26. package/base/patternfly-common.scss +68 -2
  27. package/base/patternfly-fa-icons.css +1 -1
  28. package/base/patternfly-fa-icons.scss +35 -2
  29. package/base/patternfly-fonts.css +10 -80
  30. package/base/patternfly-fonts.scss +49 -2
  31. package/base/patternfly-pf-icons.css +158 -134
  32. package/base/patternfly-pf-icons.scss +1 -2
  33. package/base/patternfly-svg-icons.css +5 -0
  34. package/base/{_svg-icons.scss → patternfly-svg-icons.scss} +2 -0
  35. package/base/patternfly-variables.css +1082 -1206
  36. package/base/patternfly-variables.scss +20 -2
  37. package/base/reset.scss +33 -0
  38. package/base/tokens/_index.scss +6 -0
  39. package/base/tokens/tokens-charts-dark.scss +173 -0
  40. package/base/tokens/{_tokens-charts.scss → tokens-charts.scss} +162 -148
  41. package/base/tokens/{_tokens-dark.scss → tokens-dark.scss} +307 -294
  42. package/base/tokens/{_tokens-default.scss → tokens-default.scss} +574 -447
  43. package/base/tokens/{_tokens-font.scss → tokens-local.scss} +13 -34
  44. package/base/tokens/{_tokens-palette.scss → tokens-palette.scss} +69 -70
  45. package/components/AboutModalBox/about-modal-box.css +86 -81
  46. package/components/AboutModalBox/about-modal-box.scss +80 -82
  47. package/components/Accordion/accordion.css +44 -43
  48. package/components/Accordion/accordion.scss +52 -52
  49. package/components/ActionList/action-list.css +6 -5
  50. package/components/ActionList/action-list.scss +7 -5
  51. package/components/Alert/alert-group.css +72 -19
  52. package/components/Alert/alert-group.scss +105 -18
  53. package/components/Alert/alert.css +52 -59
  54. package/components/Alert/alert.scss +56 -65
  55. package/components/Avatar/avatar.css +42 -41
  56. package/components/Avatar/avatar.scss +8 -7
  57. package/components/BackToTop/back-to-top.css +19 -17
  58. package/components/BackToTop/back-to-top.scss +17 -17
  59. package/components/Backdrop/backdrop.css +1 -1
  60. package/components/Backdrop/backdrop.scss +3 -4
  61. package/components/BackgroundImage/background-image.scss +3 -4
  62. package/components/Badge/badge.css +29 -7
  63. package/components/Badge/badge.scss +33 -9
  64. package/components/Banner/banner.css +30 -37
  65. package/components/Banner/banner.scss +30 -43
  66. package/components/Brand/brand.css +14 -10
  67. package/components/Brand/brand.scss +8 -5
  68. package/components/Breadcrumb/breadcrumb.css +23 -24
  69. package/components/Breadcrumb/breadcrumb.scss +25 -28
  70. package/components/Button/button.css +150 -128
  71. package/components/Button/button.scss +155 -130
  72. package/components/CalendarMonth/calendar-month.css +46 -46
  73. package/components/CalendarMonth/calendar-month.scss +49 -50
  74. package/components/Card/card.css +110 -93
  75. package/components/Card/card.scss +118 -92
  76. package/components/Check/check.css +5 -5
  77. package/components/Check/check.scss +7 -8
  78. package/components/ClipboardCopy/clipboard-copy.css +33 -41
  79. package/components/ClipboardCopy/clipboard-copy.scss +35 -44
  80. package/components/CodeBlock/code-block.css +21 -20
  81. package/components/CodeBlock/code-block.scss +21 -21
  82. package/components/CodeEditor/code-editor.css +35 -34
  83. package/components/CodeEditor/code-editor.scss +35 -35
  84. package/components/Content/content.css +167 -153
  85. package/components/Content/content.scss +204 -145
  86. package/components/DataList/data-list-grid.css +117 -117
  87. package/components/DataList/data-list-grid.scss +22 -20
  88. package/components/DataList/data-list.css +308 -312
  89. package/components/DataList/data-list.scss +145 -152
  90. package/components/DatePicker/date-picker.css +17 -17
  91. package/components/DatePicker/date-picker.scss +17 -18
  92. package/components/DescriptionList/description-list-order.css +5 -5
  93. package/components/DescriptionList/description-list-order.scss +3 -1
  94. package/components/DescriptionList/description-list.css +46 -44
  95. package/components/DescriptionList/description-list.scss +26 -31
  96. package/components/Divider/divider.css +104 -107
  97. package/components/Divider/divider.scss +19 -19
  98. package/components/DragDrop/drag-drop.css +4 -2
  99. package/components/DragDrop/drag-drop.scss +3 -3
  100. package/components/Drawer/drawer.css +115 -114
  101. package/components/Drawer/drawer.scss +136 -134
  102. package/components/DualListSelector/dual-list-selector.css +64 -61
  103. package/components/DualListSelector/dual-list-selector.scss +54 -51
  104. package/components/EmptyState/empty-state.css +38 -37
  105. package/components/EmptyState/empty-state.scss +39 -39
  106. package/components/ExpandableSection/expandable-section.css +27 -86
  107. package/components/ExpandableSection/expandable-section.scss +32 -101
  108. package/components/FileUpload/file-upload.css +2 -2
  109. package/components/FileUpload/file-upload.scss +2 -3
  110. package/components/Form/form.css +173 -115
  111. package/components/Form/form.scss +117 -103
  112. package/components/FormControl/form-control.css +57 -57
  113. package/components/FormControl/form-control.scss +69 -67
  114. package/components/HelperText/helper-text.css +5 -4
  115. package/components/HelperText/helper-text.scss +8 -6
  116. package/components/Hint/hint.css +25 -25
  117. package/components/Hint/hint.scss +25 -27
  118. package/components/Icon/icon.css +10 -10
  119. package/components/Icon/icon.scss +11 -12
  120. package/components/InlineEdit/inline-edit.css +12 -12
  121. package/components/InlineEdit/inline-edit.scss +12 -13
  122. package/components/InputGroup/input-group.css +16 -16
  123. package/components/InputGroup/input-group.scss +18 -19
  124. package/components/JumpLinks/jump-links.css +80 -96
  125. package/components/JumpLinks/jump-links.scss +80 -100
  126. package/components/Label/label-group.css +28 -28
  127. package/components/Label/label-group.scss +29 -30
  128. package/components/Label/label.css +102 -87
  129. package/components/Label/label.scss +113 -94
  130. package/components/List/list.css +44 -47
  131. package/components/List/list.scss +51 -58
  132. package/components/Login/login.css +122 -118
  133. package/components/Login/login.scss +105 -112
  134. package/components/Masthead/masthead.css +273 -175
  135. package/components/Masthead/masthead.scss +102 -68
  136. package/components/Menu/menu.css +151 -95
  137. package/components/Menu/menu.scss +59 -40
  138. package/components/MenuToggle/menu-toggle.css +129 -108
  139. package/components/MenuToggle/menu-toggle.scss +150 -128
  140. package/components/ModalBox/modal-box.css +53 -45
  141. package/components/ModalBox/modal-box.scss +52 -46
  142. package/components/MultipleFileUpload/multiple-file-upload.css +37 -37
  143. package/components/MultipleFileUpload/multiple-file-upload.scss +38 -39
  144. package/components/Nav/nav.css +33 -9
  145. package/components/Nav/nav.scss +46 -13
  146. package/components/NotificationDrawer/notification-drawer.css +50 -51
  147. package/components/NotificationDrawer/notification-drawer.scss +58 -57
  148. package/components/NumberInput/number-input.css +7 -11
  149. package/components/NumberInput/number-input.scss +5 -7
  150. package/components/OverflowMenu/overflow-menu.css +2 -1
  151. package/components/OverflowMenu/overflow-menu.scss +3 -1
  152. package/components/Page/page.css +175 -519
  153. package/components/Page/page.scss +155 -386
  154. package/components/Pagination/pagination.css +82 -79
  155. package/components/Pagination/pagination.scss +43 -40
  156. package/components/Panel/panel.css +33 -30
  157. package/components/Panel/panel.scss +35 -33
  158. package/components/Popover/popover.css +54 -52
  159. package/components/Popover/popover.scss +55 -54
  160. package/components/Progress/progress.css +8 -4
  161. package/components/Progress/progress.scss +14 -11
  162. package/components/ProgressStepper/progress-stepper.css +246 -245
  163. package/components/ProgressStepper/progress-stepper.scss +118 -118
  164. package/components/Radio/radio.css +7 -7
  165. package/components/Radio/radio.scss +9 -10
  166. package/components/Sidebar/sidebar.css +139 -139
  167. package/components/Sidebar/sidebar.scss +61 -61
  168. package/components/SimpleList/simple-list.css +21 -20
  169. package/components/SimpleList/simple-list.scss +22 -23
  170. package/components/Skeleton/skeleton.css +4 -4
  171. package/components/Skeleton/skeleton.scss +7 -8
  172. package/components/SkipToContent/skip-to-content.css +7 -6
  173. package/components/SkipToContent/skip-to-content.scss +7 -7
  174. package/components/Slider/slider.css +31 -31
  175. package/components/Slider/slider.scss +54 -55
  176. package/components/Spinner/spinner.scss +4 -5
  177. package/components/Switch/switch.css +4 -10
  178. package/components/Switch/switch.scss +8 -17
  179. package/components/TabContent/tab-content.css +25 -25
  180. package/components/TabContent/tab-content.scss +28 -28
  181. package/components/Table/table-grid.css +434 -508
  182. package/components/Table/table-grid.scss +131 -150
  183. package/components/Table/table-scrollable.css +31 -34
  184. package/components/Table/table-scrollable.scss +44 -41
  185. package/components/Table/table-tree-view.css +287 -279
  186. package/components/Table/table-tree-view.scss +84 -84
  187. package/components/Table/table.css +316 -279
  188. package/components/Table/table.scss +346 -301
  189. package/components/Tabs/tabs.css +215 -240
  190. package/components/Tabs/tabs.scss +130 -162
  191. package/components/TextInputGroup/text-input-group.css +122 -64
  192. package/components/TextInputGroup/text-input-group.scss +144 -87
  193. package/components/Tile/tile.css +15 -15
  194. package/components/Tile/tile.scss +16 -17
  195. package/components/Timestamp/timestamp.css +13 -19
  196. package/components/Timestamp/timestamp.scss +16 -22
  197. package/components/Title/title.css +14 -13
  198. package/components/Title/title.scss +15 -15
  199. package/components/ToggleGroup/toggle-group.css +37 -37
  200. package/components/ToggleGroup/toggle-group.scss +38 -41
  201. package/components/Toolbar/toolbar.css +547 -1431
  202. package/components/Toolbar/toolbar.scss +159 -123
  203. package/components/Tooltip/tooltip.css +28 -27
  204. package/components/Tooltip/tooltip.scss +31 -30
  205. package/components/TreeView/tree-view.css +184 -184
  206. package/components/TreeView/tree-view.scss +133 -133
  207. package/components/Truncate/truncate.css +2 -2
  208. package/components/Truncate/truncate.scss +7 -8
  209. package/components/Wizard/wizard.css +190 -154
  210. package/components/Wizard/wizard.scss +211 -165
  211. package/components/_index.css +22378 -0
  212. package/components/_index.scss +82 -0
  213. package/docs/components/AboutModalBox/examples/AboutModalBox.md +3 -1
  214. package/docs/components/Accordion/examples/Accordion.md +1 -1
  215. package/docs/components/ActionList/examples/ActionList.md +64 -24
  216. package/docs/components/Alert/examples/Alert.md +116 -74
  217. package/docs/components/BackToTop/examples/BackToTop.md +1 -1
  218. package/docs/components/Badge/examples/Badge.md +6 -16
  219. package/docs/components/Banner/examples/Banner.md +16 -10
  220. package/docs/components/Brand/examples/Brand.md +2 -2
  221. package/docs/components/Breadcrumb/examples/Breadcrumb.md +19 -59
  222. package/docs/components/Button/examples/Button.md +537 -368
  223. package/docs/components/CalendarMonth/examples/CalendarMonth.md +24 -8
  224. package/docs/components/Card/examples/Card.md +372 -658
  225. package/docs/components/Check/examples/Check.md +10 -15
  226. package/docs/components/ClipboardCopy/examples/ClipboardCopy.md +92 -47
  227. package/docs/components/CodeBlock/examples/CodeBlock.md +51 -28
  228. package/docs/components/CodeEditor/examples/CodeEditor.md +41 -22
  229. package/docs/components/Content/examples/Content.md +600 -60
  230. package/docs/components/DataList/examples/DataList.md +291 -1028
  231. package/docs/components/DatePicker/examples/DatePicker.md +18 -6
  232. package/docs/components/DescriptionList/examples/DescriptionList.md +80 -55
  233. package/docs/components/Drawer/examples/Drawer.md +60 -21
  234. package/docs/components/DualListSelector/examples/DualListSelector.md +364 -996
  235. package/docs/components/EmptyState/examples/EmptyState.md +123 -53
  236. package/docs/components/ExpandableSection/examples/ExpandableSection.md +96 -91
  237. package/docs/components/FileUpload/examples/FileUpload.md +42 -14
  238. package/docs/components/Form/examples/Form.md +100 -26
  239. package/docs/components/Hint/examples/Hint.md +54 -164
  240. package/docs/components/InlineEdit/examples/InlineEdit.md +132 -45
  241. package/docs/components/InputGroup/examples/InputGroup.md +38 -62
  242. package/docs/components/JumpLinks/examples/JumpLinks.md +189 -72
  243. package/docs/components/Label/examples/Label.md +2577 -406
  244. package/docs/components/Login/examples/Login.md +372 -334
  245. package/docs/components/Masthead/examples/masthead.md +515 -484
  246. package/docs/components/Menu/examples/Menu.md +77 -138
  247. package/docs/components/MenuToggle/examples/MenuToggle.md +289 -39
  248. package/docs/components/ModalBox/examples/ModalBox.md +158 -100
  249. package/docs/components/MultipleFileUpload/examples/MultipleFileUpload.md +137 -97
  250. package/docs/components/Nav/examples/Navigation.css +2 -7
  251. package/docs/components/Nav/examples/Navigation.md +337 -270
  252. package/docs/components/NotificationDrawer/examples/NotificationDrawer.md +515 -2076
  253. package/docs/components/NumberInput/examples/NumberInput.md +96 -48
  254. package/docs/components/OverflowMenu/examples/overflow-menu.css +4 -28
  255. package/docs/components/OverflowMenu/examples/overflow-menu.md +104 -159
  256. package/docs/components/Page/examples/Page.css +5 -9
  257. package/docs/components/Page/examples/Page.md +254 -181
  258. package/docs/components/Pagination/examples/Pagination.md +336 -756
  259. package/docs/components/Panel/examples/Panel.md +3 -2
  260. package/docs/components/Popover/examples/Popover.md +60 -15
  261. package/docs/components/ProgressStepper/examples/ProgressStepper.md +15 -15
  262. package/docs/components/Sidebar/examples/Sidebar.css +4 -2
  263. package/docs/components/Sidebar/examples/Sidebar.md +3 -3
  264. package/docs/components/Skeleton/examples/Skeleton.css +1 -1
  265. package/docs/components/SkipToContent/examples/SkipToContent.md +3 -1
  266. package/docs/components/Slider/examples/Slider.md +53 -45
  267. package/docs/components/Spinner/examples/Spinner.md +1 -1
  268. package/docs/components/Switch/examples/Switch.md +33 -148
  269. package/docs/components/Table/examples/Table.css +11 -6
  270. package/docs/components/Table/examples/Table.md +5302 -2464
  271. package/docs/components/Tabs/examples/Tabs.md +1267 -607
  272. package/docs/components/TextInputGroup/examples/TextInputGroup.css +8 -3
  273. package/docs/components/TextInputGroup/examples/TextInputGroup.md +469 -278
  274. package/docs/components/Tile/examples/Tile.css +5 -5
  275. package/docs/components/Timestamp/examples/Timestamp.md +7 -1
  276. package/docs/components/ToggleGroup/examples/toggle-group.md +1 -3
  277. package/docs/components/Toolbar/examples/Toolbar.css +50 -39
  278. package/docs/components/Toolbar/examples/Toolbar.md +1562 -1200
  279. package/docs/components/Tooltip/examples/Tooltip.css +1 -1
  280. package/docs/components/TreeView/examples/TreeView.md +627 -49
  281. package/docs/components/Truncate/examples/Truncate.css +1 -2
  282. package/docs/components/Wizard/examples/Wizard.md +1595 -126
  283. package/docs/demos/AboutModal/examples/AboutModal.md +191 -198
  284. package/docs/demos/Alert/examples/Alert.md +924 -909
  285. package/docs/demos/BackToTop/examples/BackToTop.md +318 -327
  286. package/docs/demos/Banner/examples/Banner.md +641 -659
  287. package/docs/demos/Button/examples/Button.md +8 -8
  288. package/docs/demos/Card/examples/Card.css +6 -6
  289. package/docs/demos/Card/examples/Card.md +419 -606
  290. package/docs/demos/CardView/examples/CardView.md +822 -1435
  291. package/docs/demos/Dashboard/examples/Dashboard.md +1308 -1442
  292. package/docs/demos/DataList/examples/DataList.md +3210 -3424
  293. package/docs/demos/DescriptionList/examples/DescriptionList.md +899 -937
  294. package/docs/demos/Drawer/examples/Drawer.md +1165 -1176
  295. package/docs/demos/Form/examples/BasicForms.md +153 -88
  296. package/docs/demos/JumpLinks/examples/JumpLinks.md +1710 -1602
  297. package/docs/demos/Masthead/examples/Masthead.md +1719 -1583
  298. package/docs/demos/Modal/examples/Modal.md +1231 -1235
  299. package/docs/demos/Nav/examples/Nav.md +1216 -1230
  300. package/docs/demos/NotificationDrawer/examples/NotificationDrawer.md +1910 -4577
  301. package/docs/demos/Page/examples/Page.css +11 -0
  302. package/docs/demos/Page/examples/Page.md +3753 -2540
  303. package/docs/demos/Panel/Panel.md +88 -0
  304. package/docs/demos/PasswordGenerator/examples/PasswordGenerator.md +9 -3
  305. package/docs/demos/PasswordStrength/examples/PasswordStrength.md +16 -48
  306. package/docs/demos/PrimaryDetail/examples/PrimaryDetail.md +5150 -6255
  307. package/docs/demos/Skeleton/examples/Skeleton.md +297 -304
  308. package/docs/demos/Table/examples/Table.md +14272 -15154
  309. package/docs/demos/Tabs/examples/Tabs.md +2821 -2891
  310. package/docs/demos/Toolbar/examples/Toolbar.css +10 -18
  311. package/docs/demos/Toolbar/examples/Toolbar.md +2487 -2663
  312. package/docs/demos/Wizard/examples/Wizard.md +3021 -2784
  313. package/docs/layouts/Bullseye/examples/Bullseye.css +4 -4
  314. package/docs/layouts/Flex/examples/Flex.css +4 -4
  315. package/docs/layouts/Flex/examples/Flex.md +50 -50
  316. package/docs/layouts/Gallery/examples/Gallery.css +4 -4
  317. package/docs/layouts/Gallery/examples/Gallery.md +6 -6
  318. package/docs/layouts/Grid/examples/Grid.css +3 -3
  319. package/docs/layouts/Grid/examples/Grid.md +33 -33
  320. package/docs/layouts/Level/examples/Level.css +5 -5
  321. package/docs/layouts/Split/examples/Split.css +4 -4
  322. package/docs/layouts/Stack/examples/Stack.css +5 -5
  323. package/docs/utilities/Accessibility/examples/Accessibility.md +2 -2
  324. package/docs/utilities/Alignment/examples/Alignment.css +6 -6
  325. package/docs/utilities/Alignment/examples/Alignment.md +5 -5
  326. package/docs/utilities/BackgroundColor/examples/BackgroundColor.md +7 -67
  327. package/docs/utilities/BoxShadow/examples/box-shadow.css +11 -11
  328. package/docs/utilities/BoxShadow/examples/box-shadow.md +15 -38
  329. package/docs/utilities/Display/examples/Display.css +3 -10
  330. package/docs/utilities/Display/examples/Display.md +21 -12
  331. package/docs/utilities/Flex/examples/Flex.css +7 -7
  332. package/docs/utilities/Flex/examples/Flex.md +82 -40
  333. package/docs/utilities/Float/examples/Float.css +5 -5
  334. package/docs/utilities/Float/examples/Float.md +6 -6
  335. package/docs/utilities/Sizing/examples/Sizing.css +6 -6
  336. package/docs/utilities/Sizing/examples/Sizing.md +60 -60
  337. package/docs/utilities/Spacing/examples/Spacing.css +3 -3
  338. package/docs/utilities/Spacing/examples/Spacing.md +37 -37
  339. package/docs/utilities/Text/examples/Text.md +78 -77
  340. package/icons/pficons.mjs +6 -0
  341. package/layouts/Bullseye/bullseye.css +4 -0
  342. package/layouts/Bullseye/bullseye.scss +5 -1
  343. package/layouts/Flex/flex.css +241 -237
  344. package/layouts/Flex/flex.scss +48 -44
  345. package/layouts/Gallery/gallery.css +15 -11
  346. package/layouts/Gallery/gallery.scss +9 -5
  347. package/layouts/Grid/grid.css +20 -16
  348. package/layouts/Grid/grid.scss +12 -8
  349. package/layouts/Level/level.css +5 -1
  350. package/layouts/Level/level.scss +6 -2
  351. package/layouts/Split/split.css +5 -1
  352. package/layouts/Split/split.scss +6 -2
  353. package/layouts/Stack/stack.css +5 -1
  354. package/layouts/Stack/stack.scss +6 -2
  355. package/layouts/_index.css +3461 -0
  356. package/layouts/_index.scss +8 -0
  357. package/package.json +39 -39
  358. package/patternfly-addons.css +2071 -2648
  359. package/patternfly-addons.scss +2 -12
  360. package/patternfly-base-no-globals.css +1429 -1645
  361. package/patternfly-base-no-globals.scss +5 -3
  362. package/patternfly-base.css +1511 -1723
  363. package/patternfly-base.scss +2 -6
  364. package/patternfly-charts.css +579 -240
  365. package/patternfly-charts.scss +352 -337
  366. package/patternfly-no-globals.css +19895 -23410
  367. package/patternfly-no-globals.scss +5 -4
  368. package/patternfly.css +19999 -23510
  369. package/patternfly.min.css +1 -1
  370. package/patternfly.min.css.map +1 -1
  371. package/patternfly.scss +3 -4
  372. package/sass-utilities/_index.scss +6 -0
  373. package/sass-utilities/functions.scss +25 -25
  374. package/sass-utilities/{_init.scss → init.scss} +6 -6
  375. package/sass-utilities/mixins.scss +108 -72
  376. package/sass-utilities/{component-namespaces.scss → namespaces-components.scss} +3 -27
  377. package/sass-utilities/{layout-namespaces.scss → namespaces-layouts.scss} +3 -1
  378. package/sass-utilities/scss-variables.scss +49 -261
  379. package/utilities/Accessibility/accessibility.css +15 -15
  380. package/utilities/Accessibility/accessibility.scss +8 -6
  381. package/utilities/Alignment/alignment.css +29 -29
  382. package/utilities/Alignment/alignment.scss +6 -4
  383. package/utilities/BackgroundColor/background-color.css +67 -0
  384. package/utilities/BackgroundColor/background-color.scss +16 -0
  385. package/utilities/BoxShadow/box-shadow.css +15 -39
  386. package/utilities/BoxShadow/box-shadow.scss +19 -28
  387. package/utilities/Display/display.css +43 -5
  388. package/utilities/Display/display.scss +7 -4
  389. package/utilities/Flex/flex.css +50 -50
  390. package/utilities/Flex/flex.scss +21 -20
  391. package/utilities/Float/float.css +29 -29
  392. package/utilities/Float/float.scss +6 -6
  393. package/utilities/Sizing/sizing.css +58 -58
  394. package/utilities/Sizing/sizing.scss +23 -21
  395. package/utilities/Spacing/spacing.css +1372 -1372
  396. package/utilities/Spacing/spacing.scss +6 -6
  397. package/utilities/Text/text.css +419 -662
  398. package/utilities/Text/text.scss +81 -107
  399. package/utilities/_index.css +7815 -0
  400. package/utilities/_index.scss +10 -0
  401. package/assets/images/pf-logo-small.svg +0 -23
  402. package/assets/images/pf_logo_white.hbs +0 -35
  403. package/assets/images/pfbg-icon.svg +0 -1
  404. package/assets/pficon/pf-v5-pficon.woff2 +0 -0
  405. package/base/_base.scss +0 -2
  406. package/base/_chart-globals.scss +0 -415
  407. package/base/_common.scss +0 -50
  408. package/base/_fa-icons.scss +0 -33
  409. package/base/_fonts.scss +0 -136
  410. package/base/_icons.scss +0 -3
  411. package/base/_pficons.scss +0 -2
  412. package/base/_themes.scss +0 -43
  413. package/base/_variables.scss +0 -299
  414. package/base/patternfly-globals.css +0 -120
  415. package/base/patternfly-globals.scss +0 -2
  416. package/base/patternfly-icons.css +0 -4728
  417. package/base/patternfly-icons.scss +0 -2
  418. package/base/patternfly-themes.css +0 -82
  419. package/base/patternfly-themes.scss +0 -2
  420. package/base/themes/dark/_chart-globals.scss +0 -42
  421. package/base/themes/dark/_globals.scss +0 -5
  422. package/base/tokens/_workspace-overrides.scss +0 -7
  423. package/components/AppLauncher/app-launcher.css +0 -244
  424. package/components/AppLauncher/app-launcher.scss +0 -308
  425. package/components/AppLauncher/themes/dark/app-launcher.scss +0 -13
  426. package/components/Chip/chip-group.css +0 -93
  427. package/components/Chip/chip-group.scss +0 -98
  428. package/components/Chip/chip.css +0 -122
  429. package/components/Chip/chip.scss +0 -140
  430. package/components/Chip/themes/dark/chip.scss +0 -9
  431. package/components/ContextSelector/context-selector.css +0 -336
  432. package/components/ContextSelector/context-selector.scss +0 -384
  433. package/components/ContextSelector/themes/dark/context-selector.scss +0 -24
  434. package/components/Dropdown/dropdown.css +0 -686
  435. package/components/Dropdown/dropdown.scss +0 -820
  436. package/components/Dropdown/themes/dark/dropdown.scss +0 -32
  437. package/components/LogViewer/log-viewer.css +0 -197
  438. package/components/LogViewer/log-viewer.scss +0 -226
  439. package/components/LogViewer/themes/dark/log-viewer.scss +0 -7
  440. package/components/NotificationBadge/notification-badge.css +0 -87
  441. package/components/NotificationBadge/notification-badge.scss +0 -108
  442. package/components/OptionsMenu/options-menu.css +0 -279
  443. package/components/OptionsMenu/options-menu.scss +0 -332
  444. package/components/OptionsMenu/themes/dark/options-menu.scss +0 -21
  445. package/components/Select/select.css +0 -599
  446. package/components/Select/select.scss +0 -713
  447. package/components/Select/themes/dark/select.scss +0 -23
  448. package/components/_all.scss +0 -91
  449. package/docs/components/AppLauncher/deprecated/application-launcher.css +0 -25
  450. package/docs/components/AppLauncher/deprecated/application-launcher.md +0 -792
  451. package/docs/components/Breadcrumb/examples/Breadcrumb.css +0 -3
  452. package/docs/components/Chip/examples/Chip.md +0 -846
  453. package/docs/components/ContextSelector/deprecated/context-selector.css +0 -7
  454. package/docs/components/ContextSelector/deprecated/context-selector.md +0 -909
  455. package/docs/components/Dropdown/deprecated/Dropdown.css +0 -64
  456. package/docs/components/Dropdown/deprecated/Dropdown.md +0 -2920
  457. package/docs/components/LogViewer/examples/LogViewer.css +0 -17
  458. package/docs/components/LogViewer/examples/LogViewer.md +0 -5936
  459. package/docs/components/NotificationBadge/examples/NotificationBadge.md +0 -222
  460. package/docs/components/OptionsMenu/deprecated/options-menu.css +0 -25
  461. package/docs/components/OptionsMenu/deprecated/options-menu.md +0 -1014
  462. package/docs/components/Page/deprecated/PageHeader.css +0 -17
  463. package/docs/components/Page/deprecated/PageHeader.md +0 -261
  464. package/docs/components/Pagination/examples/Pagination.css +0 -3
  465. package/docs/components/Select/deprecated/Select.css +0 -56
  466. package/docs/components/Select/deprecated/Select.md +0 -3525
  467. package/docs/components/Tabs/examples/Tabs.css +0 -10
  468. package/docs/components/ToggleGroup/examples/toggle-group.css +0 -4
  469. package/docs/demos/ContextSelector/examples/ContextSelector.md +0 -1712
  470. package/docs/demos/Page/examples/Penta.md +0 -821
  471. package/docs/utilities/Text/examples/Text.css +0 -0
  472. package/layouts/_all.scss +0 -7
  473. package/patternfly-base-no-globals-theme-dark-unversioned.css +0 -6276
  474. package/patternfly-base-no-globals-theme-dark-unversioned.scss +0 -11
  475. package/patternfly-base-theme-dark-unversioned.css +0 -6393
  476. package/patternfly-base-theme-dark-unversioned.scss +0 -5
  477. package/patternfly-charts-theme-dark-unversioned.css +0 -70
  478. package/patternfly-charts-theme-dark-unversioned.scss +0 -8
  479. package/patternfly-charts-theme-dark.css +0 -70
  480. package/patternfly-charts-theme-dark.scss +0 -8
  481. package/patternfly-theme-dark-unversioned.css +0 -35533
  482. package/patternfly-theme-dark-unversioned.scss +0 -6
  483. package/patternfly-theme-dark.css +0 -0
  484. package/patternfly-theme-dark.scss +0 -1
  485. package/sass-utilities/_all.scss +0 -9
  486. package/sass-utilities/colors.scss +0 -82
  487. package/sass-utilities/div.import.scss +0 -3
  488. package/sass-utilities/div.scss +0 -4
  489. package/sass-utilities/placeholders.scss +0 -72
  490. package/sass-utilities/themes/dark/_all.scss +0 -4
  491. package/sass-utilities/themes/dark/colors.scss +0 -16
  492. package/sass-utilities/themes/dark/mixins.scss +0 -7
  493. package/sass-utilities/themes/dark/placeholders.scss +0 -5
  494. package/sass-utilities/themes/dark/scss-variables.scss +0 -92
  495. package/themes/dark/_patternfly-charts-theme-dark.scss +0 -98
  496. package/utilities/BackgroundColor/BackgroundColor.css +0 -414
  497. package/utilities/BackgroundColor/BackgroundColor.scss +0 -64
  498. package/utilities/BackgroundColor/themes/dark/BackgroundColor.css +0 -0
  499. package/utilities/BackgroundColor/themes/dark/BackgroundColor.scss +0 -25
  500. package/utilities/Text/themes/dark/text.css +0 -0
  501. package/utilities/Text/themes/dark/text.scss +0 -33
@@ -1,3525 +0,0 @@
1
- ---
2
- id: Select
3
- section: components
4
- subsection: menus
5
- cssPrefix: pf-v6-c-select
6
- deprecated: true
7
- ---import './Select.css'
8
-
9
- ## Single
10
-
11
- ### Single select
12
-
13
- ```html
14
- <div class="pf-v6-c-select">
15
- <span id="select-single-label" hidden>Choose one</span>
16
-
17
- <button
18
- class="pf-v6-c-select__toggle"
19
- type="button"
20
- id="select-single-toggle"
21
- aria-haspopup="true"
22
- aria-expanded="false"
23
- aria-labelledby="select-single-label select-single-toggle"
24
- >
25
- <div class="pf-v6-c-select__toggle-wrapper">
26
- <span class="pf-v6-c-select__toggle-text">Filter by status</span>
27
- </div>
28
- <span class="pf-v6-c-select__toggle-arrow">
29
- <i class="fas fa-caret-down" aria-hidden="true"></i>
30
- </span>
31
- </button>
32
-
33
- <ul
34
- class="pf-v6-c-select__menu"
35
- role="listbox"
36
- aria-labelledby="select-single-label"
37
- hidden
38
- >
39
- <li role="presentation">
40
- <button class="pf-v6-c-select__menu-item" role="option">Running</button>
41
- </li>
42
- <li role="presentation">
43
- <button
44
- class="pf-v6-c-select__menu-item pf-m-selected"
45
- role="option"
46
- aria-selected="true"
47
- >
48
- Stopped
49
- <span class="pf-v6-c-select__menu-item-icon">
50
- <i class="fas fa-check" aria-hidden="true"></i>
51
- </span>
52
- </button>
53
- </li>
54
- <li role="presentation">
55
- <button class="pf-v6-c-select__menu-item" role="option">Down</button>
56
- </li>
57
- <li role="presentation">
58
- <button class="pf-v6-c-select__menu-item" role="option">Degraded</button>
59
- </li>
60
- <li role="presentation">
61
- <button class="pf-v6-c-select__menu-item" role="option">Needs maintenance</button>
62
- </li>
63
- </ul>
64
- </div>
65
-
66
- ```
67
-
68
- ### Single expanded
69
-
70
- ```html
71
- <div class="pf-v6-c-select pf-m-expanded">
72
- <span id="select-single-expanded-label" hidden>Choose one</span>
73
-
74
- <button
75
- class="pf-v6-c-select__toggle"
76
- type="button"
77
- id="select-single-expanded-toggle"
78
- aria-haspopup="true"
79
- aria-expanded="true"
80
- aria-labelledby="select-single-expanded-label select-single-expanded-toggle"
81
- >
82
- <div class="pf-v6-c-select__toggle-wrapper">
83
- <span class="pf-v6-c-select__toggle-text">Filter by status</span>
84
- </div>
85
- <span class="pf-v6-c-select__toggle-arrow">
86
- <i class="fas fa-caret-down" aria-hidden="true"></i>
87
- </span>
88
- </button>
89
-
90
- <ul
91
- class="pf-v6-c-select__menu"
92
- role="listbox"
93
- aria-labelledby="select-single-expanded-label"
94
- >
95
- <li role="presentation">
96
- <button class="pf-v6-c-select__menu-item" role="option">Running</button>
97
- </li>
98
- <li role="presentation">
99
- <button
100
- class="pf-v6-c-select__menu-item pf-m-selected"
101
- role="option"
102
- aria-selected="true"
103
- >
104
- Stopped
105
- <span class="pf-v6-c-select__menu-item-icon">
106
- <i class="fas fa-check" aria-hidden="true"></i>
107
- </span>
108
- </button>
109
- </li>
110
- <li role="presentation">
111
- <button class="pf-v6-c-select__menu-item" role="option">Down</button>
112
- </li>
113
- <li role="presentation">
114
- <button class="pf-v6-c-select__menu-item" role="option">Degraded</button>
115
- </li>
116
- <li role="presentation">
117
- <button class="pf-v6-c-select__menu-item" role="option">Needs maintenance</button>
118
- </li>
119
- </ul>
120
- </div>
121
-
122
- ```
123
-
124
- ### Single with top expanded
125
-
126
- ```html
127
- <div class="pf-v6-c-select pf-m-expanded pf-m-top">
128
- <span id="select-single-top-expanded-label" hidden>Choose one</span>
129
-
130
- <button
131
- class="pf-v6-c-select__toggle"
132
- type="button"
133
- id="select-single-top-expanded-toggle"
134
- aria-haspopup="true"
135
- aria-expanded="true"
136
- aria-labelledby="select-single-top-expanded-label select-single-top-expanded-toggle"
137
- >
138
- <div class="pf-v6-c-select__toggle-wrapper">
139
- <span class="pf-v6-c-select__toggle-text">Filter by status</span>
140
- </div>
141
- <span class="pf-v6-c-select__toggle-arrow">
142
- <i class="fas fa-caret-down" aria-hidden="true"></i>
143
- </span>
144
- </button>
145
-
146
- <ul
147
- class="pf-v6-c-select__menu"
148
- role="listbox"
149
- aria-labelledby="select-single-top-expanded-label"
150
- >
151
- <li role="presentation">
152
- <button class="pf-v6-c-select__menu-item" role="option">Running</button>
153
- </li>
154
- <li role="presentation">
155
- <button
156
- class="pf-v6-c-select__menu-item pf-m-selected"
157
- role="option"
158
- aria-selected="true"
159
- >
160
- Stopped
161
- <span class="pf-v6-c-select__menu-item-icon">
162
- <i class="fas fa-check" aria-hidden="true"></i>
163
- </span>
164
- </button>
165
- </li>
166
- <li role="presentation">
167
- <button class="pf-v6-c-select__menu-item" role="option">Down</button>
168
- </li>
169
- <li role="presentation">
170
- <button class="pf-v6-c-select__menu-item" role="option">Degraded</button>
171
- </li>
172
- <li role="presentation">
173
- <button class="pf-v6-c-select__menu-item" role="option">Needs maintenance</button>
174
- </li>
175
- </ul>
176
- </div>
177
-
178
- ```
179
-
180
- ### Single expanded and selected
181
-
182
- ```html
183
- <div class="pf-v6-c-select pf-m-expanded">
184
- <span id="select-single-expanded-selected-label" hidden>Choose one</span>
185
-
186
- <button
187
- class="pf-v6-c-select__toggle"
188
- type="button"
189
- id="select-single-expanded-selected-toggle"
190
- aria-haspopup="true"
191
- aria-expanded="true"
192
- aria-labelledby="select-single-expanded-selected-label select-single-expanded-selected-toggle"
193
- >
194
- <div class="pf-v6-c-select__toggle-wrapper">
195
- <span class="pf-v6-c-select__toggle-text">April</span>
196
- </div>
197
- <span class="pf-v6-c-select__toggle-arrow">
198
- <i class="fas fa-caret-down" aria-hidden="true"></i>
199
- </span>
200
- </button>
201
-
202
- <ul
203
- class="pf-v6-c-select__menu"
204
- role="listbox"
205
- aria-labelledby="select-single-expanded-selected-label"
206
- >
207
- <li role="presentation">
208
- <button class="pf-v6-c-select__menu-item" role="option">Running</button>
209
- </li>
210
- <li role="presentation">
211
- <button
212
- class="pf-v6-c-select__menu-item pf-m-selected"
213
- role="option"
214
- aria-selected="true"
215
- >
216
- Stopped
217
- <span class="pf-v6-c-select__menu-item-icon">
218
- <i class="fas fa-check" aria-hidden="true"></i>
219
- </span>
220
- </button>
221
- </li>
222
- <li role="presentation">
223
- <button class="pf-v6-c-select__menu-item" role="option">Down</button>
224
- </li>
225
- <li role="presentation">
226
- <button class="pf-v6-c-select__menu-item" role="option">Degraded</button>
227
- </li>
228
- <li role="presentation">
229
- <button class="pf-v6-c-select__menu-item" role="option">Needs maintenance</button>
230
- </li>
231
- </ul>
232
- </div>
233
-
234
- ```
235
-
236
- The single select should be used when the user is selecting an option from a list of items. Although the presentation is similar to the basic dropdown, the underlying HTML and ARIA tag structure is specific to a select list. The selection will replace the default text in the toggle. The selection is highlighted with the list is opened. If the selection is cleared elsewhere (i.e. from the filter bar), the default text is restored.
237
-
238
- ### Usage
239
-
240
- | Class | Applied to | Outcome |
241
- | -- | -- | -- |
242
- | `.pf-v6-c-select` | `<div>` | Initiates a custom select. |
243
- | `.pf-v6-c-select__toggle` | `<button>` | Initiates a custom toggle. |
244
- | `.pf-v6-c-select__toggle-wrapper` | `<div>` | Initiates a custom select toggle wrapper. |
245
- | `.pf-v6-c-select__toggle-arrow` | `<span>` | Initiates the caret to toggle the dropdown. |
246
- | `.pf-v6-c-select__menu` | `<ul>` | Initiates the custom select dropdown menu. |
247
- | `.pf-v6-c-select__menu-item` | `<li>` | Initiates the items in the custom select dropdown menu. |
248
- | `.pf-v6-c-select__menu-item-icon` | `<i>` | Initiates the selected item icon. |
249
- | `.pf-m-top` | `.pf-v6-c-select` | Modifies the select menu to display above the toggle. |
250
- | `.pf-m-align-right` | `.pf-v6-c-select__menu` | Modifies the select menu to display right aligned to the toggle. |
251
- | `.pf-m-static` | `.pf-v6-c-select__menu` | Modifies the select menu to be statically positioned to support custom positioning. |
252
- | `.pf-m-active` | `.pf-v6-c-select` | Forces display of the active state of the toggle. |
253
-
254
- ## States
255
-
256
- ### Disabled
257
-
258
- ```html
259
- <div class="pf-v6-c-select">
260
- <span id="select-disabled-label" hidden>Choose one</span>
261
-
262
- <button
263
- class="pf-v6-c-select__toggle"
264
- type="button"
265
- id="select-disabled-toggle"
266
- aria-haspopup="true"
267
- aria-expanded="false"
268
- aria-labelledby="select-disabled-label select-disabled-toggle"
269
- disabled
270
- >
271
- <div class="pf-v6-c-select__toggle-wrapper">
272
- <span class="pf-v6-c-select__toggle-text">Filter by status</span>
273
- </div>
274
- <span class="pf-v6-c-select__toggle-arrow">
275
- <i class="fas fa-caret-down" aria-hidden="true"></i>
276
- </span>
277
- </button>
278
-
279
- <ul
280
- class="pf-v6-c-select__menu"
281
- role="listbox"
282
- aria-labelledby="select-disabled-label"
283
- hidden
284
- >
285
- <li role="presentation">
286
- <button class="pf-v6-c-select__menu-item" role="option">Running</button>
287
- </li>
288
- <li role="presentation">
289
- <button
290
- class="pf-v6-c-select__menu-item pf-m-selected"
291
- role="option"
292
- aria-selected="true"
293
- >
294
- Stopped
295
- <span class="pf-v6-c-select__menu-item-icon">
296
- <i class="fas fa-check" aria-hidden="true"></i>
297
- </span>
298
- </button>
299
- </li>
300
- <li role="presentation">
301
- <button class="pf-v6-c-select__menu-item" role="option">Down</button>
302
- </li>
303
- <li role="presentation">
304
- <button class="pf-v6-c-select__menu-item" role="option">Degraded</button>
305
- </li>
306
- <li role="presentation">
307
- <button class="pf-v6-c-select__menu-item" role="option">Needs maintenance</button>
308
- </li>
309
- </ul>
310
- </div>
311
-
312
- ```
313
-
314
- ### Success
315
-
316
- ```html
317
- <div class="pf-v6-c-select pf-m-success">
318
- <span id="select-success-label" hidden>Choose one</span>
319
-
320
- <button
321
- class="pf-v6-c-select__toggle"
322
- type="button"
323
- id="select-success-toggle"
324
- aria-haspopup="true"
325
- aria-expanded="false"
326
- aria-labelledby="select-success-label select-success-toggle"
327
- >
328
- <div class="pf-v6-c-select__toggle-wrapper">
329
- <span class="pf-v6-c-select__toggle-text">Filter by status</span>
330
- </div>
331
- <span class="pf-v6-c-select__toggle-status-icon">
332
- <i class="fas fa-check-circle" aria-hidden="true"></i>
333
- </span>
334
- <span class="pf-v6-c-select__toggle-arrow">
335
- <i class="fas fa-caret-down" aria-hidden="true"></i>
336
- </span>
337
- </button>
338
-
339
- <ul
340
- class="pf-v6-c-select__menu"
341
- role="listbox"
342
- aria-labelledby="select-success-label"
343
- hidden
344
- >
345
- <li role="presentation">
346
- <button class="pf-v6-c-select__menu-item" role="option">Running</button>
347
- </li>
348
- <li role="presentation">
349
- <button
350
- class="pf-v6-c-select__menu-item pf-m-selected"
351
- role="option"
352
- aria-selected="true"
353
- >
354
- Stopped
355
- <span class="pf-v6-c-select__menu-item-icon">
356
- <i class="fas fa-check" aria-hidden="true"></i>
357
- </span>
358
- </button>
359
- </li>
360
- <li role="presentation">
361
- <button class="pf-v6-c-select__menu-item" role="option">Down</button>
362
- </li>
363
- <li role="presentation">
364
- <button class="pf-v6-c-select__menu-item" role="option">Degraded</button>
365
- </li>
366
- <li role="presentation">
367
- <button class="pf-v6-c-select__menu-item" role="option">Needs maintenance</button>
368
- </li>
369
- </ul>
370
- </div>
371
-
372
- ```
373
-
374
- ### Warning
375
-
376
- ```html
377
- <div class="pf-v6-c-select pf-m-warning">
378
- <span id="select-warning-label" hidden>Choose one</span>
379
-
380
- <button
381
- class="pf-v6-c-select__toggle"
382
- type="button"
383
- id="select-warning-toggle"
384
- aria-haspopup="true"
385
- aria-expanded="false"
386
- aria-labelledby="select-warning-label select-warning-toggle"
387
- >
388
- <div class="pf-v6-c-select__toggle-wrapper">
389
- <span class="pf-v6-c-select__toggle-text">Filter by status</span>
390
- </div>
391
- <span class="pf-v6-c-select__toggle-status-icon">
392
- <i class="fas fa-exclamation-triangle" aria-hidden="true"></i>
393
- </span>
394
- <span class="pf-v6-c-select__toggle-arrow">
395
- <i class="fas fa-caret-down" aria-hidden="true"></i>
396
- </span>
397
- </button>
398
-
399
- <ul
400
- class="pf-v6-c-select__menu"
401
- role="listbox"
402
- aria-labelledby="select-warning-label"
403
- hidden
404
- >
405
- <li role="presentation">
406
- <button class="pf-v6-c-select__menu-item" role="option">Running</button>
407
- </li>
408
- <li role="presentation">
409
- <button
410
- class="pf-v6-c-select__menu-item pf-m-selected"
411
- role="option"
412
- aria-selected="true"
413
- >
414
- Stopped
415
- <span class="pf-v6-c-select__menu-item-icon">
416
- <i class="fas fa-check" aria-hidden="true"></i>
417
- </span>
418
- </button>
419
- </li>
420
- <li role="presentation">
421
- <button class="pf-v6-c-select__menu-item" role="option">Down</button>
422
- </li>
423
- <li role="presentation">
424
- <button class="pf-v6-c-select__menu-item" role="option">Degraded</button>
425
- </li>
426
- <li role="presentation">
427
- <button class="pf-v6-c-select__menu-item" role="option">Needs maintenance</button>
428
- </li>
429
- </ul>
430
- </div>
431
-
432
- ```
433
-
434
- ### Invalid
435
-
436
- ```html
437
- <div class="pf-v6-c-select pf-m-invalid">
438
- <span id="select-invalid-label" hidden>Choose one</span>
439
-
440
- <button
441
- class="pf-v6-c-select__toggle"
442
- type="button"
443
- id="select-invalid-toggle"
444
- aria-haspopup="true"
445
- aria-expanded="false"
446
- aria-labelledby="select-invalid-label select-invalid-toggle"
447
- aria-invalid="true"
448
- >
449
- <div class="pf-v6-c-select__toggle-wrapper">
450
- <span class="pf-v6-c-select__toggle-text">Filter by status</span>
451
- </div>
452
- <span class="pf-v6-c-select__toggle-status-icon">
453
- <i class="fas fa-exclamation-circle" aria-hidden="true"></i>
454
- </span>
455
- <span class="pf-v6-c-select__toggle-arrow">
456
- <i class="fas fa-caret-down" aria-hidden="true"></i>
457
- </span>
458
- </button>
459
-
460
- <ul
461
- class="pf-v6-c-select__menu"
462
- role="listbox"
463
- aria-labelledby="select-invalid-label"
464
- hidden
465
- >
466
- <li role="presentation">
467
- <button class="pf-v6-c-select__menu-item" role="option">Running</button>
468
- </li>
469
- <li role="presentation">
470
- <button
471
- class="pf-v6-c-select__menu-item pf-m-selected"
472
- role="option"
473
- aria-selected="true"
474
- >
475
- Stopped
476
- <span class="pf-v6-c-select__menu-item-icon">
477
- <i class="fas fa-check" aria-hidden="true"></i>
478
- </span>
479
- </button>
480
- </li>
481
- <li role="presentation">
482
- <button class="pf-v6-c-select__menu-item" role="option">Down</button>
483
- </li>
484
- <li role="presentation">
485
- <button class="pf-v6-c-select__menu-item" role="option">Degraded</button>
486
- </li>
487
- <li role="presentation">
488
- <button class="pf-v6-c-select__menu-item" role="option">Needs maintenance</button>
489
- </li>
490
- </ul>
491
- </div>
492
-
493
- ```
494
-
495
- ### Accessibility
496
-
497
- | Attribute | Applied to | Outcome |
498
- | -- | -- | -- |
499
- | `aria-invalid="true"` | `.pf-v6-c-select__toggle` | Indicates that the select is in the invalid state. |
500
- | `aria-selected="true"` | `.pf-v6-c-select__menu-item` | Should be set programmatically to indicate the active item. |
501
- | `disabled` | `.pf-v6-c-select__toggle` | Disables the dropdown toggle and removes it from keyboard focus. |
502
-
503
- ### Usage
504
-
505
- | Class | Applied to | Outcome |
506
- | -- | -- | -- |
507
- | `.pf-v6-c-select` | `<div>` | Initiates the select component. |
508
- | `.pf-v6-c-select__toggle` | `<button>` | Initiates the select toggle. |
509
- | `.pf-v6-c-select__toggle-wrapper` | `<div>` | Initiates the select toggle wrapper. |
510
- | `.pf-v6-c-select__toggle-arrow` | `<span>` | Initiates the caret to toggle the dropdown. |
511
- | `.pf-v6-c-select__menu` | `<ul>` | Initiates the select dropdown menu. |
512
- | `.pf-v6-c-select__menu-item` | `<li>` | Initiates the items in the select dropdown menu. |
513
- | `.pf-v6-c-select__menu-item-icon` | `<span>` | Initiates the selected item icon wrapper. |
514
- | `.pf-m-expanded` | `.pf-v6-c-select` | Indicates the select is expanded. |
515
- | `.pf-m-success` | `.pf-v6-c-select` | Modifies select component for the success state. |
516
- | `.pf-m-warning` | `.pf-v6-c-select` | Modifies select component for the warning state. |
517
- | `.pf-m-invalid` | `.pf-v6-c-select` | Modifies select component for the invalid state. |
518
- | `.pf-m-selected` | `.pf-v6-c-select__menu-item` | Indicates the menu item is selected. |
519
- | `.pf-m-disabled` | `div.pf-v6-c-select__toggle` | Modifies to display the select toggle as disabled. This applies to `div.pf-v6-c-select__toggle` and should not be used in lieu of the `disabled` attribute on `button.pf-v6-c-select__toggle`. When this is used, `disabled` should also be added to any form elements in `div.pf-v6-c-select__toggle`|
520
-
521
- ## Typeahead
522
-
523
- ### Single with typeahead
524
-
525
- ```html
526
- <div class="pf-v6-c-select">
527
- <span id="select-single-typeahead-label" hidden>Choose a state</span>
528
-
529
- <div class="pf-v6-c-select__toggle pf-m-typeahead">
530
- <div class="pf-v6-c-select__toggle-wrapper">
531
- <span class="pf-v6-c-form-control pf-v5-c-select__toggle-typeahead">
532
- <input
533
- type="text"
534
- id="select-single-typeahead-typeahead"
535
- aria-label="Type to filter"
536
- value
537
- placeholder="Choose a state"
538
- />
539
- </span>
540
- </div>
541
- <button
542
- class="pf-v6-c-button pf-m-plain pf-v5-c-select__toggle-button"
543
- type="button"
544
- id="select-single-typeahead-toggle"
545
- aria-haspopup="true"
546
- aria-expanded="false"
547
- aria-labelledby="select-single-typeahead-label select-single-typeahead-toggle"
548
- aria-label="Select"
549
- >
550
- <i
551
- class="fas fa-caret-down pf-v6-c-select__toggle-arrow"
552
- aria-hidden="true"
553
- ></i>
554
- </button>
555
- </div>
556
-
557
- <ul
558
- class="pf-v6-c-select__menu"
559
- aria-labelledby="select-single-typeahead-label"
560
- role="listbox"
561
- hidden
562
- >
563
- <li role="presentation">
564
- <button class="pf-v6-c-select__menu-item" role="option">Alabama</button>
565
- </li>
566
- <li role="presentation">
567
- <button class="pf-v6-c-select__menu-item" role="option">Florida</button>
568
- </li>
569
- <li role="presentation">
570
- <button class="pf-v6-c-select__menu-item" role="option">
571
- New
572
- &nbsp;Jersey
573
- </button>
574
- </li>
575
- <li role="presentation">
576
- <button
577
- class="pf-v6-c-select__menu-item pf-m-selected"
578
- role="option"
579
- aria-selected="true"
580
- >
581
- New
582
- &nbsp;Mexico
583
- <span class="pf-v6-c-select__menu-item-icon">
584
- <i class="fas fa-check" aria-hidden="true"></i>
585
- </span>
586
- </button>
587
- </li>
588
- <li role="presentation">
589
- <button class="pf-v6-c-select__menu-item" role="option">
590
- New
591
- &nbsp;York
592
- </button>
593
- </li>
594
- <li role="presentation">
595
- <button class="pf-v6-c-select__menu-item" role="option">North Carolina</button>
596
- </li>
597
- </ul>
598
- </div>
599
-
600
- ```
601
-
602
- ### Single with typeahead expanded
603
-
604
- ```html
605
- <div class="pf-v6-c-select pf-m-expanded">
606
- <span id="select-single-typeahead-expanded-label" hidden>Choose a state</span>
607
-
608
- <div class="pf-v6-c-select__toggle pf-m-typeahead">
609
- <div class="pf-v6-c-select__toggle-wrapper">
610
- <span class="pf-v6-c-form-control pf-v5-c-select__toggle-typeahead">
611
- <input
612
- type="text"
613
- id="select-single-typeahead-expanded-typeahead"
614
- aria-label="Type to filter"
615
- value="New"
616
- placeholder="Choose a state"
617
- />
618
- </span>
619
- </div>
620
- <button
621
- class="pf-v6-c-button pf-m-plain pf-v5-c-select__toggle-clear"
622
- type="button"
623
- aria-label="Clear all"
624
- >
625
- <i class="fas fa-times-circle" aria-hidden="true"></i>
626
- </button>
627
- <button
628
- class="pf-v6-c-button pf-m-plain pf-v5-c-select__toggle-button"
629
- type="button"
630
- id="select-single-typeahead-expanded-toggle"
631
- aria-haspopup="true"
632
- aria-expanded="true"
633
- aria-labelledby="select-single-typeahead-expanded-label select-single-typeahead-expanded-toggle"
634
- aria-label="Select"
635
- >
636
- <i
637
- class="fas fa-caret-down pf-v6-c-select__toggle-arrow"
638
- aria-hidden="true"
639
- ></i>
640
- </button>
641
- </div>
642
-
643
- <ul
644
- class="pf-v6-c-select__menu"
645
- aria-labelledby="select-single-typeahead-expanded-label"
646
- role="listbox"
647
- >
648
- <li role="presentation">
649
- <button class="pf-v6-c-select__menu-item" role="option">
650
- <mark class="pf-v6-c-select__menu-item--match">New</mark>
651
- &nbsp;Jersey
652
- </button>
653
- </li>
654
- <li role="presentation">
655
- <button
656
- class="pf-v6-c-select__menu-item pf-m-selected"
657
- role="option"
658
- aria-selected="true"
659
- >
660
- <mark class="pf-v6-c-select__menu-item--match">New</mark>
661
- &nbsp;Mexico
662
- <span class="pf-v6-c-select__menu-item-icon">
663
- <i class="fas fa-check" aria-hidden="true"></i>
664
- </span>
665
- </button>
666
- </li>
667
- <li role="presentation">
668
- <button class="pf-v6-c-select__menu-item" role="option">
669
- <mark class="pf-v6-c-select__menu-item--match">New</mark>
670
- &nbsp;York
671
- </button>
672
- </li>
673
- </ul>
674
- </div>
675
-
676
- ```
677
-
678
- ### Single with typeahead expanded and selected
679
-
680
- ```html
681
- <div class="pf-v6-c-select pf-m-expanded">
682
- <span
683
- id="select-single-typeahead-expanded-selected-label"
684
- hidden
685
- >Choose a state</span>
686
-
687
- <div class="pf-v6-c-select__toggle pf-m-typeahead">
688
- <div class="pf-v6-c-select__toggle-wrapper">
689
- <span class="pf-v6-c-form-control pf-v5-c-select__toggle-typeahead">
690
- <input
691
- type="text"
692
- id="select-single-typeahead-expanded-selected-typeahead"
693
- aria-label="Type to filter"
694
- value="New Mexico"
695
- placeholder="Choose a state"
696
- />
697
- </span>
698
- </div>
699
- <button
700
- class="pf-v6-c-button pf-m-plain pf-v5-c-select__toggle-clear"
701
- type="button"
702
- aria-label="Clear all"
703
- >
704
- <i class="fas fa-times-circle" aria-hidden="true"></i>
705
- </button>
706
- <button
707
- class="pf-v6-c-button pf-m-plain pf-v5-c-select__toggle-button"
708
- type="button"
709
- id="select-single-typeahead-expanded-selected-toggle"
710
- aria-haspopup="true"
711
- aria-expanded="true"
712
- aria-labelledby="select-single-typeahead-expanded-selected-label select-single-typeahead-expanded-selected-toggle"
713
- aria-label="Select"
714
- >
715
- <i
716
- class="fas fa-caret-down pf-v6-c-select__toggle-arrow"
717
- aria-hidden="true"
718
- ></i>
719
- </button>
720
- </div>
721
-
722
- <ul
723
- class="pf-v6-c-select__menu"
724
- aria-labelledby="select-single-typeahead-expanded-selected-label"
725
- role="listbox"
726
- >
727
- <li role="presentation">
728
- <button class="pf-v6-c-select__menu-item" role="option">Alabama</button>
729
- </li>
730
- <li role="presentation">
731
- <button class="pf-v6-c-select__menu-item" role="option">Florida</button>
732
- </li>
733
- <li role="presentation">
734
- <button class="pf-v6-c-select__menu-item" role="option">
735
- New
736
- &nbsp;Jersey
737
- </button>
738
- </li>
739
- <li role="presentation">
740
- <button
741
- class="pf-v6-c-select__menu-item pf-m-selected"
742
- role="option"
743
- aria-selected="true"
744
- >
745
- New
746
- &nbsp;Mexico
747
- <span class="pf-v6-c-select__menu-item-icon">
748
- <i class="fas fa-check" aria-hidden="true"></i>
749
- </span>
750
- </button>
751
- </li>
752
- <li role="presentation">
753
- <button class="pf-v6-c-select__menu-item" role="option">
754
- New
755
- &nbsp;York
756
- </button>
757
- </li>
758
- <li role="presentation">
759
- <button class="pf-v6-c-select__menu-item" role="option">North Carolina</button>
760
- </li>
761
- </ul>
762
- </div>
763
-
764
- ```
765
-
766
- ### Disabled with typeahead
767
-
768
- ```html
769
- <div class="pf-v6-c-select">
770
- <span id="select-single-typeahead-disabled-label" hidden>Choose a state</span>
771
-
772
- <div class="pf-v6-c-select__toggle pf-m-typeahead pf-m-disabled">
773
- <div class="pf-v6-c-select__toggle-wrapper">
774
- <span
775
- class="pf-v6-c-form-control pf-m-disabled pf-v5-c-select__toggle-typeahead"
776
- >
777
- <input
778
- disabled
779
- type="text"
780
- id="select-single-typeahead-disabled-typeahead"
781
- aria-label="Type to filter"
782
- placeholder="Choose a state"
783
- />
784
- </span>
785
- </div>
786
- <button
787
- class="pf-v6-c-button pf-m-plain pf-v5-c-select__toggle-button"
788
- type="button"
789
- id="select-single-typeahead-disabled-toggle"
790
- aria-haspopup="true"
791
- aria-expanded="false"
792
- aria-labelledby="select-single-typeahead-disabled-label select-single-typeahead-disabled-toggle"
793
- aria-label="Select"
794
- disabled
795
- >
796
- <i
797
- class="fas fa-caret-down pf-v6-c-select__toggle-arrow"
798
- aria-hidden="true"
799
- ></i>
800
- </button>
801
- </div>
802
-
803
- <ul
804
- class="pf-v6-c-select__menu"
805
- aria-labelledby="select-single-typeahead-disabled-label"
806
- role="listbox"
807
- hidden
808
- >
809
- <li role="presentation">
810
- <button class="pf-v6-c-select__menu-item" role="option">Alabama</button>
811
- </li>
812
- <li role="presentation">
813
- <button class="pf-v6-c-select__menu-item" role="option">Florida</button>
814
- </li>
815
- <li role="presentation">
816
- <button class="pf-v6-c-select__menu-item" role="option">
817
- New
818
- &nbsp;Jersey
819
- </button>
820
- </li>
821
- <li role="presentation">
822
- <button
823
- class="pf-v6-c-select__menu-item pf-m-selected"
824
- role="option"
825
- aria-selected="true"
826
- >
827
- New
828
- &nbsp;Mexico
829
- <span class="pf-v6-c-select__menu-item-icon">
830
- <i class="fas fa-check" aria-hidden="true"></i>
831
- </span>
832
- </button>
833
- </li>
834
- <li role="presentation">
835
- <button class="pf-v6-c-select__menu-item" role="option">
836
- New
837
- &nbsp;York
838
- </button>
839
- </li>
840
- <li role="presentation">
841
- <button class="pf-v6-c-select__menu-item" role="option">North Carolina</button>
842
- </li>
843
- </ul>
844
- </div>
845
-
846
- ```
847
-
848
- ### Invalid with typeahead
849
-
850
- ```html
851
- <div class="pf-v6-c-select pf-m-invalid">
852
- <span id="select-single-typeahead-invalid-label" hidden>Choose a state</span>
853
-
854
- <div class="pf-v6-c-select__toggle pf-m-typeahead">
855
- <div class="pf-v6-c-select__toggle-wrapper">
856
- <span class="pf-v6-c-form-control pf-v5-c-select__toggle-typeahead">
857
- <input
858
- type="text"
859
- id="select-single-typeahead-invalid-typeahead"
860
- aria-invalid="true"
861
- value="Invalid"
862
- aria-label="Type to filter"
863
- placeholder="Choose a state"
864
- />
865
- </span>
866
- </div>
867
- <span class="pf-v6-c-select__toggle-status-icon">
868
- <i class="fas fa-exclamation-circle" aria-hidden="true"></i>
869
- </span>
870
- <button
871
- class="pf-v6-c-button pf-m-plain pf-v5-c-select__toggle-button"
872
- type="button"
873
- id="select-single-typeahead-invalid-toggle"
874
- aria-haspopup="true"
875
- aria-expanded="false"
876
- aria-labelledby="select-single-typeahead-invalid-label select-single-typeahead-invalid-toggle"
877
- aria-label="Select"
878
- >
879
- <i
880
- class="fas fa-caret-down pf-v6-c-select__toggle-arrow"
881
- aria-hidden="true"
882
- ></i>
883
- </button>
884
- </div>
885
-
886
- <ul
887
- class="pf-v6-c-select__menu"
888
- aria-labelledby="select-single-typeahead-invalid-label"
889
- role="listbox"
890
- hidden
891
- >
892
- <li role="presentation">
893
- <button class="pf-v6-c-select__menu-item" role="option">Alabama</button>
894
- </li>
895
- <li role="presentation">
896
- <button class="pf-v6-c-select__menu-item" role="option">Florida</button>
897
- </li>
898
- <li role="presentation">
899
- <button class="pf-v6-c-select__menu-item" role="option">
900
- New
901
- &nbsp;Jersey
902
- </button>
903
- </li>
904
- <li role="presentation">
905
- <button
906
- class="pf-v6-c-select__menu-item pf-m-selected"
907
- role="option"
908
- aria-selected="true"
909
- >
910
- New
911
- &nbsp;Mexico
912
- <span class="pf-v6-c-select__menu-item-icon">
913
- <i class="fas fa-check" aria-hidden="true"></i>
914
- </span>
915
- </button>
916
- </li>
917
- <li role="presentation">
918
- <button class="pf-v6-c-select__menu-item" role="option">
919
- New
920
- &nbsp;York
921
- </button>
922
- </li>
923
- <li role="presentation">
924
- <button class="pf-v6-c-select__menu-item" role="option">North Carolina</button>
925
- </li>
926
- </ul>
927
- </div>
928
-
929
- ```
930
-
931
- The single select typeahead should be used when the user is selecting one option from a list of items with the option to narrow the list by typing from the keyboard. Selected items are removed from the list. The user can clear the selection and restore the placeholder text.
932
-
933
- ### Accessibility
934
-
935
- | Attribute | Applied to | Outcome |
936
- | -- | -- | -- |
937
- | `aria-selected="true"` | `.pf-v6-c-select__menu-item` | Should be set programmatically to indicate the active item. |
938
-
939
- ### Usage
940
-
941
- | Class | Applied to | Outcome |
942
- | -- | -- | -- |
943
- | `.pf-v6-c-select` | `<div>` | Initiates the select component. |
944
- | `.pf-v6-c-select__toggle` | `<div>` | Initiates the select toggle. |
945
- | `.pf-v6-c-select__toggle-wrapper` | `<div>` | Initiates the select toggle wrapper. |
946
- | `.pf-v6-c-select__toggle-typeahead` | `input.pf-v6-c-form-control` | Initiates the input field for typeahead. |
947
- | `.pf-v6-c-select__toggle-clear` | `button.pf-v6-c-button.pf-m-plain` | Initiates a clear button in the toggle. |
948
- | `.pf-v6-c-select__toggle-button` | `button.pf-v6-c-button.pf-m-plain` | Initiates a toggle button. |
949
- | `.pf-v6-c-select__toggle-arrow` | `<span>` | Initiates the caret icon. |
950
- | `.pf-v6-c-select__menu` | `<ul>` | Initiates the select dropdown menu. |
951
- | `.pf-v6-c-select__menu-item` | `<li>` | Initiates the items in the select dropdown menu. |
952
- | `.pf-m-expanded` | `.pf-v6-c-select` | Indicates the select is expanded. |
953
- | `.pf-m-typeahead` | `.pf-v6-c-select__toggle` | Indicates the select has a typeahead. |
954
- | `.pf-m-focus` | `.pf-v6-c-select__menu-item` | Modifies the menu item to apply `:focus` styling. For use when navigating the menu items by keyboard when the typeahead input field has browser focus. |
955
-
956
- ## Typeahead multiselect
957
-
958
- ### Select multi with typeahead
959
-
960
- ```html
961
- <div class="pf-v6-c-select">
962
- <span id="select-multi-typeahead-label" hidden>Choose states</span>
963
-
964
- <div class="pf-v6-c-select__toggle pf-m-typeahead">
965
- <div class="pf-v6-c-select__toggle-wrapper">
966
- <span class="pf-v6-c-form-control pf-v5-c-select__toggle-typeahead">
967
- <input
968
- type="text"
969
- id="select-multi-typeahead-typeahead"
970
- aria-label="Type to filter"
971
- value
972
- placeholder="Choose states"
973
- />
974
- </span>
975
- </div>
976
- <button
977
- class="pf-v6-c-button pf-m-plain pf-v5-c-select__toggle-button"
978
- type="button"
979
- id="select-multi-typeahead-toggle"
980
- aria-haspopup="true"
981
- aria-expanded="false"
982
- aria-labelledby="select-multi-typeahead-label select-multi-typeahead-toggle"
983
- aria-label="Select"
984
- >
985
- <i
986
- class="fas fa-caret-down pf-v6-c-select__toggle-arrow"
987
- aria-hidden="true"
988
- ></i>
989
- </button>
990
- </div>
991
-
992
- <ul
993
- class="pf-v6-c-select__menu"
994
- aria-labelledby="select-multi-typeahead-label"
995
- role="listbox"
996
- hidden
997
- >
998
- <li role="presentation">
999
- <button class="pf-v6-c-select__menu-item" role="option">Alabama</button>
1000
- </li>
1001
- <li role="presentation">
1002
- <button class="pf-v6-c-select__menu-item" role="option">Florida</button>
1003
- </li>
1004
- <li role="presentation">
1005
- <button class="pf-v6-c-select__menu-item" role="option">
1006
- New
1007
- &nbsp;Jersey
1008
- </button>
1009
- </li>
1010
- <li role="presentation">
1011
- <button class="pf-v6-c-select__menu-item" role="option">
1012
- New
1013
- &nbsp;York
1014
- </button>
1015
- </li>
1016
- <li role="presentation">
1017
- <button class="pf-v6-c-select__menu-item" role="option">North Carolina</button>
1018
- </li>
1019
- </ul>
1020
- </div>
1021
-
1022
- ```
1023
-
1024
- ### Multi with typeahead (chip group expanded)
1025
-
1026
- ```html
1027
- <div class="pf-v6-c-select pf-m-expanded">
1028
- <span id="select-multi-typeahead-expanded-label" hidden>Choose states</span>
1029
-
1030
- <div class="pf-v6-c-select__toggle pf-m-typeahead">
1031
- <div class="pf-v6-c-select__toggle-wrapper">
1032
- <div class="pf-v6-c-chip-group" role="group">
1033
- <div class="pf-v6-c-chip-group__main">
1034
- <ul
1035
- class="pf-v6-c-chip-group__list"
1036
- role="list"
1037
- aria-label="Chip group list"
1038
- >
1039
- <li class="pf-v6-c-chip-group__list-item">
1040
- <div class="pf-v6-c-chip">
1041
- <span class="pf-v6-c-chip__content">
1042
- <span
1043
- class="pf-v6-c-chip__text"
1044
- id="select-multi-typeahead-expanded-chip_one"
1045
- >Arkansas</span>
1046
- </span>
1047
- <span class="pf-v6-c-chip__actions">
1048
- <button
1049
- class="pf-v6-c-button pf-m-plain"
1050
- type="button"
1051
- aria-labelledby="remove_select-multi-typeahead-expanded_chip_one select-multi-typeahead-expanded-chip_two"
1052
- aria-label="Remove"
1053
- id="remove_select-multi-typeahead-expanded_chip_one"
1054
- >
1055
- <i class="fas fa-times" aria-hidden="true"></i>
1056
- </button>
1057
- </span>
1058
- </div>
1059
- </li>
1060
- <li class="pf-v6-c-chip-group__list-item">
1061
- <div class="pf-v6-c-chip">
1062
- <span class="pf-v6-c-chip__content">
1063
- <span
1064
- class="pf-v6-c-chip__text"
1065
- id="select-multi-typeahead-expanded-chip_two"
1066
- >Massachusetts</span>
1067
- </span>
1068
- <span class="pf-v6-c-chip__actions">
1069
- <button
1070
- class="pf-v6-c-button pf-m-plain"
1071
- type="button"
1072
- aria-labelledby="remove_select-multi-typeahead-expanded_chip_two select-multi-typeahead-expanded-chip_two"
1073
- aria-label="Remove"
1074
- id="remove_select-multi-typeahead-expanded_chip_two"
1075
- >
1076
- <i class="fas fa-times" aria-hidden="true"></i>
1077
- </button>
1078
- </span>
1079
- </div>
1080
- </li>
1081
- <li class="pf-v6-c-chip-group__list-item">
1082
- <div class="pf-v6-c-chip">
1083
- <span class="pf-v6-c-chip__content">
1084
- <span
1085
- class="pf-v6-c-chip__text"
1086
- id="select-multi-typeahead-expanded-chip_three"
1087
- >New Mexico</span>
1088
- </span>
1089
- <span class="pf-v6-c-chip__actions">
1090
- <button
1091
- class="pf-v6-c-button pf-m-plain"
1092
- type="button"
1093
- aria-labelledby="remove_select-multi-typeahead-expanded_chip_three select-multi-typeahead-expanded-chip_three"
1094
- aria-label="Remove"
1095
- id="remove_select-multi-typeahead-expanded_chip_three"
1096
- >
1097
- <i class="fas fa-times" aria-hidden="true"></i>
1098
- </button>
1099
- </span>
1100
- </div>
1101
- </li>
1102
- <li class="pf-v6-c-chip-group__list-item">
1103
- <div class="pf-v6-c-chip">
1104
- <span class="pf-v6-c-chip__content">
1105
- <span
1106
- class="pf-v6-c-chip__text"
1107
- id="select-multi-typeahead-expanded-chip_four"
1108
- >Ohio</span>
1109
- </span>
1110
- <span class="pf-v6-c-chip__actions">
1111
- <button
1112
- class="pf-v6-c-button pf-m-plain"
1113
- type="button"
1114
- aria-labelledby="remove_select-multi-typeahead-expanded_chip_four select-multi-typeahead-expanded-chip_four"
1115
- aria-label="Remove"
1116
- id="remove_select-multi-typeahead-expanded_chip_four"
1117
- >
1118
- <i class="fas fa-times" aria-hidden="true"></i>
1119
- </button>
1120
- </span>
1121
- </div>
1122
- </li>
1123
- <li class="pf-v6-c-chip-group__list-item">
1124
- <div class="pf-v6-c-chip">
1125
- <span class="pf-v6-c-chip__content">
1126
- <span
1127
- class="pf-v6-c-chip__text"
1128
- id="select-multi-typeahead-expanded-chip_five"
1129
- >Washington</span>
1130
- </span>
1131
- <span class="pf-v6-c-chip__actions">
1132
- <button
1133
- class="pf-v6-c-button pf-m-plain"
1134
- type="button"
1135
- aria-labelledby="remove_select-multi-typeahead-expanded_chip_five select-multi-typeahead-expanded-chip_five"
1136
- aria-label="Remove"
1137
- id="remove_select-multi-typeahead-expanded_chip_five"
1138
- >
1139
- <i class="fas fa-times" aria-hidden="true"></i>
1140
- </button>
1141
- </span>
1142
- </div>
1143
- </li>
1144
- </ul>
1145
- </div>
1146
- </div>
1147
- <span class="pf-v6-c-form-control pf-v5-c-select__toggle-typeahead">
1148
- <input
1149
- type="text"
1150
- id="select-multi-typeahead-expanded-typeahead"
1151
- aria-label="Type to filter"
1152
- value
1153
- placeholder="Choose states"
1154
- />
1155
- </span>
1156
- </div>
1157
- <button
1158
- class="pf-v6-c-button pf-m-plain pf-v5-c-select__toggle-clear"
1159
- type="button"
1160
- aria-label="Clear all"
1161
- >
1162
- <i class="fas fa-times-circle" aria-hidden="true"></i>
1163
- </button>
1164
- <button
1165
- class="pf-v6-c-button pf-m-plain pf-v5-c-select__toggle-button"
1166
- type="button"
1167
- id="select-multi-typeahead-expanded-toggle"
1168
- aria-haspopup="true"
1169
- aria-expanded="true"
1170
- aria-labelledby="select-multi-typeahead-expanded-label select-multi-typeahead-expanded-toggle"
1171
- aria-label="Select"
1172
- >
1173
- <i
1174
- class="fas fa-caret-down pf-v6-c-select__toggle-arrow"
1175
- aria-hidden="true"
1176
- ></i>
1177
- </button>
1178
- </div>
1179
-
1180
- <ul
1181
- class="pf-v6-c-select__menu"
1182
- aria-labelledby="select-multi-typeahead-expanded-label"
1183
- role="listbox"
1184
- >
1185
- <li role="presentation">
1186
- <button class="pf-v6-c-select__menu-item" role="option">Alabama</button>
1187
- </li>
1188
- <li role="presentation">
1189
- <button class="pf-v6-c-select__menu-item" role="option">Florida</button>
1190
- </li>
1191
- <li role="presentation">
1192
- <button class="pf-v6-c-select__menu-item" role="option">
1193
- New
1194
- &nbsp;Jersey
1195
- </button>
1196
- </li>
1197
- <li role="presentation">
1198
- <button class="pf-v6-c-select__menu-item" role="option">
1199
- New
1200
- &nbsp;York
1201
- </button>
1202
- </li>
1203
- <li role="presentation">
1204
- <button class="pf-v6-c-select__menu-item" role="option">North Carolina</button>
1205
- </li>
1206
- </ul>
1207
- </div>
1208
-
1209
- ```
1210
-
1211
- ### Multi with typeahead (chip group collapsed)
1212
-
1213
- ```html
1214
- <div class="pf-v6-c-select pf-m-expanded">
1215
- <span id="select-multi-typeahead-expanded-selected-label" hidden>Choose states</span>
1216
-
1217
- <div class="pf-v6-c-select__toggle pf-m-typeahead">
1218
- <div class="pf-v6-c-select__toggle-wrapper">
1219
- <div class="pf-v6-c-chip-group" role="group">
1220
- <div class="pf-v6-c-chip-group__main">
1221
- <ul
1222
- class="pf-v6-c-chip-group__list"
1223
- role="list"
1224
- aria-label="Chip group list"
1225
- >
1226
- <li class="pf-v6-c-chip-group__list-item">
1227
- <div class="pf-v6-c-chip">
1228
- <span class="pf-v6-c-chip__content">
1229
- <span
1230
- class="pf-v6-c-chip__text"
1231
- id="select-multi-typeahead-expanded-selected-chip_one"
1232
- >Arkansas</span>
1233
- </span>
1234
- <span class="pf-v6-c-chip__actions">
1235
- <button
1236
- class="pf-v6-c-button pf-m-plain"
1237
- type="button"
1238
- aria-labelledby="remove_select-multi-typeahead-expanded-selected_chip_one select-multi-typeahead-expanded-selected-chip_one"
1239
- aria-label="Remove"
1240
- id="remove_select-multi-typeahead-expanded-selected_chip_one"
1241
- >
1242
- <i class="fas fa-times" aria-hidden="true"></i>
1243
- </button>
1244
- </span>
1245
- </div>
1246
- </li>
1247
- <li class="pf-v6-c-chip-group__list-item">
1248
- <div class="pf-v6-c-chip">
1249
- <span class="pf-v6-c-chip__content">
1250
- <span
1251
- class="pf-v6-c-chip__text"
1252
- id="select-multi-typeahead-expanded-selected-chip_two"
1253
- >Massachusetts</span>
1254
- </span>
1255
- <span class="pf-v6-c-chip__actions">
1256
- <button
1257
- class="pf-v6-c-button pf-m-plain"
1258
- type="button"
1259
- aria-labelledby="remove_select-multi-typeahead-expanded-selected_chip_two select-multi-typeahead-expanded-selected-chip_two"
1260
- aria-label="Remove"
1261
- id="remove_select-multi-typeahead-expanded-selected_chip_two"
1262
- >
1263
- <i class="fas fa-times" aria-hidden="true"></i>
1264
- </button>
1265
- </span>
1266
- </div>
1267
- </li>
1268
- <li class="pf-v6-c-chip-group__list-item">
1269
- <div class="pf-v6-c-chip">
1270
- <span class="pf-v6-c-chip__content">
1271
- <span
1272
- class="pf-v6-c-chip__text"
1273
- id="select-multi-typeahead-expanded-selected-chip_three"
1274
- >New Mexico</span>
1275
- </span>
1276
- <span class="pf-v6-c-chip__actions">
1277
- <button
1278
- class="pf-v6-c-button pf-m-plain"
1279
- type="button"
1280
- aria-labelledby="remove_select-multi-typeahead-expanded-selected_chip_three select-multi-typeahead-expanded-selected-chip_three"
1281
- aria-label="Remove"
1282
- id="remove_select-multi-typeahead-expanded-selected_chip_three"
1283
- >
1284
- <i class="fas fa-times" aria-hidden="true"></i>
1285
- </button>
1286
- </span>
1287
- </div>
1288
- </li>
1289
- <li class="pf-v6-c-chip-group__list-item">
1290
- <button class="pf-v6-c-chip pf-m-overflow">
1291
- <span class="pf-v6-c-chip__content">
1292
- <span class="pf-v6-c-chip__text">2 more</span>
1293
- </span>
1294
- </button>
1295
- </li>
1296
- </ul>
1297
- </div>
1298
- </div>
1299
- <span class="pf-v6-c-form-control pf-v5-c-select__toggle-typeahead">
1300
- <input
1301
- type="text"
1302
- id="select-multi-typeahead-expanded-selected-typeahead"
1303
- aria-label="Type to filter"
1304
- value="New"
1305
- placeholder="Choose states"
1306
- />
1307
- </span>
1308
- </div>
1309
- <button
1310
- class="pf-v6-c-button pf-m-plain pf-v5-c-select__toggle-clear"
1311
- type="button"
1312
- aria-label="Clear all"
1313
- >
1314
- <i class="fas fa-times-circle" aria-hidden="true"></i>
1315
- </button>
1316
- <button
1317
- class="pf-v6-c-button pf-m-plain pf-v5-c-select__toggle-button"
1318
- type="button"
1319
- id="select-multi-typeahead-expanded-selected-toggle"
1320
- aria-haspopup="true"
1321
- aria-expanded="true"
1322
- aria-labelledby="select-multi-typeahead-expanded-selected-label select-multi-typeahead-expanded-selected-toggle"
1323
- aria-label="Select"
1324
- >
1325
- <i
1326
- class="fas fa-caret-down pf-v6-c-select__toggle-arrow"
1327
- aria-hidden="true"
1328
- ></i>
1329
- </button>
1330
- </div>
1331
-
1332
- <ul
1333
- class="pf-v6-c-select__menu"
1334
- aria-labelledby="select-multi-typeahead-expanded-selected-label"
1335
- role="listbox"
1336
- >
1337
- <li role="presentation">
1338
- <button class="pf-v6-c-select__menu-item" role="option">
1339
- <mark class="pf-v6-c-select__menu-item--match">New</mark>
1340
- &nbsp;Jersey
1341
- </button>
1342
- </li>
1343
- <li role="presentation">
1344
- <button class="pf-v6-c-select__menu-item" role="option">
1345
- <mark class="pf-v6-c-select__menu-item--match">New</mark>
1346
- &nbsp;York
1347
- </button>
1348
- </li>
1349
- </ul>
1350
- </div>
1351
-
1352
- ```
1353
-
1354
- ### Multi with typeahead invalid
1355
-
1356
- ```html
1357
- <div class="pf-v6-c-select pf-m-expanded pf-m-invalid">
1358
- <span id="select-multi-typeahead-invalid-label" hidden>Choose states</span>
1359
-
1360
- <div class="pf-v6-c-select__toggle pf-m-typeahead">
1361
- <div class="pf-v6-c-select__toggle-wrapper">
1362
- <div class="pf-v6-c-chip-group" role="group">
1363
- <div class="pf-v6-c-chip-group__main">
1364
- <ul
1365
- class="pf-v6-c-chip-group__list"
1366
- role="list"
1367
- aria-label="Chip group list"
1368
- >
1369
- <li class="pf-v6-c-chip-group__list-item">
1370
- <div class="pf-v6-c-chip">
1371
- <span class="pf-v6-c-chip__content">
1372
- <span
1373
- class="pf-v6-c-chip__text"
1374
- id="select-multi-typeahead-invalid-chip_one"
1375
- >Arkansas</span>
1376
- </span>
1377
- <span class="pf-v6-c-chip__actions">
1378
- <button
1379
- class="pf-v6-c-button pf-m-plain"
1380
- type="button"
1381
- aria-labelledby="remove_select-multi-typeahead-invalid_chip_one select-multi-typeahead-invalid-chip_two"
1382
- aria-label="Remove"
1383
- id="remove_select-multi-typeahead-invalid_chip_one"
1384
- >
1385
- <i class="fas fa-times" aria-hidden="true"></i>
1386
- </button>
1387
- </span>
1388
- </div>
1389
- </li>
1390
- <li class="pf-v6-c-chip-group__list-item">
1391
- <div class="pf-v6-c-chip">
1392
- <span class="pf-v6-c-chip__content">
1393
- <span
1394
- class="pf-v6-c-chip__text"
1395
- id="select-multi-typeahead-invalid-chip_two"
1396
- >Massachusetts</span>
1397
- </span>
1398
- <span class="pf-v6-c-chip__actions">
1399
- <button
1400
- class="pf-v6-c-button pf-m-plain"
1401
- type="button"
1402
- aria-labelledby="remove_select-multi-typeahead-invalid_chip_two select-multi-typeahead-invalid-chip_two"
1403
- aria-label="Remove"
1404
- id="remove_select-multi-typeahead-invalid_chip_two"
1405
- >
1406
- <i class="fas fa-times" aria-hidden="true"></i>
1407
- </button>
1408
- </span>
1409
- </div>
1410
- </li>
1411
- <li class="pf-v6-c-chip-group__list-item">
1412
- <div class="pf-v6-c-chip">
1413
- <span class="pf-v6-c-chip__content">
1414
- <span
1415
- class="pf-v6-c-chip__text"
1416
- id="select-multi-typeahead-invalid-chip_three"
1417
- >New Mexico</span>
1418
- </span>
1419
- <span class="pf-v6-c-chip__actions">
1420
- <button
1421
- class="pf-v6-c-button pf-m-plain"
1422
- type="button"
1423
- aria-labelledby="remove_select-multi-typeahead-invalid_chip_three select-multi-typeahead-invalid-chip_three"
1424
- aria-label="Remove"
1425
- id="remove_select-multi-typeahead-invalid_chip_three"
1426
- >
1427
- <i class="fas fa-times" aria-hidden="true"></i>
1428
- </button>
1429
- </span>
1430
- </div>
1431
- </li>
1432
- <li class="pf-v6-c-chip-group__list-item">
1433
- <div class="pf-v6-c-chip">
1434
- <span class="pf-v6-c-chip__content">
1435
- <span
1436
- class="pf-v6-c-chip__text"
1437
- id="select-multi-typeahead-invalid-chip_four"
1438
- >Ohio</span>
1439
- </span>
1440
- <span class="pf-v6-c-chip__actions">
1441
- <button
1442
- class="pf-v6-c-button pf-m-plain"
1443
- type="button"
1444
- aria-labelledby="remove_select-multi-typeahead-invalid_chip_four select-multi-typeahead-invalid-chip_four"
1445
- aria-label="Remove"
1446
- id="remove_select-multi-typeahead-invalid_chip_four"
1447
- >
1448
- <i class="fas fa-times" aria-hidden="true"></i>
1449
- </button>
1450
- </span>
1451
- </div>
1452
- </li>
1453
- <li class="pf-v6-c-chip-group__list-item">
1454
- <div class="pf-v6-c-chip">
1455
- <span class="pf-v6-c-chip__content">
1456
- <span
1457
- class="pf-v6-c-chip__text"
1458
- id="select-multi-typeahead-invalid-chip_five"
1459
- >Washington</span>
1460
- </span>
1461
- <span class="pf-v6-c-chip__actions">
1462
- <button
1463
- class="pf-v6-c-button pf-m-plain"
1464
- type="button"
1465
- aria-labelledby="remove_select-multi-typeahead-invalid_chip_five select-multi-typeahead-invalid-chip_five"
1466
- aria-label="Remove"
1467
- id="remove_select-multi-typeahead-invalid_chip_five"
1468
- >
1469
- <i class="fas fa-times" aria-hidden="true"></i>
1470
- </button>
1471
- </span>
1472
- </div>
1473
- </li>
1474
- </ul>
1475
- </div>
1476
- </div>
1477
- <span class="pf-v6-c-form-control pf-v5-c-select__toggle-typeahead">
1478
- <input
1479
- type="text"
1480
- id="select-multi-typeahead-invalid-typeahead"
1481
- aria-invalid="true"
1482
- value="Invalid"
1483
- aria-label="Type to filter"
1484
- placeholder="Choose states"
1485
- />
1486
- </span>
1487
- </div>
1488
- <span class="pf-v6-c-select__toggle-status-icon">
1489
- <i class="fas fa-exclamation-circle" aria-hidden="true"></i>
1490
- </span>
1491
- <button
1492
- class="pf-v6-c-button pf-m-plain pf-v5-c-select__toggle-clear"
1493
- type="button"
1494
- aria-label="Clear all"
1495
- >
1496
- <i class="fas fa-times-circle" aria-hidden="true"></i>
1497
- </button>
1498
- <button
1499
- class="pf-v6-c-button pf-m-plain pf-v5-c-select__toggle-button"
1500
- type="button"
1501
- id="select-multi-typeahead-invalid-toggle"
1502
- aria-haspopup="true"
1503
- aria-expanded="true"
1504
- aria-labelledby="select-multi-typeahead-invalid-label select-multi-typeahead-invalid-toggle"
1505
- aria-label="Select"
1506
- >
1507
- <i
1508
- class="fas fa-caret-down pf-v6-c-select__toggle-arrow"
1509
- aria-hidden="true"
1510
- ></i>
1511
- </button>
1512
- </div>
1513
-
1514
- <ul
1515
- class="pf-v6-c-select__menu"
1516
- aria-labelledby="select-multi-typeahead-invalid-label"
1517
- role="listbox"
1518
- >
1519
- <li role="presentation">
1520
- <button class="pf-v6-c-select__menu-item" role="option">Alabama</button>
1521
- </li>
1522
- <li role="presentation">
1523
- <button class="pf-v6-c-select__menu-item" role="option">Florida</button>
1524
- </li>
1525
- <li role="presentation">
1526
- <button class="pf-v6-c-select__menu-item" role="option">
1527
- New
1528
- &nbsp;Jersey
1529
- </button>
1530
- </li>
1531
- <li role="presentation">
1532
- <button class="pf-v6-c-select__menu-item" role="option">
1533
- New
1534
- &nbsp;York
1535
- </button>
1536
- </li>
1537
- <li role="presentation">
1538
- <button class="pf-v6-c-select__menu-item" role="option">North Carolina</button>
1539
- </li>
1540
- </ul>
1541
- </div>
1542
-
1543
- ```
1544
-
1545
- The multiselect should be used when the user is selecting multiple items from a list. The user can narrow the list by typing from the keyboard. The List updates while typing. Selected items create a new chip and are removed from the list. The user may clear selections individually or all at once to restore the placeholder.
1546
-
1547
- ### Accessibility
1548
-
1549
- | Attribute | Applied to | Outcome |
1550
- | -- | -- | -- |
1551
- | `aria-selected="true"` | `.pf-v6-c-select__menu-item` | Should be set programmatically to indicate the active item. |
1552
-
1553
- ### Usage
1554
-
1555
- | Class | Applied to | Outcome |
1556
- | -- | -- | -- |
1557
- | `.pf-v6-c-select` | `<div>` | Initiates the select component. |
1558
- | `.pf-v6-c-select__toggle` | `<div>` | Initiates the select toggle. |
1559
- | `.pf-v6-c-select__toggle-wrapper` | `<div>` | Initiates the select toggle wrapper so that chips and input field can wrap together. |
1560
- | `.pf-v6-c-chip` | `<div>` | Initiates a chip. (See [chip component](/components/chip) for more details) |
1561
- | `.pf-v6-c-select__toggle-typeahead` | `input.pf-v6-c-form-control` | Initiates the input field for typeahead. |
1562
- | `.pf-v6-c-select__toggle-clear` | `button.pf-m-plain` | Initiates a clear button in the toggle. |
1563
- | `.pf-v6-c-select__toggle-button` | `<button>` | Initiates a toggle button. |
1564
- | `.pf-v6-c-select__toggle-arrow` | `<span>` | Initiates the caret icon. |
1565
- | `.pf-v6-c-select__menu` | `<ul>` | Initiates the select dropdown menu. |
1566
- | `.pf-v6-c-select__menu-item` | `<li>` | Initiates the items in the select dropdown menu. |
1567
- | `.pf-m-expanded` | `.pf-v6-c-select` | Indicates the select is expanded. |
1568
- | `.pf-m-typeahead` | `.pf-v6-c-select__toggle` | Indicates the select has a typeahead. |
1569
-
1570
- ## Checkbox
1571
-
1572
- ### Checkbox select
1573
-
1574
- ```html
1575
- <div class="pf-v6-c-select">
1576
- <span id="select-checkbox-label" hidden>Choose many</span>
1577
-
1578
- <button
1579
- class="pf-v6-c-select__toggle"
1580
- type="button"
1581
- id="select-checkbox-toggle"
1582
- aria-haspopup="true"
1583
- aria-expanded="false"
1584
- aria-labelledby="select-checkbox-label select-checkbox-toggle"
1585
- >
1586
- <div class="pf-v6-c-select__toggle-wrapper">
1587
- <span class="pf-v6-c-select__toggle-text">Filter by status</span>
1588
- </div>
1589
- <span class="pf-v6-c-select__toggle-arrow">
1590
- <i class="fas fa-caret-down" aria-hidden="true"></i>
1591
- </span>
1592
- </button>
1593
-
1594
- <div class="pf-v6-c-select__menu" hidden>
1595
- <fieldset class="pf-v6-c-select__menu-fieldset" aria-label="Select input">
1596
- <label
1597
- class="pf-v6-c-check pf-v5-c-select__menu-item pf-m-description"
1598
- id="select-checkbox-active"
1599
- for="select-checkbox-active-input"
1600
- >
1601
- <input
1602
- class="pf-v6-c-check__input"
1603
- type="checkbox"
1604
- aria-describedby="select-checkbox-active-description"
1605
- id="select-checkbox-active-input"
1606
- name="select-checkbox-active-input"
1607
- />
1608
- <span class="pf-v6-c-check__label">Active</span>
1609
- <span
1610
- class="pf-v6-c-check__description"
1611
- id="select-checkbox-active-description"
1612
- >This is a description</span>
1613
- </label>
1614
- <label
1615
- class="pf-v6-c-check pf-v5-c-select__menu-item pf-m-description"
1616
- id="select-checkbox-canceled"
1617
- for="select-checkbox-canceled-input"
1618
- >
1619
- <input
1620
- class="pf-v6-c-check__input"
1621
- type="checkbox"
1622
- aria-describedby="select-checkbox-canceled-description"
1623
- id="select-checkbox-canceled-input"
1624
- name="select-checkbox-canceled-input"
1625
- />
1626
- <span class="pf-v6-c-check__label">Canceled</span>
1627
- <span
1628
- class="pf-v6-c-check__description"
1629
- id="select-checkbox-canceled-description"
1630
- >This is a really long description that describes the menu item. This is a really long description that describes the menu item.</span>
1631
- </label>
1632
- <label
1633
- class="pf-v6-c-check pf-v5-c-select__menu-item"
1634
- id="select-checkbox-paused"
1635
- for="select-checkbox-paused-input"
1636
- >
1637
- <input
1638
- class="pf-v6-c-check__input"
1639
- type="checkbox"
1640
- id="select-checkbox-paused-input"
1641
- name="select-checkbox-paused-input"
1642
- />
1643
- <span class="pf-v6-c-check__label">Paused</span>
1644
- </label>
1645
- <label
1646
- class="pf-v6-c-check pf-v5-c-select__menu-item"
1647
- id="select-checkbox-warning"
1648
- for="select-checkbox-warning-input"
1649
- >
1650
- <input
1651
- class="pf-v6-c-check__input"
1652
- type="checkbox"
1653
- id="select-checkbox-warning-input"
1654
- name="select-checkbox-warning-input"
1655
- />
1656
- <span class="pf-v6-c-check__label">Warning</span>
1657
- </label>
1658
- <label
1659
- class="pf-v6-c-check pf-v5-c-select__menu-item"
1660
- id="select-checkbox-restarted"
1661
- for="select-checkbox-restarted-input"
1662
- >
1663
- <input
1664
- class="pf-v6-c-check__input"
1665
- type="checkbox"
1666
- id="select-checkbox-restarted-input"
1667
- name="select-checkbox-restarted-input"
1668
- />
1669
- <span class="pf-v6-c-check__label">Restarted</span>
1670
- </label>
1671
- </fieldset>
1672
- </div>
1673
- </div>
1674
-
1675
- ```
1676
-
1677
- ### Checkbox expanded
1678
-
1679
- ```html
1680
- <div class="pf-v6-c-select pf-m-expanded">
1681
- <span id="select-checkbox-expanded-label" hidden>Choose many</span>
1682
-
1683
- <button
1684
- class="pf-v6-c-select__toggle"
1685
- type="button"
1686
- id="select-checkbox-expanded-toggle"
1687
- aria-haspopup="true"
1688
- aria-expanded="true"
1689
- aria-labelledby="select-checkbox-expanded-label select-checkbox-expanded-toggle"
1690
- >
1691
- <div class="pf-v6-c-select__toggle-wrapper">
1692
- <span class="pf-v6-c-select__toggle-text">Filter</span>
1693
- </div>
1694
- <span class="pf-v6-c-select__toggle-arrow">
1695
- <i class="fas fa-caret-down" aria-hidden="true"></i>
1696
- </span>
1697
- </button>
1698
-
1699
- <div class="pf-v6-c-select__menu">
1700
- <fieldset class="pf-v6-c-select__menu-fieldset" aria-label="Select input">
1701
- <label
1702
- class="pf-v6-c-check pf-v5-c-select__menu-item"
1703
- id="select-checkbox-expanded-check-active"
1704
- for="select-checkbox-expanded-check-active-input"
1705
- >
1706
- <input
1707
- class="pf-v6-c-check__input"
1708
- type="checkbox"
1709
- id="select-checkbox-expanded-check-active-input"
1710
- name="select-checkbox-expanded-check-active-input"
1711
- checked
1712
- />
1713
- <span class="pf-v6-c-check__label">Active</span>
1714
- </label>
1715
- <label
1716
- class="pf-v6-c-check pf-v5-c-select__menu-item"
1717
- id="select-checkbox-expanded-check-canceled"
1718
- for="select-checkbox-expanded-check-canceled-input"
1719
- >
1720
- <input
1721
- class="pf-v6-c-check__input"
1722
- type="checkbox"
1723
- id="select-checkbox-expanded-check-canceled-input"
1724
- name="select-checkbox-expanded-check-canceled-input"
1725
- checked
1726
- />
1727
- <span class="pf-v6-c-check__label">Canceled</span>
1728
- </label>
1729
- <label
1730
- class="pf-v6-c-check pf-v5-c-select__menu-item"
1731
- id="select-checkbox-expanded-check-paused"
1732
- for="select-checkbox-expanded-check-paused-input"
1733
- >
1734
- <input
1735
- class="pf-v6-c-check__input"
1736
- type="checkbox"
1737
- id="select-checkbox-expanded-check-paused-input"
1738
- name="select-checkbox-expanded-check-paused-input"
1739
- />
1740
- <span class="pf-v6-c-check__label">Paused</span>
1741
- </label>
1742
- <label
1743
- class="pf-v6-c-check pf-v5-c-select__menu-item"
1744
- id="select-checkbox-expanded-check-warning"
1745
- for="select-checkbox-expanded-check-warning-input"
1746
- >
1747
- <input
1748
- class="pf-v6-c-check__input"
1749
- type="checkbox"
1750
- id="select-checkbox-expanded-check-warning-input"
1751
- name="select-checkbox-expanded-check-warning-input"
1752
- checked
1753
- />
1754
- <span class="pf-v6-c-check__label">Warning</span>
1755
- </label>
1756
- <label
1757
- class="pf-v6-c-check pf-v5-c-select__menu-item"
1758
- id="select-checkbox-expanded-check-restarted"
1759
- for="select-checkbox-expanded-check-restarted-input"
1760
- >
1761
- <input
1762
- class="pf-v6-c-check__input"
1763
- type="checkbox"
1764
- id="select-checkbox-expanded-check-restarted-input"
1765
- name="select-checkbox-expanded-check-restarted-input"
1766
- />
1767
- <span class="pf-v6-c-check__label">Restarted</span>
1768
- </label>
1769
- </fieldset>
1770
- </div>
1771
- </div>
1772
-
1773
- ```
1774
-
1775
- ### Checkbox expanded and selected with groups
1776
-
1777
- ```html
1778
- <div class="pf-v6-c-select pf-m-expanded">
1779
- <span id="select-checkbox-expanded-selected-label" hidden>Choose many</span>
1780
-
1781
- <button
1782
- class="pf-v6-c-select__toggle"
1783
- type="button"
1784
- id="select-checkbox-expanded-selected-toggle"
1785
- aria-haspopup="true"
1786
- aria-expanded="true"
1787
- aria-labelledby="select-checkbox-expanded-selected-label select-checkbox-expanded-selected-toggle"
1788
- >
1789
- <div class="pf-v6-c-select__toggle-wrapper">
1790
- <span class="pf-v6-c-select__toggle-text">Filter by status</span>
1791
- </div>
1792
- <span class="pf-v6-c-select__toggle-arrow">
1793
- <i class="fas fa-caret-down" aria-hidden="true"></i>
1794
- </span>
1795
- </button>
1796
-
1797
- <div class="pf-v6-c-select__menu">
1798
- <div class="pf-v6-c-select__menu-group">
1799
- <div
1800
- class="pf-v6-c-select__menu-group-title"
1801
- aria-hidden="true"
1802
- id="select-checkbox-expanded-selected-group-status"
1803
- >Status</div>
1804
- <fieldset
1805
- class="pf-v6-c-select__menu-fieldset"
1806
- aria-labelledby="select-checkbox-expanded-selected-group-status"
1807
- >
1808
- <label
1809
- class="pf-v6-c-check pf-v5-c-select__menu-item"
1810
- id="select-checkbox-expanded-selected-check-running"
1811
- for="select-checkbox-expanded-selected-check-running-input"
1812
- >
1813
- <input
1814
- class="pf-v6-c-check__input"
1815
- type="checkbox"
1816
- id="select-checkbox-expanded-selected-check-running-input"
1817
- name="select-checkbox-expanded-selected-check-running-input"
1818
- />
1819
- <span class="pf-v6-c-check__label">Running</span>
1820
- </label>
1821
- <label
1822
- class="pf-v6-c-check pf-v5-c-select__menu-item"
1823
- id="select-checkbox-expanded-selected-check-stopped"
1824
- for="select-checkbox-expanded-selected-check-stopped-input"
1825
- >
1826
- <input
1827
- class="pf-v6-c-check__input"
1828
- type="checkbox"
1829
- id="select-checkbox-expanded-selected-check-stopped-input"
1830
- name="select-checkbox-expanded-selected-check-stopped-input"
1831
- />
1832
- <span class="pf-v6-c-check__label">Stopped</span>
1833
- </label>
1834
- <label
1835
- class="pf-v6-c-check pf-v5-c-select__menu-item"
1836
- id="select-checkbox-expanded-selected-check-down"
1837
- for="select-checkbox-expanded-selected-check-down-input"
1838
- >
1839
- <input
1840
- class="pf-v6-c-check__input"
1841
- type="checkbox"
1842
- id="select-checkbox-expanded-selected-check-down-input"
1843
- name="select-checkbox-expanded-selected-check-down-input"
1844
- />
1845
- <span class="pf-v6-c-check__label">Down</span>
1846
- </label>
1847
- <label
1848
- class="pf-v6-c-check pf-v5-c-select__menu-item"
1849
- id="select-checkbox-expanded-selected-check-degraded"
1850
- for="select-checkbox-expanded-selected-check-degraded-input"
1851
- >
1852
- <input
1853
- class="pf-v6-c-check__input"
1854
- type="checkbox"
1855
- id="select-checkbox-expanded-selected-check-degraded-input"
1856
- name="select-checkbox-expanded-selected-check-degraded-input"
1857
- />
1858
- <span class="pf-v6-c-check__label">Degraded</span>
1859
- </label>
1860
- <label
1861
- class="pf-v6-c-check pf-v5-c-select__menu-item"
1862
- id="select-checkbox-expanded-selected-check-needs-maintenance"
1863
- for="select-checkbox-expanded-selected-check-needs-maintenance-input"
1864
- >
1865
- <input
1866
- class="pf-v6-c-check__input"
1867
- type="checkbox"
1868
- id="select-checkbox-expanded-selected-check-needs-maintenance-input"
1869
- name="select-checkbox-expanded-selected-check-needs-maintenance-input"
1870
- checked
1871
- />
1872
- <span class="pf-v6-c-check__label">Needs maintenance</span>
1873
- </label>
1874
- </fieldset>
1875
- </div>
1876
- <div class="pf-v6-c-select__menu-group">
1877
- <div
1878
- class="pf-v6-c-select__menu-group-title"
1879
- aria-hidden="true"
1880
- id="select-checkbox-expanded-selected-group-vendor"
1881
- >Vendor</div>
1882
- <fieldset
1883
- class="pf-v6-c-select__menu-fieldset"
1884
- aria-labelledby="select-checkbox-expanded-selected-group-vendor"
1885
- >
1886
- <label
1887
- class="pf-v6-c-check pf-v5-c-select__menu-item"
1888
- id="select-checkbox-expanded-selected-check-dell"
1889
- for="select-checkbox-expanded-selected-check-dell-input"
1890
- >
1891
- <input
1892
- class="pf-v6-c-check__input"
1893
- type="checkbox"
1894
- id="select-checkbox-expanded-selected-check-dell-input"
1895
- name="select-checkbox-expanded-selected-check-dell-input"
1896
- />
1897
- <span class="pf-v6-c-check__label">Dell</span>
1898
- </label>
1899
- <label
1900
- class="pf-v6-c-check pf-v5-c-select__menu-item"
1901
- id="select-checkbox-expanded-selected-check-Samsung"
1902
- for="select-checkbox-expanded-selected-check-Samsung-input"
1903
- >
1904
- <input
1905
- class="pf-v6-c-check__input"
1906
- type="checkbox"
1907
- id="select-checkbox-expanded-selected-check-Samsung-input"
1908
- name="select-checkbox-expanded-selected-check-Samsung-input"
1909
- disabled
1910
- />
1911
- <span class="pf-v6-c-check__label pf-m-disabled">Samsung</span>
1912
- </label>
1913
- <label
1914
- class="pf-v6-c-check pf-v5-c-select__menu-item"
1915
- id="select-checkbox-expanded-selected-check-Hp"
1916
- for="select-checkbox-expanded-selected-check-Hp-input"
1917
- >
1918
- <input
1919
- class="pf-v6-c-check__input"
1920
- type="checkbox"
1921
- id="select-checkbox-expanded-selected-check-Hp-input"
1922
- name="select-checkbox-expanded-selected-check-Hp-input"
1923
- />
1924
- <span class="pf-v6-c-check__label">Hewlett-Packard</span>
1925
- </label>
1926
- </fieldset>
1927
- </div>
1928
- </div>
1929
- </div>
1930
-
1931
- ```
1932
-
1933
- ### Checkbox expanded and selected with groups and filter
1934
-
1935
- ```html
1936
- <div class="pf-v6-c-select pf-m-expanded">
1937
- <span
1938
- id="select-checkbox-expanded-selected-filter-example-label"
1939
- hidden
1940
- >Choose many</span>
1941
-
1942
- <button
1943
- class="pf-v6-c-select__toggle"
1944
- type="button"
1945
- id="select-checkbox-expanded-selected-filter-example-toggle"
1946
- aria-haspopup="true"
1947
- aria-expanded="true"
1948
- aria-labelledby="select-checkbox-expanded-selected-filter-example-label select-checkbox-expanded-selected-filter-example-toggle"
1949
- >
1950
- <div class="pf-v6-c-select__toggle-wrapper">
1951
- <span class="pf-v6-c-select__toggle-text">Filter by status</span>
1952
- </div>
1953
- <span class="pf-v6-c-select__toggle-arrow">
1954
- <i class="fas fa-caret-down" aria-hidden="true"></i>
1955
- </span>
1956
- </button>
1957
-
1958
- <div class="pf-v6-c-select__menu">
1959
- <div class="pf-v6-c-select__menu-search">
1960
- <div class="pf-v6-c-text-input-group">
1961
- <div class="pf-v6-c-text-input-group__main pf-m-icon">
1962
- <span class="pf-v6-c-text-input-group__text">
1963
- <span class="pf-v6-c-text-input-group__icon">
1964
- <i class="fas fa-fw fa-search"></i>
1965
- </span>
1966
- <input
1967
- class="pf-v6-c-text-input-group__text-input"
1968
- type="text"
1969
- placeholder="Search"
1970
- value
1971
- aria-label="Search input"
1972
- />
1973
- </span>
1974
- </div>
1975
- </div>
1976
- </div>
1977
- <hr class="pf-v6-c-divider" />
1978
- <div class="pf-v6-c-select__menu-group">
1979
- <div
1980
- class="pf-v6-c-select__menu-group-title"
1981
- aria-hidden="true"
1982
- id="select-checkbox-expanded-selected-filter-example-group-status"
1983
- >Status</div>
1984
- <fieldset
1985
- class="pf-v6-c-select__menu-fieldset"
1986
- aria-labelledby="select-checkbox-expanded-selected-filter-example-group-status"
1987
- >
1988
- <label
1989
- class="pf-v6-c-check pf-v5-c-select__menu-item"
1990
- id="select-checkbox-expanded-selected-filter-example-check-running"
1991
- for="select-checkbox-expanded-selected-filter-example-check-running-input"
1992
- >
1993
- <input
1994
- class="pf-v6-c-check__input"
1995
- type="checkbox"
1996
- id="select-checkbox-expanded-selected-filter-example-check-running-input"
1997
- name="select-checkbox-expanded-selected-filter-example-check-running-input"
1998
- />
1999
- <span class="pf-v6-c-check__label">Running</span>
2000
- </label>
2001
- <label
2002
- class="pf-v6-c-check pf-v5-c-select__menu-item"
2003
- id="select-checkbox-expanded-selected-filter-example-check-stopped"
2004
- for="select-checkbox-expanded-selected-filter-example-check-stopped-input"
2005
- >
2006
- <input
2007
- class="pf-v6-c-check__input"
2008
- type="checkbox"
2009
- id="select-checkbox-expanded-selected-filter-example-check-stopped-input"
2010
- name="select-checkbox-expanded-selected-filter-example-check-stopped-input"
2011
- />
2012
- <span class="pf-v6-c-check__label">Stopped</span>
2013
- </label>
2014
- <label
2015
- class="pf-v6-c-check pf-v5-c-select__menu-item"
2016
- id="select-checkbox-expanded-selected-filter-example-check-down"
2017
- for="select-checkbox-expanded-selected-filter-example-check-down-input"
2018
- >
2019
- <input
2020
- class="pf-v6-c-check__input"
2021
- type="checkbox"
2022
- id="select-checkbox-expanded-selected-filter-example-check-down-input"
2023
- name="select-checkbox-expanded-selected-filter-example-check-down-input"
2024
- />
2025
- <span class="pf-v6-c-check__label">Down</span>
2026
- </label>
2027
- <label
2028
- class="pf-v6-c-check pf-v5-c-select__menu-item"
2029
- id="select-checkbox-expanded-selected-filter-example-check-degraded"
2030
- for="select-checkbox-expanded-selected-filter-example-check-degraded-input"
2031
- >
2032
- <input
2033
- class="pf-v6-c-check__input"
2034
- type="checkbox"
2035
- id="select-checkbox-expanded-selected-filter-example-check-degraded-input"
2036
- name="select-checkbox-expanded-selected-filter-example-check-degraded-input"
2037
- />
2038
- <span class="pf-v6-c-check__label">Degraded</span>
2039
- </label>
2040
- <label
2041
- class="pf-v6-c-check pf-v5-c-select__menu-item"
2042
- id="select-checkbox-expanded-selected-filter-example-check-needs-maintenance"
2043
- for="select-checkbox-expanded-selected-filter-example-check-needs-maintenance-input"
2044
- >
2045
- <input
2046
- class="pf-v6-c-check__input"
2047
- type="checkbox"
2048
- id="select-checkbox-expanded-selected-filter-example-check-needs-maintenance-input"
2049
- name="select-checkbox-expanded-selected-filter-example-check-needs-maintenance-input"
2050
- checked
2051
- />
2052
- <span class="pf-v6-c-check__label">Needs maintenance</span>
2053
- </label>
2054
- </fieldset>
2055
- </div>
2056
- <div class="pf-v6-c-select__menu-group">
2057
- <div
2058
- class="pf-v6-c-select__menu-group-title"
2059
- aria-hidden="true"
2060
- id="select-checkbox-expanded-selected-filter-example-group-vendor"
2061
- >Vendor</div>
2062
- <fieldset
2063
- class="pf-v6-c-select__menu-fieldset"
2064
- aria-labelledby="select-checkbox-expanded-selected-filter-example-group-vendor"
2065
- >
2066
- <label
2067
- class="pf-v6-c-check pf-v5-c-select__menu-item"
2068
- id="select-checkbox-expanded-selected-filter-example-check-dell"
2069
- for="select-checkbox-expanded-selected-filter-example-check-dell-input"
2070
- >
2071
- <input
2072
- class="pf-v6-c-check__input"
2073
- type="checkbox"
2074
- id="select-checkbox-expanded-selected-filter-example-check-dell-input"
2075
- name="select-checkbox-expanded-selected-filter-example-check-dell-input"
2076
- />
2077
- <span class="pf-v6-c-check__label">Dell</span>
2078
- </label>
2079
- <label
2080
- class="pf-v6-c-check pf-v5-c-select__menu-item"
2081
- id="select-checkbox-expanded-selected-filter-example-check-Samsung"
2082
- for="select-checkbox-expanded-selected-filter-example-check-Samsung-input"
2083
- >
2084
- <input
2085
- class="pf-v6-c-check__input"
2086
- type="checkbox"
2087
- id="select-checkbox-expanded-selected-filter-example-check-Samsung-input"
2088
- name="select-checkbox-expanded-selected-filter-example-check-Samsung-input"
2089
- disabled
2090
- />
2091
- <span class="pf-v6-c-check__label pf-m-disabled">Samsung</span>
2092
- </label>
2093
- <label
2094
- class="pf-v6-c-check pf-v5-c-select__menu-item"
2095
- id="select-checkbox-expanded-selected-filter-example-check-Hp"
2096
- for="select-checkbox-expanded-selected-filter-example-check-Hp-input"
2097
- >
2098
- <input
2099
- class="pf-v6-c-check__input"
2100
- type="checkbox"
2101
- id="select-checkbox-expanded-selected-filter-example-check-Hp-input"
2102
- name="select-checkbox-expanded-selected-filter-example-check-Hp-input"
2103
- />
2104
- <span class="pf-v6-c-check__label">Hewlett-Packard</span>
2105
- </label>
2106
- </fieldset>
2107
- </div>
2108
- </div>
2109
- </div>
2110
-
2111
- ```
2112
-
2113
- ### Checkbox expanded without badge
2114
-
2115
- ```html
2116
- <div class="pf-v6-c-select pf-m-expanded">
2117
- <span id="select-checkbox-without-badge-label" hidden>Choose many</span>
2118
-
2119
- <button
2120
- class="pf-v6-c-select__toggle"
2121
- type="button"
2122
- id="select-checkbox-without-badge-toggle"
2123
- aria-haspopup="true"
2124
- aria-expanded="true"
2125
- aria-labelledby="select-checkbox-without-badge-label select-checkbox-without-badge-toggle"
2126
- >
2127
- <div class="pf-v6-c-select__toggle-wrapper">
2128
- <span class="pf-v6-c-select__toggle-text">Filter</span>
2129
- </div>
2130
- <span class="pf-v6-c-select__toggle-arrow">
2131
- <i class="fas fa-caret-down" aria-hidden="true"></i>
2132
- </span>
2133
- </button>
2134
-
2135
- <div class="pf-v6-c-select__menu">
2136
- <fieldset class="pf-v6-c-select__menu-fieldset" aria-label="Select input">
2137
- <label
2138
- class="pf-v6-c-check pf-v5-c-select__menu-item"
2139
- id="select-checkbox-without-badge-check-active"
2140
- for="select-checkbox-without-badge-check-active-input"
2141
- >
2142
- <input
2143
- class="pf-v6-c-check__input"
2144
- type="checkbox"
2145
- id="select-checkbox-without-badge-check-active-input"
2146
- name="select-checkbox-without-badge-check-active-input"
2147
- checked
2148
- />
2149
- <span class="pf-v6-c-check__label">Active</span>
2150
- </label>
2151
- <label
2152
- class="pf-v6-c-check pf-v5-c-select__menu-item"
2153
- id="select-checkbox-without-badge-check-canceled"
2154
- for="select-checkbox-without-badge-check-canceled-input"
2155
- >
2156
- <input
2157
- class="pf-v6-c-check__input"
2158
- type="checkbox"
2159
- id="select-checkbox-without-badge-check-canceled-input"
2160
- name="select-checkbox-without-badge-check-canceled-input"
2161
- checked
2162
- />
2163
- <span class="pf-v6-c-check__label">Canceled</span>
2164
- </label>
2165
- <label
2166
- class="pf-v6-c-check pf-v5-c-select__menu-item"
2167
- id="select-checkbox-without-badge-check-paused"
2168
- for="select-checkbox-without-badge-check-paused-input"
2169
- >
2170
- <input
2171
- class="pf-v6-c-check__input"
2172
- type="checkbox"
2173
- id="select-checkbox-without-badge-check-paused-input"
2174
- name="select-checkbox-without-badge-check-paused-input"
2175
- />
2176
- <span class="pf-v6-c-check__label">Paused</span>
2177
- </label>
2178
- <label
2179
- class="pf-v6-c-check pf-v5-c-select__menu-item"
2180
- id="select-checkbox-without-badge-check-warning"
2181
- for="select-checkbox-without-badge-check-warning-input"
2182
- >
2183
- <input
2184
- class="pf-v6-c-check__input"
2185
- type="checkbox"
2186
- id="select-checkbox-without-badge-check-warning-input"
2187
- name="select-checkbox-without-badge-check-warning-input"
2188
- checked
2189
- />
2190
- <span class="pf-v6-c-check__label">Warning</span>
2191
- </label>
2192
- <label
2193
- class="pf-v6-c-check pf-v5-c-select__menu-item"
2194
- id="select-checkbox-without-badge-check-restarted"
2195
- for="select-checkbox-without-badge-check-restarted-input"
2196
- >
2197
- <input
2198
- class="pf-v6-c-check__input"
2199
- type="checkbox"
2200
- id="select-checkbox-without-badge-check-restarted-input"
2201
- name="select-checkbox-without-badge-check-restarted-input"
2202
- />
2203
- <span class="pf-v6-c-check__label">Restarted</span>
2204
- </label>
2205
- </fieldset>
2206
- </div>
2207
- </div>
2208
-
2209
- ```
2210
-
2211
- ### Checkbox with counts
2212
-
2213
- ```html
2214
- <div class="pf-v6-c-select pf-m-expanded">
2215
- <span id="select-checkbox-counts-label" hidden>Choose many</span>
2216
-
2217
- <button
2218
- class="pf-v6-c-select__toggle"
2219
- type="button"
2220
- id="select-checkbox-counts-toggle"
2221
- aria-haspopup="true"
2222
- aria-expanded="true"
2223
- aria-labelledby="select-checkbox-counts-label select-checkbox-counts-toggle"
2224
- >
2225
- <div class="pf-v6-c-select__toggle-wrapper">
2226
- <span class="pf-v6-c-select__toggle-text">Filter</span>
2227
- </div>
2228
- <span class="pf-v6-c-select__toggle-arrow">
2229
- <i class="fas fa-caret-down" aria-hidden="true"></i>
2230
- </span>
2231
- </button>
2232
-
2233
- <div class="pf-v6-c-select__menu">
2234
- <fieldset class="pf-v6-c-select__menu-fieldset" aria-label="Select input">
2235
- <label
2236
- class="pf-v6-c-check pf-v5-c-select__menu-item"
2237
- id="select-checkbox-counts-active"
2238
- for="select-checkbox-counts-active-input"
2239
- >
2240
- <input
2241
- class="pf-v6-c-check__input"
2242
- type="checkbox"
2243
- id="select-checkbox-counts-active-input"
2244
- name="select-checkbox-counts-active-input"
2245
- />
2246
- <span class="pf-v6-c-check__label">
2247
- <span class="pf-v6-c-select__menu-item-row">
2248
- <span class="pf-v6-c-select__menu-item-text">Active</span>
2249
- <span class="pf-v6-c-select__menu-item-count">3</span>
2250
- </span>
2251
- </span>
2252
- </label>
2253
- <label
2254
- class="pf-v6-c-check pf-v5-c-select__menu-item"
2255
- id="select-checkbox-counts-canceled"
2256
- for="select-checkbox-counts-canceled-input"
2257
- >
2258
- <input
2259
- class="pf-v6-c-check__input"
2260
- type="checkbox"
2261
- id="select-checkbox-counts-canceled-input"
2262
- name="select-checkbox-counts-canceled-input"
2263
- checked
2264
- />
2265
- <span class="pf-v6-c-check__label">
2266
- <span class="pf-v6-c-select__menu-item-row">
2267
- <span class="pf-v6-c-select__menu-item-text">Canceled</span>
2268
- <span class="pf-v6-c-select__menu-item-count">1</span>
2269
- </span>
2270
- </span>
2271
- </label>
2272
- <label
2273
- class="pf-v6-c-check pf-v5-c-select__menu-item"
2274
- id="select-checkbox-counts-paused"
2275
- for="select-checkbox-counts-paused-input"
2276
- >
2277
- <input
2278
- class="pf-v6-c-check__input"
2279
- type="checkbox"
2280
- id="select-checkbox-counts-paused-input"
2281
- name="select-checkbox-counts-paused-input"
2282
- />
2283
- <span class="pf-v6-c-check__label">
2284
- <span class="pf-v6-c-select__menu-item-row">
2285
- <span class="pf-v6-c-select__menu-item-text">Paused</span>
2286
- <span class="pf-v6-c-select__menu-item-count">15</span>
2287
- </span>
2288
- </span>
2289
- </label>
2290
- <label
2291
- class="pf-v6-c-check pf-v5-c-select__menu-item"
2292
- id="select-checkbox-counts-warning"
2293
- for="select-checkbox-counts-warning-input"
2294
- >
2295
- <input
2296
- class="pf-v6-c-check__input"
2297
- type="checkbox"
2298
- id="select-checkbox-counts-warning-input"
2299
- name="select-checkbox-counts-warning-input"
2300
- checked
2301
- />
2302
- <span class="pf-v6-c-check__label">
2303
- <span class="pf-v6-c-select__menu-item-row">
2304
- <span class="pf-v6-c-select__menu-item-text">Warning</span>
2305
- <span class="pf-v6-c-select__menu-item-count">2</span>
2306
- </span>
2307
- </span>
2308
- </label>
2309
- <label
2310
- class="pf-v6-c-check pf-v5-c-select__menu-item"
2311
- id="select-checkbox-counts-restarted"
2312
- for="select-checkbox-counts-restarted-input"
2313
- >
2314
- <input
2315
- class="pf-v6-c-check__input"
2316
- type="checkbox"
2317
- id="select-checkbox-counts-restarted-input"
2318
- name="select-checkbox-counts-restarted-input"
2319
- />
2320
- <span class="pf-v6-c-check__label">
2321
- <span class="pf-v6-c-select__menu-item-row">
2322
- <span class="pf-v6-c-select__menu-item-text">Restarted</span>
2323
- <span class="pf-v6-c-select__menu-item-count">8</span>
2324
- </span>
2325
- </span>
2326
- </label>
2327
- </fieldset>
2328
- </div>
2329
- </div>
2330
-
2331
- ```
2332
-
2333
- The checkbox select can select multiple items using checkboxes. The number of items selected is reflected in an optional badge in the dropdown toggle. The user may clear items by unchecking or using the clear button. Optionally, items may be grouped.
2334
-
2335
- ### Usage
2336
-
2337
- | Class | Applied to | Outcome |
2338
- | -- | -- | -- |
2339
- | `.pf-v6-c-select` | `<div>` | Initiates the select component. |
2340
- | `.pf-v6-c-select__toggle` | `<button>` | Initiates the select toggle. |
2341
- | `.pf-v6-c-select__toggle-wrapper` | `<div>` | Initiates the select toggle wrapper so that chips and input field can wrap together. |
2342
- | `.pf-v6-c-chip` | `<div>` | Initiates a chip. (See [chip component](/components/chip) for more details) |
2343
- | `.pf-v6-c-select__toggle-typeahead` | `input.pf-v6-c-form-control` | Initiates the input field for typeahead. |
2344
- | `.pf-v6-c-select__toggle-badge` | `<div>` | Initiates a container for a badge to indicate the number of items checked. \* note: This should contain an unread badge \* |
2345
- | `.pf-v6-c-select__toggle-clear` | `button.pf-m-plain` | Initiates a clear button in the toggle. |
2346
- | `.pf-v6-c-select__toggle-arrow` | `<span>` | Initiates the caret to toggle the dropdown. |
2347
- | `.pf-v6-c-select__menu` | `<div>` | Initiates the select dropdown menu. |
2348
- | `.pf-v6-c-select__menu-item` | `div.pf-v6-c-check` | Initiates the items in the select dropdown menu. |
2349
- | `.pf-v6-c-select__menu-item-row` | `<span>` | Initiates a menu item row for use with positioning other elements before/after the item text. |
2350
- | `.pf-v6-c-select__menu-item-text` | `<span>` | Initiates the menu item row text. |
2351
- | `.pf-v6-c-select__menu-item-count` | `<span>` | Initiates the menu item row count. |
2352
- | `.pf-v6-c-select__menu-fieldset` | `<fieldset>` | Initiates a fieldset for the items in a checkbox select. |
2353
- | `.pf-v6-c-select__menu-group` | `<div>` | Initiates a group within a select menu. |
2354
- | `.pf-v6-c-select__menu-group-title` | `<div>` | Initiates a title for a group with a select menu. |
2355
- | `.pf-v6-c-select__menu-search` | `<div>` | Initiates a container for the search input group. |
2356
- | `.pf-m-expanded` | `.pf-v6-c-select` | Indicates the select is expanded. |
2357
- | `.pf-m-typeahead` | `.pf-v6-c-select__toggle` | Indicates the select has a typeahead. |
2358
-
2359
- ## Plain
2360
-
2361
- ### Plain toggle
2362
-
2363
- ```html
2364
- <div class="pf-v6-c-select">
2365
- <span id="select-plain-label" hidden>Choose one</span>
2366
-
2367
- <button
2368
- class="pf-v6-c-select__toggle pf-m-plain"
2369
- type="button"
2370
- id="select-plain-toggle"
2371
- aria-haspopup="true"
2372
- aria-expanded="false"
2373
- aria-labelledby="select-plain-label select-plain-toggle"
2374
- >
2375
- <div class="pf-v6-c-select__toggle-wrapper">
2376
- <span class="pf-v6-c-select__toggle-text">Filter by status</span>
2377
- </div>
2378
- <span class="pf-v6-c-select__toggle-arrow">
2379
- <i class="fas fa-caret-down" aria-hidden="true"></i>
2380
- </span>
2381
- </button>
2382
-
2383
- <ul
2384
- class="pf-v6-c-select__menu"
2385
- role="listbox"
2386
- aria-labelledby="select-plain-label"
2387
- hidden
2388
- >
2389
- <li role="presentation">
2390
- <button class="pf-v6-c-select__menu-item" role="option">Running</button>
2391
- </li>
2392
- <li role="presentation">
2393
- <button
2394
- class="pf-v6-c-select__menu-item pf-m-selected"
2395
- role="option"
2396
- aria-selected="true"
2397
- >
2398
- Stopped
2399
- <span class="pf-v6-c-select__menu-item-icon">
2400
- <i class="fas fa-check" aria-hidden="true"></i>
2401
- </span>
2402
- </button>
2403
- </li>
2404
- <li role="presentation">
2405
- <button class="pf-v6-c-select__menu-item" role="option">Down</button>
2406
- </li>
2407
- <li role="presentation">
2408
- <button class="pf-v6-c-select__menu-item" role="option">Degraded</button>
2409
- </li>
2410
- <li role="presentation">
2411
- <button class="pf-v6-c-select__menu-item" role="option">Needs maintenance</button>
2412
- </li>
2413
- </ul>
2414
- </div>
2415
-
2416
- ```
2417
-
2418
- ### Plain toggle expanded
2419
-
2420
- ```html
2421
- <div class="pf-v6-c-select pf-m-expanded">
2422
- <span id="select-plain-expanded-label" hidden>Choose one</span>
2423
-
2424
- <button
2425
- class="pf-v6-c-select__toggle pf-m-plain"
2426
- type="button"
2427
- id="select-plain-expanded-toggle"
2428
- aria-haspopup="true"
2429
- aria-expanded="true"
2430
- aria-labelledby="select-plain-expanded-label select-plain-expanded-toggle"
2431
- >
2432
- <div class="pf-v6-c-select__toggle-wrapper">
2433
- <span class="pf-v6-c-select__toggle-text">Filter by status</span>
2434
- </div>
2435
- <span class="pf-v6-c-select__toggle-arrow">
2436
- <i class="fas fa-caret-down" aria-hidden="true"></i>
2437
- </span>
2438
- </button>
2439
-
2440
- <ul
2441
- class="pf-v6-c-select__menu"
2442
- role="listbox"
2443
- aria-labelledby="select-plain-expanded-label"
2444
- >
2445
- <li role="presentation">
2446
- <button class="pf-v6-c-select__menu-item" role="option">Running</button>
2447
- </li>
2448
- <li role="presentation">
2449
- <button
2450
- class="pf-v6-c-select__menu-item pf-m-selected"
2451
- role="option"
2452
- aria-selected="true"
2453
- >
2454
- Stopped
2455
- <span class="pf-v6-c-select__menu-item-icon">
2456
- <i class="fas fa-check" aria-hidden="true"></i>
2457
- </span>
2458
- </button>
2459
- </li>
2460
- <li role="presentation">
2461
- <button class="pf-v6-c-select__menu-item" role="option">Down</button>
2462
- </li>
2463
- <li role="presentation">
2464
- <button class="pf-v6-c-select__menu-item" role="option">Degraded</button>
2465
- </li>
2466
- <li role="presentation">
2467
- <button class="pf-v6-c-select__menu-item" role="option">Needs maintenance</button>
2468
- </li>
2469
- </ul>
2470
- </div>
2471
-
2472
- ```
2473
-
2474
- The plain select variation should be used when you do not want a border applied to the select toggle.
2475
-
2476
- ### Usage
2477
-
2478
- | Class | Applied to | Outcome |
2479
- | -- | -- | -- |
2480
- | `.pf-v6-c-select` | `<div>` | Initiates the select component. |
2481
- | `.pf-v6-c-select__toggle` | `<button>` | Initiates the select toggle. |
2482
- | `.pf-v6-c-select__toggle-wrapper` | `<div>` | Initiates the select toggle wrapper. |
2483
- | `.pf-v6-c-select__toggle-arrow` | `<span>` | Initiates the caret to toggle the dropdown. |
2484
- | `.pf-v6-c-select__menu` | `<ul>` | Initiates the select dropdown menu. |
2485
- | `.pf-v6-c-select__menu-item` | `<li>` | Initiates the items in the select dropdown menu. |
2486
- | `.pf-v6-c-select__menu-item-icon` | `<i>` | Initiates the selected item icon. |
2487
- | `.pf-m-expanded` | `.pf-v6-c-select` | Indicates the select is expanded. |
2488
- | `.pf-m-plain` | `.pf-v6-c-select__toggle` | Modifies to display the toggle with no border. |
2489
- | `.pf-m-selected` | `.pf-v6-c-select__menu-item` | Indicates the menu item is selected. |
2490
-
2491
- ## Icon
2492
-
2493
- ### Toggle icon
2494
-
2495
- ```html
2496
- <div class="pf-v6-c-select">
2497
- <span id="select-icon-label" hidden>Choose one</span>
2498
-
2499
- <button
2500
- class="pf-v6-c-select__toggle"
2501
- type="button"
2502
- id="select-icon-toggle"
2503
- aria-haspopup="true"
2504
- aria-expanded="false"
2505
- aria-labelledby="select-icon-label select-icon-toggle"
2506
- >
2507
- <div class="pf-v6-c-select__toggle-wrapper">
2508
- <span class="pf-v6-c-select__toggle-icon">
2509
- <i class="fas fa-filter" aria-hidden="true"></i>
2510
- </span>
2511
- <span class="pf-v6-c-select__toggle-text">Filter by status</span>
2512
- </div>
2513
- <span class="pf-v6-c-select__toggle-arrow">
2514
- <i class="fas fa-caret-down" aria-hidden="true"></i>
2515
- </span>
2516
- </button>
2517
-
2518
- <ul
2519
- class="pf-v6-c-select__menu"
2520
- role="listbox"
2521
- aria-labelledby="select-icon-label"
2522
- hidden
2523
- >
2524
- <li role="presentation">
2525
- <button class="pf-v6-c-select__menu-item" role="option">Running</button>
2526
- </li>
2527
- <li role="presentation">
2528
- <button
2529
- class="pf-v6-c-select__menu-item pf-m-selected"
2530
- role="option"
2531
- aria-selected="true"
2532
- >
2533
- Stopped
2534
- <span class="pf-v6-c-select__menu-item-icon">
2535
- <i class="fas fa-check" aria-hidden="true"></i>
2536
- </span>
2537
- </button>
2538
- </li>
2539
- <li role="presentation">
2540
- <button class="pf-v6-c-select__menu-item" role="option">Down</button>
2541
- </li>
2542
- <li role="presentation">
2543
- <button class="pf-v6-c-select__menu-item" role="option">Degraded</button>
2544
- </li>
2545
- <li role="presentation">
2546
- <button class="pf-v6-c-select__menu-item" role="option">Needs maintenance</button>
2547
- </li>
2548
- </ul>
2549
- </div>
2550
-
2551
- ```
2552
-
2553
- ### Accessibility
2554
-
2555
- | Attribute | Applied to | Outcome |
2556
- | -- | -- | -- |
2557
- | `aria-hidden="true"` | `.pf-v6-c-select__toggle-icon` | Hides the icon from assistive technologies.
2558
-
2559
- ### Usage
2560
-
2561
- | Class | Applied to | Outcome |
2562
- | -- | -- | -- |
2563
- | `.pf-v6-c-select` | `<div>` | Initiates the select component. |
2564
- | `.pf-v6-c-select__toggle` | `<button>` | Initiates the select toggle. |
2565
- | `.pf-v6-c-select__toggle-wrapper` | `<div>` | Initiates the select toggle wrapper. |
2566
- | `.pf-v6-c-select__toggle-icon` | `<span>` | Initiates the icon in the dropdown toggle. |
2567
- | `.pf-v6-c-select__toggle-arrow` | `<span>` | Initiates the caret to toggle the dropdown. |
2568
-
2569
- ## Panel
2570
-
2571
- ### Panel menu
2572
-
2573
- ```html
2574
- <div class="pf-v6-c-select pf-m-expanded">
2575
- <span id="select-panel-label" hidden>Choose one</span>
2576
-
2577
- <button
2578
- class="pf-v6-c-select__toggle"
2579
- type="button"
2580
- id="select-panel-toggle"
2581
- aria-haspopup="true"
2582
- aria-expanded="true"
2583
- aria-labelledby="select-panel-label select-panel-toggle"
2584
- >
2585
- <div class="pf-v6-c-select__toggle-wrapper">
2586
- <span class="pf-v6-c-select__toggle-text">Filter by status</span>
2587
- </div>
2588
- <span class="pf-v6-c-select__toggle-arrow">
2589
- <i class="fas fa-caret-down" aria-hidden="true"></i>
2590
- </span>
2591
- </button>
2592
-
2593
- <div
2594
- class="pf-v6-c-select__menu"
2595
- aria-labelledby="select-panel-label"
2596
- >[Panel contents here]</div>
2597
- </div>
2598
-
2599
- ```
2600
-
2601
- ### Usage
2602
-
2603
- | Class | Applied to | Outcome |
2604
- | -- | -- | -- |
2605
- | `.pf-v6-c-select` | `<div>` | Initiates the select component. |
2606
- | `.pf-v6-c-select__toggle` | `<button>` | Initiates the select toggle. |
2607
- | `.pf-v6-c-select__toggle-wrapper` | `<div>` | Initiates the select toggle wrapper. |
2608
- | `.pf-v6-c-select__toggle-arrow` | `<span>` | Initiates the caret to toggle the dropdown. |
2609
- | `.pf-v6-c-select__menu` | `<div>` | Initiates the select dropdown menu. |
2610
-
2611
- ## Description
2612
-
2613
- ### Item description
2614
-
2615
- ```html
2616
- <div class="pf-v6-c-select pf-m-expanded">
2617
- <span id="select-with-description-label" hidden>Choose one</span>
2618
-
2619
- <button
2620
- class="pf-v6-c-select__toggle"
2621
- type="button"
2622
- id="select-with-description-toggle"
2623
- aria-haspopup="true"
2624
- aria-expanded="true"
2625
- aria-labelledby="select-with-description-label select-with-description-toggle"
2626
- >
2627
- <div class="pf-v6-c-select__toggle-wrapper">
2628
- <span class="pf-v6-c-select__toggle-text">Select with description</span>
2629
- </div>
2630
- <span class="pf-v6-c-select__toggle-arrow">
2631
- <i class="fas fa-caret-down" aria-hidden="true"></i>
2632
- </span>
2633
- </button>
2634
-
2635
- <ul
2636
- class="pf-v6-c-select__menu"
2637
- role="listbox"
2638
- aria-labelledby="select-with-description-label"
2639
- >
2640
- <li role="presentation">
2641
- <button class="pf-v6-c-select__menu-item" role="option">Menu item</button>
2642
- </li>
2643
- <li role="presentation">
2644
- <button class="pf-v6-c-select__menu-item pf-m-description" role="option">
2645
- <span class="pf-v6-c-select__menu-item-main">Menu item description</span>
2646
- <span
2647
- class="pf-v6-c-select__menu-item-description"
2648
- >This is a description.</span>
2649
- </button>
2650
- </li>
2651
- <li role="presentation">
2652
- <button
2653
- class="pf-v6-c-select__menu-item pf-m-description"
2654
- role="option"
2655
- disabled
2656
- >
2657
- <span class="pf-v6-c-select__menu-item-main">
2658
- <span
2659
- class="pf-v6-c-select__menu-item-main"
2660
- >Menu item description disabled</span>
2661
- </span>
2662
- <span
2663
- class="pf-v6-c-select__menu-item-description"
2664
- >This is a description.</span>
2665
- </button>
2666
- </li>
2667
- <li role="presentation">
2668
- <button
2669
- class="pf-v6-c-select__menu-item pf-m-selected pf-m-description"
2670
- role="option"
2671
- aria-selected="true"
2672
- >
2673
- <span class="pf-v6-c-select__menu-item-main">
2674
- Menu item description selected
2675
- <span
2676
- class="pf-v6-c-select__menu-item-icon"
2677
- >
2678
- <i class="fas fa-check" aria-hidden="true"></i>
2679
- </span>
2680
- </span>
2681
- <span
2682
- class="pf-v6-c-select__menu-item-description"
2683
- >This is a description.</span>
2684
- </button>
2685
- </li>
2686
- <li role="presentation">
2687
- <button class="pf-v6-c-select__menu-item pf-m-description" role="option">
2688
- <span class="pf-v6-c-select__menu-item-main">Menu item long description</span>
2689
- <span
2690
- class="pf-v6-c-select__menu-item-description"
2691
- >This is a really long description that describes the menu item. This is a really long description that describes the menu item.</span>
2692
- </button>
2693
- </li>
2694
- </ul>
2695
- </div>
2696
-
2697
- ```
2698
-
2699
- ### Checkbox item description
2700
-
2701
- ```html
2702
- <div class="pf-v6-c-select pf-m-expanded">
2703
- <span id="select-checkbox-description-label" hidden>Choose many</span>
2704
-
2705
- <button
2706
- class="pf-v6-c-select__toggle"
2707
- type="button"
2708
- id="select-checkbox-description-toggle"
2709
- aria-haspopup="true"
2710
- aria-expanded="true"
2711
- aria-labelledby="select-checkbox-description-label select-checkbox-description-toggle"
2712
- >
2713
- <div class="pf-v6-c-select__toggle-wrapper">
2714
- <span class="pf-v6-c-select__toggle-text">Filter</span>
2715
- </div>
2716
- <span class="pf-v6-c-select__toggle-arrow">
2717
- <i class="fas fa-caret-down" aria-hidden="true"></i>
2718
- </span>
2719
- </button>
2720
-
2721
- <div class="pf-v6-c-select__menu">
2722
- <fieldset class="pf-v6-c-select__menu-fieldset" aria-label="Select input">
2723
- <label
2724
- class="pf-v6-c-check pf-v5-c-select__menu-item pf-m-description"
2725
- id="select-checkbox-description-active"
2726
- for="select-checkbox-description-active-input"
2727
- >
2728
- <input
2729
- class="pf-v6-c-check__input"
2730
- type="checkbox"
2731
- aria-describedby="select-checkbox-description-active-description"
2732
- id="select-checkbox-description-active-input"
2733
- name="select-checkbox-description-active-input"
2734
- />
2735
- <span class="pf-v6-c-check__label">Active</span>
2736
- <span
2737
- class="pf-v6-c-check__description"
2738
- id="select-checkbox-description-active-description"
2739
- >This is a description</span>
2740
- </label>
2741
- <label
2742
- class="pf-v6-c-check pf-v5-c-select__menu-item pf-m-description"
2743
- id="select-checkbox-description-canceled"
2744
- for="select-checkbox-description-canceled-input"
2745
- >
2746
- <input
2747
- class="pf-v6-c-check__input"
2748
- type="checkbox"
2749
- aria-describedby="select-checkbox-description-canceled-description"
2750
- id="select-checkbox-description-canceled-input"
2751
- name="select-checkbox-description-canceled-input"
2752
- />
2753
- <span class="pf-v6-c-check__label">Canceled</span>
2754
- <span
2755
- class="pf-v6-c-check__description"
2756
- id="select-checkbox-description-canceled-description"
2757
- >This is a really long description that describes the menu item. This is a really long description that describes the menu item.</span>
2758
- </label>
2759
- <label
2760
- class="pf-v6-c-check pf-v5-c-select__menu-item"
2761
- id="select-checkbox-description-paused"
2762
- for="select-checkbox-description-paused-input"
2763
- >
2764
- <input
2765
- class="pf-v6-c-check__input"
2766
- type="checkbox"
2767
- id="select-checkbox-description-paused-input"
2768
- name="select-checkbox-description-paused-input"
2769
- />
2770
- <span class="pf-v6-c-check__label">Paused</span>
2771
- </label>
2772
- <label
2773
- class="pf-v6-c-check pf-v5-c-select__menu-item"
2774
- id="select-checkbox-description-warning"
2775
- for="select-checkbox-description-warning-input"
2776
- >
2777
- <input
2778
- class="pf-v6-c-check__input"
2779
- type="checkbox"
2780
- id="select-checkbox-description-warning-input"
2781
- name="select-checkbox-description-warning-input"
2782
- />
2783
- <span class="pf-v6-c-check__label">Warning</span>
2784
- </label>
2785
- <label
2786
- class="pf-v6-c-check pf-v5-c-select__menu-item"
2787
- id="select-checkbox-description-restarted"
2788
- for="select-checkbox-description-restarted-input"
2789
- >
2790
- <input
2791
- class="pf-v6-c-check__input"
2792
- type="checkbox"
2793
- id="select-checkbox-description-restarted-input"
2794
- name="select-checkbox-description-restarted-input"
2795
- />
2796
- <span class="pf-v6-c-check__label">Restarted</span>
2797
- </label>
2798
- </fieldset>
2799
- </div>
2800
- </div>
2801
-
2802
- ```
2803
-
2804
- ### Usage
2805
-
2806
- | Class | Applied to | Outcome |
2807
- | -- | -- | -- |
2808
- | `.pf-v6-c-select__menu-item-description` | `<span>` | Initiates the select menu item description element. |
2809
- | `.pf-v6-c-select__menu-item-main` | `<span>` | Initiates the select menu item main element. Used when the description element is present. |
2810
- | `.pf-m-description` | `.pf-v6-c-select__menu-item` | Modifies the select menu item when selected to accommodate the description element. |
2811
-
2812
- ## Favorites
2813
-
2814
- ### Menu item favorites
2815
-
2816
- ```html
2817
- <div class="pf-v6-c-select pf-m-expanded">
2818
- <span id="select-favorites-label" hidden>Choose one</span>
2819
-
2820
- <button
2821
- class="pf-v6-c-select__toggle"
2822
- type="button"
2823
- id="select-favorites-toggle"
2824
- aria-haspopup="true"
2825
- aria-expanded="true"
2826
- aria-labelledby="select-favorites-label select-favorites-toggle"
2827
- >
2828
- <div class="pf-v6-c-select__toggle-wrapper">
2829
- <span class="pf-v6-c-select__toggle-text">Favorites</span>
2830
- </div>
2831
- <span class="pf-v6-c-select__toggle-arrow">
2832
- <i class="fas fa-caret-down" aria-hidden="true"></i>
2833
- </span>
2834
- </button>
2835
-
2836
- <div class="pf-v6-c-select__menu" aria-labelledby="select-favorites-label">
2837
- <div class="pf-v6-c-select__menu-search">
2838
- <div class="pf-v6-c-text-input-group">
2839
- <div class="pf-v6-c-text-input-group__main pf-m-icon">
2840
- <span class="pf-v6-c-text-input-group__text">
2841
- <span class="pf-v6-c-text-input-group__icon">
2842
- <i class="fas fa-fw fa-search"></i>
2843
- </span>
2844
- <input
2845
- class="pf-v6-c-text-input-group__text-input"
2846
- type="text"
2847
- placeholder="Search"
2848
- value
2849
- aria-label="Search input"
2850
- />
2851
- </span>
2852
- </div>
2853
- </div>
2854
- </div>
2855
- <hr class="pf-v6-c-divider" />
2856
- <div class="pf-v6-c-select__menu-group">
2857
- <div
2858
- class="pf-v6-c-select__menu-group-title"
2859
- aria-hidden="true"
2860
- id="select-favorites-group-title-1"
2861
- >Favorites</div>
2862
- <ul role="listbox" aria-labelledby="select-favorites-group-title-1">
2863
- <li
2864
- class="pf-v6-c-select__menu-wrapper pf-m-favorite"
2865
- role="presentation"
2866
- >
2867
- <button
2868
- class="pf-v6-c-select__menu-item pf-m-link pf-m-description"
2869
- role="option"
2870
- >
2871
- <span class="pf-v6-c-select__menu-item-main">Item 1</span>
2872
- <span
2873
- class="pf-v6-c-select__menu-item-description"
2874
- >This is a description.</span>
2875
- </button>
2876
- <button
2877
- class="pf-v6-c-select__menu-item pf-m-action pf-m-favorite-action"
2878
- role="option"
2879
- aria-label="Starred"
2880
- >
2881
- <span class="pf-v6-c-select__menu-item-action-icon">
2882
- <i class="fas fa-star" aria-hidden="true"></i>
2883
- </span>
2884
- </button>
2885
- </li>
2886
- <li
2887
- class="pf-v6-c-select__menu-wrapper pf-m-favorite"
2888
- role="presentation"
2889
- >
2890
- <button
2891
- class="pf-v6-c-select__menu-item pf-m-link"
2892
- role="option"
2893
- >Item 4</button>
2894
- <button
2895
- class="pf-v6-c-select__menu-item pf-m-action pf-m-favorite-action"
2896
- role="option"
2897
- aria-label="Starred"
2898
- >
2899
- <span class="pf-v6-c-select__menu-item-action-icon">
2900
- <i class="fas fa-star" aria-hidden="true"></i>
2901
- </span>
2902
- </button>
2903
- </li>
2904
- </ul>
2905
- </div>
2906
- <hr class="pf-v6-c-divider" />
2907
- <div class="pf-v6-c-select__menu-group">
2908
- <div
2909
- class="pf-v6-c-select__menu-group-title"
2910
- aria-hidden="true"
2911
- id="select-favorites-group-title-2"
2912
- >Group 1</div>
2913
- <ul role="listbox" aria-labelledby="select-favorites-group-title-2">
2914
- <li
2915
- class="pf-v6-c-select__menu-wrapper pf-m-favorite"
2916
- role="presentation"
2917
- >
2918
- <button
2919
- class="pf-v6-c-select__menu-item pf-m-link pf-m-description"
2920
- role="option"
2921
- >
2922
- <span class="pf-v6-c-select__menu-item-main">Item 1</span>
2923
- <span
2924
- class="pf-v6-c-select__menu-item-description"
2925
- >This is a description.</span>
2926
- </button>
2927
- <button
2928
- class="pf-v6-c-select__menu-item pf-m-action pf-m-favorite-action"
2929
- role="option"
2930
- aria-label="Starred"
2931
- >
2932
- <span class="pf-v6-c-select__menu-item-action-icon">
2933
- <i class="fas fa-star" aria-hidden="true"></i>
2934
- </span>
2935
- </button>
2936
- </li>
2937
- <li class="pf-v6-c-select__menu-wrapper" role="presentation">
2938
- <button
2939
- class="pf-v6-c-select__menu-item pf-m-selected pf-m-link"
2940
- role="option"
2941
- aria-selected="true"
2942
- >
2943
- Item 2
2944
- <span class="pf-v6-c-select__menu-item-icon">
2945
- <i class="fas fa-check" aria-hidden="true"></i>
2946
- </span>
2947
- </button>
2948
- <button
2949
- class="pf-v6-c-select__menu-item pf-m-action pf-m-favorite-action"
2950
- role="option"
2951
- aria-label="Not starred"
2952
- >
2953
- <span class="pf-v6-c-select__menu-item-action-icon">
2954
- <i class="fas fa-star" aria-hidden="true"></i>
2955
- </span>
2956
- </button>
2957
- </li>
2958
- <li
2959
- class="pf-v6-c-select__menu-wrapper pf-m-disabled"
2960
- role="presentation"
2961
- >
2962
- <button
2963
- class="pf-v6-c-select__menu-item pf-m-link"
2964
- role="option"
2965
- disabled
2966
- >Item 3 (disabled)</button>
2967
- <button
2968
- class="pf-v6-c-select__menu-item pf-m-action pf-m-favorite-action"
2969
- role="option"
2970
- disabled
2971
- aria-label="Not starred"
2972
- >
2973
- <span class="pf-v6-c-select__menu-item-action-icon">
2974
- <i class="fas fa-star" aria-hidden="true"></i>
2975
- </span>
2976
- </button>
2977
- </li>
2978
- </ul>
2979
- </div>
2980
- <hr class="pf-v6-c-divider" />
2981
- <div class="pf-v6-c-select__menu-group">
2982
- <div
2983
- class="pf-v6-c-select__menu-group-title"
2984
- aria-hidden="true"
2985
- id="select-favorites-group-title-3"
2986
- >Group 2</div>
2987
- <ul role="listbox" aria-labelledby="select-favorites-group-title-3">
2988
- <li
2989
- class="pf-v6-c-select__menu-wrapper pf-m-favorite"
2990
- role="presentation"
2991
- >
2992
- <button
2993
- class="pf-v6-c-select__menu-item pf-m-link"
2994
- role="option"
2995
- >Item 4</button>
2996
- <button
2997
- class="pf-v6-c-select__menu-item pf-m-action pf-m-favorite-action"
2998
- role="option"
2999
- aria-label="Starred"
3000
- >
3001
- <span class="pf-v6-c-select__menu-item-action-icon">
3002
- <i class="fas fa-star" aria-hidden="true"></i>
3003
- </span>
3004
- </button>
3005
- </li>
3006
- <li class="pf-v6-c-select__menu-wrapper" role="presentation">
3007
- <button
3008
- class="pf-v6-c-select__menu-item pf-m-link pf-m-description"
3009
- role="option"
3010
- >
3011
- <span class="pf-v6-c-select__menu-item-main">Item 5</span>
3012
- <span
3013
- class="pf-v6-c-select__menu-item-description"
3014
- >This is a description.</span>
3015
- </button>
3016
- <button
3017
- class="pf-v6-c-select__menu-item pf-m-action pf-m-favorite-action"
3018
- role="option"
3019
- aria-label="Not starred"
3020
- >
3021
- <span class="pf-v6-c-select__menu-item-action-icon">
3022
- <i class="fas fa-star" aria-hidden="true"></i>
3023
- </span>
3024
- </button>
3025
- </li>
3026
- </ul>
3027
- </div>
3028
- </div>
3029
- </div>
3030
-
3031
- ```
3032
-
3033
- ### Accessibility
3034
-
3035
- | Attribute | Applied to | Outcome |
3036
- | -- | -- | -- |
3037
- | `aria-label="Not starred"` | `.pf-v6-c-select__menu-wrapper > .pf-v6-c-select__menu-item.pf-m-action` | Provides an accessible label indicating that the favorite action is not selected. |
3038
- | `aria-label="Starred"` | `.pf-v6-c-select__menu-wrapper.pf-m-favorite > .pf-v6-c-select__menu-item.pf-m-action` | Provides an accessible label indicating that the favorite action is selected. |
3039
-
3040
- ### Usage
3041
-
3042
- | Class | Applied to | Outcome |
3043
- | -- | -- | -- |
3044
- | `.pf-v6-c-select__menu-wrapper` | `<li>` | Defines a menu wrapper for use with multiple actionable items in a single item row. |
3045
- | `.pf-m-favorite` | `.pf-v6-c-select__menu-wrapper` | Modifies wrapper to indicate that the item row has been favorited. |
3046
- | `.pf-m-favorite-action` | `.pf-v6-c-select__menu-item` | Modifies an item for favorite styles. |
3047
- | `.pf-m-link` | `.pf-v6-c-select__menu-item.pf-m-wrapper > .pf-v6-c-select__menu-item` | Modifies item for link styles. |
3048
- | `.pf-m-action` | `.pf-v6-c-select__menu-item.pf-m-wrapper > .pf-v6-c-select__menu-item` | Modifies item to for action styles. |
3049
-
3050
- ## View more
3051
-
3052
- ### View more menu item
3053
-
3054
- ```html
3055
- <div class="pf-v6-c-select pf-m-expanded">
3056
- <span id="select-single-view-more-label" hidden>Choose one</span>
3057
-
3058
- <button
3059
- class="pf-v6-c-select__toggle"
3060
- type="button"
3061
- id="select-single-view-more-toggle"
3062
- aria-haspopup="true"
3063
- aria-expanded="true"
3064
- aria-labelledby="select-single-view-more-label select-single-view-more-toggle"
3065
- >
3066
- <div class="pf-v6-c-select__toggle-wrapper">
3067
- <span class="pf-v6-c-select__toggle-text">Filter by status</span>
3068
- </div>
3069
- <span class="pf-v6-c-select__toggle-arrow">
3070
- <i class="fas fa-caret-down" aria-hidden="true"></i>
3071
- </span>
3072
- </button>
3073
-
3074
- <ul
3075
- class="pf-v6-c-select__menu"
3076
- role="listbox"
3077
- aria-labelledby="select-single-view-more-label"
3078
- >
3079
- <li role="presentation">
3080
- <button class="pf-v6-c-select__menu-item" role="option">Running</button>
3081
- </li>
3082
- <li role="presentation">
3083
- <button
3084
- class="pf-v6-c-select__menu-item pf-m-selected"
3085
- role="option"
3086
- aria-selected="true"
3087
- >
3088
- Stopped
3089
- <span class="pf-v6-c-select__menu-item-icon">
3090
- <i class="fas fa-check" aria-hidden="true"></i>
3091
- </span>
3092
- </button>
3093
- </li>
3094
- <li role="presentation">
3095
- <button class="pf-v6-c-select__menu-item" role="option">Down</button>
3096
- </li>
3097
- <li role="presentation">
3098
- <button class="pf-v6-c-select__menu-item" role="option">Degraded</button>
3099
- </li>
3100
- <li role="presentation">
3101
- <button class="pf-v6-c-select__menu-item" role="option">Needs maintenance</button>
3102
- </li>
3103
- <li role="presentation">
3104
- <button
3105
- class="pf-v6-c-select__menu-item pf-m-load"
3106
- role="option"
3107
- >View more</button>
3108
- </li>
3109
- </ul>
3110
- </div>
3111
-
3112
- ```
3113
-
3114
- ### Usage
3115
-
3116
- | Class | Applied to | Outcome |
3117
- | -- | -- | -- |
3118
- | `.pf-m-load` | `.pf-v6-c-select__menu-item` | Modifies a menu item for load styles. |
3119
-
3120
- ## Loading
3121
-
3122
- ### Loading menu item
3123
-
3124
- ```html
3125
- <div class="pf-v6-c-select pf-m-expanded">
3126
- <span id="select-single-loading-label" hidden>Choose one</span>
3127
-
3128
- <button
3129
- class="pf-v6-c-select__toggle"
3130
- type="button"
3131
- id="select-single-loading-toggle"
3132
- aria-haspopup="true"
3133
- aria-expanded="true"
3134
- aria-labelledby="select-single-loading-label select-single-loading-toggle"
3135
- >
3136
- <div class="pf-v6-c-select__toggle-wrapper">
3137
- <span class="pf-v6-c-select__toggle-text">Filter by status</span>
3138
- </div>
3139
- <span class="pf-v6-c-select__toggle-arrow">
3140
- <i class="fas fa-caret-down" aria-hidden="true"></i>
3141
- </span>
3142
- </button>
3143
-
3144
- <ul
3145
- class="pf-v6-c-select__menu"
3146
- role="listbox"
3147
- aria-labelledby="select-single-loading-label"
3148
- >
3149
- <li role="presentation">
3150
- <button class="pf-v6-c-select__menu-item" role="option">Running</button>
3151
- </li>
3152
- <li role="presentation">
3153
- <button
3154
- class="pf-v6-c-select__menu-item pf-m-selected"
3155
- role="option"
3156
- aria-selected="true"
3157
- >
3158
- Stopped
3159
- <span class="pf-v6-c-select__menu-item-icon">
3160
- <i class="fas fa-check" aria-hidden="true"></i>
3161
- </span>
3162
- </button>
3163
- </li>
3164
- <li role="presentation">
3165
- <button class="pf-v6-c-select__menu-item" role="option">Down</button>
3166
- </li>
3167
- <li role="presentation">
3168
- <button class="pf-v6-c-select__menu-item" role="option">Degraded</button>
3169
- </li>
3170
- <li role="presentation">
3171
- <button class="pf-v6-c-select__menu-item" role="option">Needs maintenance</button>
3172
- </li>
3173
- <li role="presentation" class="pf-v6-c-select__list-item pf-m-loading">
3174
- <button class="pf-v6-c-select__menu-item" role="option">
3175
- <svg
3176
- class="pf-v6-c-spinner pf-m-lg"
3177
- role="progressbar"
3178
- viewBox="0 0 100 100"
3179
- aria-label="Loading items"
3180
- >
3181
- <circle
3182
- class="pf-v6-c-spinner__path"
3183
- cx="50"
3184
- cy="50"
3185
- r="45"
3186
- fill="none"
3187
- />
3188
- </svg>
3189
- </button>
3190
- </li>
3191
- </ul>
3192
- </div>
3193
-
3194
- ```
3195
-
3196
- ### Usage
3197
-
3198
- | Class | Applied to | Outcome |
3199
- | -- | -- | -- |
3200
- | `.pf-v6-c-select__list-item` | `<li>` | Defines a list item element in the select menu. |
3201
- | `.pf-m-loading` | `.pf-v6-c-select__list-item` | Modifies a list item for loading styles. |
3202
-
3203
- ## Footer
3204
-
3205
- ### Menu footer
3206
-
3207
- ```html
3208
- <div class="pf-v6-c-select pf-m-expanded">
3209
- <span id="select-single-footer-label" hidden>Choose one</span>
3210
-
3211
- <button
3212
- class="pf-v6-c-select__toggle"
3213
- type="button"
3214
- id="select-single-footer-toggle"
3215
- aria-haspopup="true"
3216
- aria-expanded="true"
3217
- aria-labelledby="select-single-footer-label select-single-footer-toggle"
3218
- >
3219
- <div class="pf-v6-c-select__toggle-wrapper">
3220
- <span class="pf-v6-c-select__toggle-text">Filter by status</span>
3221
- </div>
3222
- <span class="pf-v6-c-select__toggle-arrow">
3223
- <i class="fas fa-caret-down" aria-hidden="true"></i>
3224
- </span>
3225
- </button>
3226
-
3227
- <div class="pf-v6-c-select__menu">
3228
- <ul
3229
- class="pf-v6-c-select__menu-list"
3230
- role="listbox"
3231
- aria-labelledby="select-single-footer-label"
3232
- >
3233
- <li role="presentation">
3234
- <button class="pf-v6-c-select__menu-item" role="option">Running</button>
3235
- </li>
3236
- <li role="presentation">
3237
- <button
3238
- class="pf-v6-c-select__menu-item pf-m-selected"
3239
- role="option"
3240
- aria-selected="true"
3241
- >
3242
- Stopped
3243
- <span class="pf-v6-c-select__menu-item-icon">
3244
- <i class="fas fa-check" aria-hidden="true"></i>
3245
- </span>
3246
- </button>
3247
- </li>
3248
- <li role="presentation">
3249
- <button class="pf-v6-c-select__menu-item" role="option">Down</button>
3250
- </li>
3251
- <li role="presentation">
3252
- <button class="pf-v6-c-select__menu-item" role="option">Degraded</button>
3253
- </li>
3254
- <li role="presentation">
3255
- <button
3256
- class="pf-v6-c-select__menu-item"
3257
- role="option"
3258
- >Needs maintenance</button>
3259
- </li>
3260
- </ul>
3261
- <div class="pf-v6-c-select__menu-footer">
3262
- <button class="pf-v6-c-button pf-m-link pf-m-inline" type="button">Action</button>
3263
- </div>
3264
- </div>
3265
- </div>
3266
-
3267
- ```
3268
-
3269
- ### Usage
3270
-
3271
- | Class | Applied to | Outcome |
3272
- | -- | -- | -- |
3273
- | `.pf-v6-c-select__menu-footer` | `<div>` | Defines a menu footer. |
3274
- | `.pf-v6-c-select__menu-list` | `<ul>` | Defines the menu list when the list is placed in `div.pf-v6-c-select__menu`. |
3275
-
3276
- ## Placeholder
3277
-
3278
- ### Placeholder collapsed
3279
-
3280
- ```html
3281
- <div class="pf-v6-c-select">
3282
- <span id="select-placeholder-collapsed-label" hidden>Choose one</span>
3283
-
3284
- <button
3285
- class="pf-v6-c-select__toggle pf-m-placeholder"
3286
- type="button"
3287
- id="select-placeholder-collapsed-toggle"
3288
- aria-haspopup="true"
3289
- aria-expanded="false"
3290
- aria-labelledby="select-placeholder-collapsed-label select-placeholder-collapsed-toggle"
3291
- >
3292
- <div class="pf-v6-c-select__toggle-wrapper">
3293
- <span class="pf-v6-c-select__toggle-text">Filter by status</span>
3294
- </div>
3295
- <span class="pf-v6-c-select__toggle-arrow">
3296
- <i class="fas fa-caret-down" aria-hidden="true"></i>
3297
- </span>
3298
- </button>
3299
-
3300
- <ul
3301
- class="pf-v6-c-select__menu"
3302
- role="listbox"
3303
- aria-labelledby="select-placeholder-collapsed-label"
3304
- hidden
3305
- >
3306
- <li role="presentation">
3307
- <button class="pf-v6-c-select__menu-item" role="option">Running</button>
3308
- </li>
3309
- <li role="presentation">
3310
- <button
3311
- class="pf-v6-c-select__menu-item pf-m-selected"
3312
- role="option"
3313
- aria-selected="true"
3314
- >
3315
- Stopped
3316
- <span class="pf-v6-c-select__menu-item-icon">
3317
- <i class="fas fa-check" aria-hidden="true"></i>
3318
- </span>
3319
- </button>
3320
- </li>
3321
- <li role="presentation">
3322
- <button class="pf-v6-c-select__menu-item" role="option">Down</button>
3323
- </li>
3324
- <li role="presentation">
3325
- <button class="pf-v6-c-select__menu-item" role="option">Degraded</button>
3326
- </li>
3327
- <li role="presentation">
3328
- <button class="pf-v6-c-select__menu-item" role="option">Needs maintenance</button>
3329
- </li>
3330
- </ul>
3331
- </div>
3332
-
3333
- ```
3334
-
3335
- ### Placeholder expanded
3336
-
3337
- ```html
3338
- <div class="pf-v6-c-select pf-m-expanded">
3339
- <span id="select-placeholder-expanded-label" hidden>Choose one</span>
3340
-
3341
- <button
3342
- class="pf-v6-c-select__toggle pf-m-placeholder"
3343
- type="button"
3344
- id="select-placeholder-expanded-toggle"
3345
- aria-haspopup="true"
3346
- aria-expanded="true"
3347
- aria-labelledby="select-placeholder-expanded-label select-placeholder-expanded-toggle"
3348
- >
3349
- <div class="pf-v6-c-select__toggle-wrapper">
3350
- <span class="pf-v6-c-select__toggle-text">Filter by status</span>
3351
- </div>
3352
- <span class="pf-v6-c-select__toggle-arrow">
3353
- <i class="fas fa-caret-down" aria-hidden="true"></i>
3354
- </span>
3355
- </button>
3356
-
3357
- <ul
3358
- class="pf-v6-c-select__menu"
3359
- role="listbox"
3360
- aria-labelledby="select-placeholder-expanded-label"
3361
- >
3362
- <li role="presentation">
3363
- <button class="pf-v6-c-select__menu-item" role="option">Running</button>
3364
- </li>
3365
- <li role="presentation">
3366
- <button
3367
- class="pf-v6-c-select__menu-item pf-m-selected"
3368
- role="option"
3369
- aria-selected="true"
3370
- >
3371
- Stopped
3372
- <span class="pf-v6-c-select__menu-item-icon">
3373
- <i class="fas fa-check" aria-hidden="true"></i>
3374
- </span>
3375
- </button>
3376
- </li>
3377
- <li role="presentation">
3378
- <button class="pf-v6-c-select__menu-item" role="option">Down</button>
3379
- </li>
3380
- <li role="presentation">
3381
- <button class="pf-v6-c-select__menu-item" role="option">Degraded</button>
3382
- </li>
3383
- <li role="presentation">
3384
- <button class="pf-v6-c-select__menu-item" role="option">Needs maintenance</button>
3385
- </li>
3386
- </ul>
3387
- </div>
3388
-
3389
- ```
3390
-
3391
- ### Placeholder item disabled
3392
-
3393
- ```html
3394
- <div class="pf-v6-c-select pf-m-expanded">
3395
- <span id="select-placeholder-item-disabled-label" hidden>Choose one</span>
3396
-
3397
- <button
3398
- class="pf-v6-c-select__toggle pf-m-placeholder"
3399
- type="button"
3400
- id="select-placeholder-item-disabled-toggle"
3401
- aria-haspopup="true"
3402
- aria-expanded="true"
3403
- aria-labelledby="select-placeholder-item-disabled-label select-placeholder-item-disabled-toggle"
3404
- >
3405
- <div class="pf-v6-c-select__toggle-wrapper">
3406
- <span class="pf-v6-c-select__toggle-text">Filter by status</span>
3407
- </div>
3408
- <span class="pf-v6-c-select__toggle-arrow">
3409
- <i class="fas fa-caret-down" aria-hidden="true"></i>
3410
- </span>
3411
- </button>
3412
-
3413
- <ul
3414
- class="pf-v6-c-select__menu"
3415
- role="listbox"
3416
- aria-labelledby="select-placeholder-item-disabled-label"
3417
- >
3418
- <li role="presentation">
3419
- <button
3420
- class="pf-v6-c-select__menu-item"
3421
- role="option"
3422
- disabled
3423
- >Filter by status</button>
3424
- </li>
3425
- <li role="presentation">
3426
- <button class="pf-v6-c-select__menu-item" role="option">Running</button>
3427
- </li>
3428
- <li role="presentation">
3429
- <button
3430
- class="pf-v6-c-select__menu-item pf-m-selected"
3431
- role="option"
3432
- aria-selected="true"
3433
- >
3434
- Stopped
3435
- <span class="pf-v6-c-select__menu-item-icon">
3436
- <i class="fas fa-check" aria-hidden="true"></i>
3437
- </span>
3438
- </button>
3439
- </li>
3440
- <li role="presentation">
3441
- <button class="pf-v6-c-select__menu-item" role="option">Down</button>
3442
- </li>
3443
- <li role="presentation">
3444
- <button class="pf-v6-c-select__menu-item" role="option">Degraded</button>
3445
- </li>
3446
- <li role="presentation">
3447
- <button class="pf-v6-c-select__menu-item" role="option">Needs maintenance</button>
3448
- </li>
3449
- </ul>
3450
- </div>
3451
-
3452
- ```
3453
-
3454
- ### Placeholder item enabled
3455
-
3456
- ```html
3457
- <div class="pf-v6-c-select pf-m-expanded">
3458
- <span id="select-placeholder-item-enabled-label" hidden>Choose one</span>
3459
-
3460
- <button
3461
- class="pf-v6-c-select__toggle pf-m-placeholder"
3462
- type="button"
3463
- id="select-placeholder-item-enabled-toggle"
3464
- aria-haspopup="true"
3465
- aria-expanded="true"
3466
- aria-labelledby="select-placeholder-item-enabled-label select-placeholder-item-enabled-toggle"
3467
- >
3468
- <div class="pf-v6-c-select__toggle-wrapper">
3469
- <span class="pf-v6-c-select__toggle-text">Filter by status</span>
3470
- </div>
3471
- <span class="pf-v6-c-select__toggle-arrow">
3472
- <i class="fas fa-caret-down" aria-hidden="true"></i>
3473
- </span>
3474
- </button>
3475
-
3476
- <ul
3477
- class="pf-v6-c-select__menu"
3478
- role="listbox"
3479
- aria-labelledby="select-placeholder-item-enabled-label"
3480
- >
3481
- <li role="presentation">
3482
- <button class="pf-v6-c-select__menu-item" role="option">Filter by status</button>
3483
- </li>
3484
- <li role="presentation">
3485
- <button class="pf-v6-c-select__menu-item" role="option">Running</button>
3486
- </li>
3487
- <li role="presentation">
3488
- <button
3489
- class="pf-v6-c-select__menu-item pf-m-selected"
3490
- role="option"
3491
- aria-selected="true"
3492
- >
3493
- Stopped
3494
- <span class="pf-v6-c-select__menu-item-icon">
3495
- <i class="fas fa-check" aria-hidden="true"></i>
3496
- </span>
3497
- </button>
3498
- </li>
3499
- <li role="presentation">
3500
- <button class="pf-v6-c-select__menu-item" role="option">Down</button>
3501
- </li>
3502
- <li role="presentation">
3503
- <button class="pf-v6-c-select__menu-item" role="option">Degraded</button>
3504
- </li>
3505
- <li role="presentation">
3506
- <button class="pf-v6-c-select__menu-item" role="option">Needs maintenance</button>
3507
- </li>
3508
- </ul>
3509
- </div>
3510
-
3511
- ```
3512
-
3513
- ### Usage
3514
-
3515
- | Class | Applied to | Outcome |
3516
- | -- | -- | -- |
3517
- | `.pf-m-placeholder` | `.pf-v6-c-select__toggle` | Modifies the toggle for placeholder styles. |
3518
-
3519
- ## Documentation
3520
-
3521
- ### Overview
3522
-
3523
- There are 4 variants of the select component: single select, single select with typeahead, multiple select with typeahead, and a multiple checkbox select. See the examples for more details about each variation.
3524
-
3525
- The single select should be used when the user is selecting an option from a list of items. Although the presentation is similar to the basic dropdown, the underlying HTML and ARIA tag structure is specific to a select list. The selection will replace the default text in the toggle. The selection is highlighted with the list is opened. If the selection is cleared elsewhere (i.e. from the filter bar), the default text is restored.