@patternfly/patternfly 5.0.0-alpha.4 → 5.0.0-alpha.40
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.
- package/RELEASE-NOTES.md +18 -1
- package/assets/icons/iconUnicodes.json +1 -0
- package/assets/images/pfbg-icon.svg +1 -0
- package/assets/pficon/pficon.scss +7 -2
- package/assets/pficon/pficon.woff2 +0 -0
- package/base/_base.scss +0 -18
- package/base/_chart-globals.scss +0 -4
- package/base/_common.scss +0 -22
- package/base/_fa-icons.scss +1 -2
- package/base/_fonts.scss +22 -27
- package/base/_globals.scss +92 -86
- package/base/_icons.scss +1 -28
- package/base/_svg-icons.scss +6 -0
- package/base/_variables.scss +4 -4
- package/base/patternfly-common.css +0 -10
- package/base/patternfly-fa-icons.css +1 -1
- package/base/patternfly-fonts.css +17 -17
- package/base/patternfly-globals.css +35 -41
- package/base/patternfly-icons.css +8 -22
- package/base/patternfly-pf-icons.css +6 -2
- package/base/patternfly-themes.css +0 -42
- package/base/patternfly-variables.css +3 -3
- package/base/themes/dark/_globals.scss +1 -1
- package/base/themes/dark/_variables.scss +1 -1
- package/components/AboutModalBox/about-modal-box.css +20 -50
- package/components/AboutModalBox/about-modal-box.scss +22 -14
- package/components/Accordion/accordion.css +2 -0
- package/components/Accordion/accordion.scss +2 -0
- package/components/Alert/alert.css +17 -8
- package/components/Alert/alert.scss +21 -7
- package/components/Alert/themes/dark/alert.scss +1 -1
- package/components/AppLauncher/app-launcher.css +2 -0
- package/components/AppLauncher/app-launcher.scss +2 -0
- package/components/Avatar/avatar.scss +2 -2
- package/components/BackgroundImage/background-image.css +8 -35
- package/components/BackgroundImage/background-image.scss +17 -43
- package/components/Banner/banner.css +14 -52
- package/components/Banner/banner.scss +9 -13
- package/components/Breadcrumb/breadcrumb.css +2 -0
- package/components/Breadcrumb/breadcrumb.scss +2 -0
- package/components/CalendarMonth/calendar-month.css +2 -2
- package/components/CalendarMonth/calendar-month.scss +3 -3
- package/components/Card/card.css +115 -50
- package/components/Card/card.scss +164 -63
- package/components/Chip/chip.css +33 -24
- package/components/Chip/chip.scss +40 -31
- package/components/ChipGroup/chip-group.css +27 -17
- package/components/ChipGroup/chip-group.scss +36 -22
- package/components/Content/content.css +11 -5
- package/components/Content/content.scss +17 -9
- package/components/ContextSelector/context-selector.css +13 -6
- package/components/ContextSelector/context-selector.scss +14 -7
- package/components/DataList/data-list-grid.css +7 -7
- package/components/DataList/data-list-grid.scss +1 -1
- package/components/DataList/data-list.css +46 -40
- package/components/DataList/data-list.scss +37 -28
- package/components/DatePicker/date-picker.css +0 -8
- package/components/DatePicker/date-picker.scss +0 -9
- package/components/DescriptionList/description-list.css +7 -7
- package/components/DescriptionList/description-list.scss +7 -7
- package/components/Divider/divider.css +2 -2
- package/components/Divider/divider.scss +3 -3
- package/components/Drawer/drawer.css +15 -16
- package/components/Drawer/drawer.scss +2 -3
- package/components/Dropdown/dropdown.css +26 -25
- package/components/Dropdown/dropdown.scss +17 -18
- package/components/DualListSelector/dual-list-selector.css +1 -1
- package/components/DualListSelector/dual-list-selector.scss +1 -1
- package/components/EmptyState/empty-state.css +46 -52
- package/components/EmptyState/empty-state.scss +58 -57
- package/components/ExpandableSection/expandable-section.css +2 -0
- package/components/ExpandableSection/expandable-section.scss +2 -0
- package/components/Form/form.css +14 -12
- package/components/Form/form.scss +9 -7
- package/components/FormControl/form-control.css +2 -5
- package/components/FormControl/themes/dark/form-control.scss +2 -6
- package/components/HelperText/helper-text.css +4 -0
- package/components/HelperText/helper-text.scss +5 -0
- package/components/Hint/hint.css +2 -2
- package/components/Hint/hint.scss +2 -2
- package/components/Icon/icon.css +3 -3
- package/components/Icon/icon.scss +3 -3
- package/components/InputGroup/input-group.css +61 -85
- package/components/InputGroup/input-group.scss +55 -61
- package/components/InputGroup/themes/dark/input-group.scss +11 -25
- package/components/Label/label.css +49 -36
- package/components/Label/label.scss +53 -38
- package/components/Label/themes/dark/label.scss +2 -2
- package/components/LabelGroup/label-group.css +26 -22
- package/components/LabelGroup/label-group.scss +31 -26
- package/components/LogViewer/log-viewer.css +0 -38
- package/components/Login/login.css +20 -60
- package/components/Login/login.scss +16 -18
- package/components/Login/themes/dark/login.scss +4 -0
- package/components/Masthead/masthead.css +4 -42
- package/components/Masthead/masthead.scss +4 -4
- package/components/Menu/menu.css +9 -6
- package/components/Menu/menu.scss +34 -31
- package/components/MenuToggle/menu-toggle.css +3 -1
- package/components/MenuToggle/menu-toggle.scss +3 -1
- package/components/ModalBox/modal-box.css +12 -11
- package/components/ModalBox/modal-box.scss +14 -14
- package/components/MultipleFileUpload/multiple-file-upload.css +6 -6
- package/components/MultipleFileUpload/multiple-file-upload.scss +6 -6
- package/components/Nav/nav.css +1 -1
- package/components/Nav/nav.scss +2 -2
- package/components/NotificationDrawer/notification-drawer.css +8 -8
- package/components/NotificationDrawer/notification-drawer.scss +8 -8
- package/components/OptionsMenu/options-menu.css +8 -10
- package/components/OptionsMenu/options-menu.scss +9 -11
- package/components/Page/page.css +101 -122
- package/components/Page/page.scss +49 -21
- package/components/Pagination/pagination.css +2 -110
- package/components/Pagination/pagination.scss +0 -6
- package/components/Popover/popover.css +31 -37
- package/components/Popover/popover.scss +32 -37
- package/components/Popover/themes/dark/popover.scss +3 -9
- package/components/Progress/progress.css +13 -10
- package/components/Progress/progress.scss +13 -10
- package/components/ProgressStepper/progress-stepper.css +5 -5
- package/components/ProgressStepper/progress-stepper.scss +5 -5
- package/components/SearchInput/search-input.css +4 -2
- package/components/SearchInput/search-input.scss +4 -2
- package/components/Select/select.css +1 -1
- package/components/Select/select.scss +1 -1
- package/components/Sidebar/sidebar.css +69 -26
- package/components/Sidebar/sidebar.scss +84 -27
- package/components/SimpleList/simple-list.css +1 -1
- package/components/SimpleList/simple-list.scss +2 -2
- package/components/Spinner/spinner.css +4 -4
- package/components/Spinner/spinner.scss +4 -4
- package/components/Table/table-grid.css +28 -28
- package/components/Table/table-scrollable.css +31 -26
- package/components/Table/table-scrollable.scss +33 -28
- package/components/Table/table-tree-view.css +14 -4
- package/components/Table/table-tree-view.scss +15 -0
- package/components/Table/table.css +67 -65
- package/components/Table/table.scss +65 -62
- package/components/Tabs/tabs.css +0 -4
- package/components/Tabs/tabs.scss +0 -7
- package/components/TextInputGroup/text-input-group.css +6 -4
- package/components/TextInputGroup/text-input-group.scss +6 -5
- package/components/Tile/tile.css +1 -1
- package/components/Tile/tile.scss +1 -1
- package/components/Timestamp/timestamp.css +3 -3
- package/components/Timestamp/timestamp.scss +3 -3
- package/components/Toolbar/toolbar.css +78 -43
- package/components/Toolbar/toolbar.scss +50 -10
- package/components/Tooltip/themes/dark/tooltip.scss +1 -11
- package/components/Tooltip/tooltip.css +7 -12
- package/components/Tooltip/tooltip.scss +6 -3
- package/components/TreeView/tree-view.css +7 -15
- package/components/TreeView/tree-view.scss +7 -18
- package/components/Wizard/wizard.css +16 -39
- package/components/Wizard/wizard.scss +20 -2
- package/docs/components/AboutModalBox/examples/AboutModalBox.md +20 -14
- package/docs/components/Accordion/examples/Accordion.md +12 -12
- package/docs/components/ActionList/examples/ActionList.md +6 -6
- package/docs/components/Alert/examples/Alert.md +29 -29
- package/docs/components/AlertGroup/examples/AlertGroup.md +15 -15
- package/docs/components/AppLauncher/examples/application-launcher.md +52 -46
- package/docs/components/Avatar/examples/Avatar.md +11 -11
- package/docs/components/BackToTop/examples/BackToTop.md +4 -4
- package/docs/components/Backdrop/examples/Backdrop.md +4 -4
- package/docs/components/BackgroundImage/examples/BackgroundImage.md +13 -29
- package/docs/components/Badge/examples/Badge.md +5 -5
- package/docs/components/Banner/examples/Banner.md +8 -8
- package/docs/components/Brand/examples/Brand.md +9 -9
- package/docs/components/Breadcrumb/examples/Breadcrumb.md +20 -20
- package/docs/components/Button/examples/Button.md +35 -35
- package/docs/components/CalendarMonth/examples/CalendarMonth.md +301 -284
- package/docs/components/Card/examples/Card.md +676 -116
- package/docs/components/Check/examples/Check.md +16 -19
- package/docs/components/Chip/examples/Chip.md +70 -52
- package/docs/components/ChipGroup/examples/ChipGroup.md +452 -673
- package/docs/components/ClipboardCopy/examples/ClipboardCopy.md +22 -22
- package/docs/components/CodeBlock/examples/CodeBlock.md +9 -9
- package/docs/components/CodeEditor/examples/CodeEditor.md +54 -35
- package/docs/components/Content/examples/Content.md +37 -9
- package/docs/components/ContextSelector/examples/context-selector.css +5 -1
- package/docs/components/ContextSelector/examples/context-selector.md +87 -80
- package/docs/components/DataList/examples/DataList.md +239 -202
- package/docs/components/DatePicker/examples/DatePicker.md +139 -104
- package/docs/components/DescriptionList/examples/DescriptionList.md +24 -24
- package/docs/components/Divider/examples/Divider.md +10 -10
- package/docs/components/DragDrop/examples/DragDrop.md +5 -5
- package/docs/components/Drawer/examples/Drawer.md +43 -43
- package/docs/components/Dropdown/examples/Dropdown.css +5 -2
- package/docs/components/Dropdown/examples/Dropdown.md +125 -100
- package/docs/components/DualListSelector/examples/DualListSelector.md +201 -197
- package/docs/components/EmptyState/examples/EmptyState.md +130 -82
- package/docs/components/ExpandableSection/examples/ExpandableSection.md +23 -23
- package/docs/components/FileUpload/examples/FileUpload.md +146 -105
- package/docs/components/Form/examples/Form.md +152 -130
- package/docs/components/FormControl/examples/FormControl.md +21 -20
- package/docs/components/HelperText/examples/HelperText.md +24 -35
- package/docs/components/Hint/examples/Hint.md +7 -7
- package/docs/components/Icon/examples/Icon.md +11 -12
- package/docs/components/InlineEdit/examples/InlineEdit.md +29 -27
- package/docs/components/InputGroup/examples/InputGroup.md +229 -179
- package/docs/components/JumpLinks/examples/JumpLinks.md +35 -35
- package/docs/components/Label/examples/Label.md +1427 -746
- package/docs/components/LabelGroup/examples/LabelGroup.md +295 -242
- package/docs/components/List/examples/List.md +18 -18
- package/docs/components/LogViewer/examples/LogViewer.md +79 -74
- package/docs/components/Login/examples/Login.md +103 -181
- package/docs/components/Masthead/examples/masthead.md +9 -9
- package/docs/components/Menu/examples/Menu.md +83 -80
- package/docs/components/MenuToggle/examples/MenuToggle.md +29 -28
- package/docs/components/ModalBox/examples/ModalBox.md +113 -92
- package/docs/components/MultipleFileUpload/examples/MultipleFileUpload.md +27 -26
- package/docs/components/Nav/examples/Navigation.md +69 -69
- package/docs/components/NotificationBadge/examples/NotificationBadge.md +8 -8
- package/docs/components/NotificationDrawer/examples/NotificationDrawer.md +64 -64
- package/docs/components/NumberInput/examples/NumberInput.md +311 -239
- package/docs/components/OptionsMenu/examples/options-menu.md +28 -28
- package/docs/components/OverflowMenu/examples/overflow-menu.md +25 -25
- package/docs/components/Page/examples/Page.css +7 -1
- package/docs/components/Page/examples/Page.md +81 -54
- package/docs/components/Pagination/examples/Pagination.md +27 -27
- package/docs/components/Panel/examples/Panel.md +10 -10
- package/docs/components/Popover/examples/Popover.md +206 -149
- package/docs/components/Progress/examples/Progress.md +32 -61
- package/docs/components/ProgressStepper/examples/ProgressStepper.md +45 -39
- package/docs/components/Radio/examples/Radio.md +12 -11
- package/docs/components/SearchInput/examples/SearchInput.md +185 -148
- package/docs/components/Select/examples/Select.md +368 -313
- package/docs/components/Sidebar/examples/Sidebar.md +70 -14
- package/docs/components/SimpleList/examples/SimpleList.md +15 -15
- package/docs/components/Skeleton/examples/Skeleton.md +8 -8
- package/docs/components/SkipToContent/examples/SkipToContent.md +5 -5
- package/docs/components/Slider/examples/Slider.md +84 -62
- package/docs/components/Spinner/examples/Spinner.md +24 -24
- package/docs/components/Switch/examples/Switch.md +19 -19
- package/docs/components/TabContent/examples/TabContent.md +13 -13
- package/docs/components/Table/examples/Table.css +4 -0
- package/docs/components/Table/examples/Table.md +5212 -5750
- package/docs/components/Tabs/examples/Tabs.md +155 -155
- package/docs/components/TextInputGroup/examples/TextInputGroup.md +523 -406
- package/docs/components/Tile/examples/Tile.md +16 -17
- package/docs/components/Timestamp/examples/Timestamp.md +5 -5
- package/docs/components/Title/examples/Title.md +17 -17
- package/docs/components/ToggleGroup/examples/toggle-group.md +13 -13
- package/docs/components/Toolbar/examples/Toolbar.md +848 -726
- package/docs/components/Tooltip/examples/Tooltip.md +10 -10
- package/docs/components/TreeView/examples/TreeView.md +34 -34
- package/docs/components/Truncate/examples/Truncate.md +4 -5
- package/docs/components/Wizard/examples/Wizard.md +119 -127
- package/docs/demos/AboutModal/examples/AboutModal.md +4 -5
- package/docs/demos/Alert/examples/Alert.md +118 -71
- package/docs/demos/BackToTop/examples/BackToTop.md +4 -4
- package/docs/demos/Banner/examples/Banner.md +8 -9
- package/docs/demos/Card/examples/Card.md +216 -153
- package/docs/demos/CardView/examples/CardView.md +57 -30
- package/docs/demos/ContextSelector/examples/ContextSelector.md +18 -18
- package/docs/demos/Dashboard/examples/Dashboard.md +51 -33
- package/docs/demos/DataList/examples/DataList.md +312 -255
- package/docs/demos/DescriptionList/examples/DescriptionList.md +33 -22
- package/docs/demos/Drawer/examples/Drawer.md +24 -22
- package/docs/demos/Form/examples/BasicForms.md +220 -213
- package/docs/demos/HelperText/examples/HelperText.md +16 -14
- package/docs/demos/JumpLinks/examples/JumpLinks.md +28 -28
- package/docs/demos/Masthead/examples/Masthead.md +302 -284
- package/docs/demos/Modal/examples/Modal.md +54 -66
- package/docs/demos/Nav/examples/Nav.md +47 -47
- package/docs/demos/NotificationDrawer/examples/NotificationDrawer.md +70 -58
- package/docs/demos/Page/examples/Page.md +982 -51
- package/docs/demos/PasswordGenerator/examples/PasswordGenerator.md +22 -18
- package/docs/demos/PasswordStrength/examples/PasswordStrength.md +121 -106
- package/docs/demos/PrimaryDetail/examples/PrimaryDetail.md +345 -311
- package/docs/demos/Skeleton/examples/Skeleton.md +4 -4
- package/docs/demos/Table/examples/Table.md +3323 -1288
- package/docs/demos/Tabs/examples/Tabs.md +141 -90
- package/docs/demos/Toolbar/examples/Toolbar.md +1994 -329
- package/docs/demos/Wizard/examples/Wizard.md +289 -266
- package/docs/layouts/Bullseye/examples/Bullseye.md +4 -4
- package/docs/layouts/Flex/examples/Flex.md +98 -98
- package/docs/layouts/Gallery/examples/Gallery.md +7 -7
- package/docs/layouts/Grid/examples/Grid.md +9 -9
- package/docs/layouts/Level/examples/Level.md +5 -5
- package/docs/layouts/Split/examples/Split.md +7 -7
- package/docs/layouts/Stack/examples/Stack.md +6 -6
- package/docs/utilities/Accessibility/examples/Accessibility.md +5 -5
- package/docs/utilities/Alignment/examples/Alignment.md +7 -7
- package/docs/utilities/BackgroundColor/examples/BackgroundColor.md +13 -13
- package/docs/utilities/BoxShadow/examples/box-shadow.md +23 -23
- package/docs/utilities/Display/examples/Display.md +12 -12
- package/docs/utilities/Flex/examples/Flex.md +35 -35
- package/docs/utilities/Float/examples/Float.md +5 -5
- package/docs/utilities/Sizing/examples/Sizing.md +51 -51
- package/docs/utilities/Spacing/examples/Spacing.md +35 -35
- package/docs/utilities/Text/examples/Text.md +31 -31
- package/icons/{pf-icons.json → pf-icons.mjs} +2 -1
- package/layouts/Gallery/gallery.css +1 -1
- package/layouts/Gallery/gallery.scss +1 -1
- package/layouts/Grid/grid.css +7 -7
- package/layouts/Grid/grid.scss +2 -2
- package/package.json +59 -65
- package/patternfly-addons.css +48 -48
- package/{patternfly-base-no-reset.css → patternfly-base-no-globals.css} +28 -73
- package/{patternfly-base-no-reset.scss → patternfly-base-no-globals.scss} +1 -0
- package/patternfly-base.css +63 -114
- package/{patternfly-no-reset.css → patternfly-no-globals.css} +1179 -2293
- package/{patternfly-no-reset.scss → patternfly-no-globals.scss} +1 -0
- package/patternfly.css +1207 -2327
- package/patternfly.min.css +1 -1
- package/patternfly.min.css.map +1 -1
- package/sass-utilities/functions.scss +8 -24
- package/sass-utilities/mixins.scss +15 -39
- package/sass-utilities/placeholders.scss +0 -23
- package/sass-utilities/scss-variables.scss +5 -6
- package/sass-utilities/themes/dark/placeholders.scss +0 -22
- package/sass-utilities/themes/dark/scss-variables.scss +1 -1
- package/utilities/Spacing/spacing.scss +2 -2
- package/utilities/Text/text.css +48 -48
- package/utilities/Text/text.scss +6 -6
- package/utilities/Text/themes/dark/text.scss +2 -2
- package/assets/fonts/RedHatDisplay/RedHatDisplay-Black.woff +0 -0
- package/assets/fonts/RedHatDisplay/RedHatDisplay-BlackItalic.woff +0 -0
- package/assets/fonts/RedHatDisplay/RedHatDisplay-Bold.woff +0 -0
- package/assets/fonts/RedHatDisplay/RedHatDisplay-BoldItalic.woff +0 -0
- package/assets/fonts/RedHatDisplay/RedHatDisplay-Italic.woff +0 -0
- package/assets/fonts/RedHatDisplay/RedHatDisplay-Medium.woff +0 -0
- package/assets/fonts/RedHatDisplay/RedHatDisplay-MediumItalic.woff +0 -0
- package/assets/fonts/RedHatDisplay/RedHatDisplay-Regular.woff +0 -0
- package/assets/fonts/RedHatText/RedHatText-Bold.woff +0 -0
- package/assets/fonts/RedHatText/RedHatText-BoldItalic.woff +0 -0
- package/assets/fonts/RedHatText/RedHatText-Italic.woff +0 -0
- package/assets/fonts/RedHatText/RedHatText-Medium.woff +0 -0
- package/assets/fonts/RedHatText/RedHatText-MediumItalic.woff +0 -0
- package/assets/fonts/RedHatText/RedHatText-Regular.woff +0 -0
- package/assets/fonts/webfonts/fa-solid-900.woff +0 -0
- package/assets/pficon/pficon.woff +0 -0
- package/base/_shield-inheritable.scss +0 -69
- package/base/_shield-noninheritable.scss +0 -13
- package/base/patternfly-shield-inheritable.css +0 -66
- package/base/patternfly-shield-inheritable.scss +0 -4
- package/base/patternfly-shield-noninheritable.css +0 -9
- package/base/patternfly-shield-noninheritable.scss +0 -4
- package/sass-utilities/bs-variables.scss +0 -709
|
@@ -175,21 +175,77 @@ cssPrefix: pf-c-sidebar
|
|
|
175
175
|
|
|
176
176
|
```
|
|
177
177
|
|
|
178
|
+
### Border
|
|
179
|
+
|
|
180
|
+
```html
|
|
181
|
+
<div class="pf-c-sidebar pf-m-gutter">
|
|
182
|
+
<div class="pf-c-sidebar__main pf-m-border">
|
|
183
|
+
<div class="pf-c-sidebar__panel">Sidebar panel</div>
|
|
184
|
+
<div class="pf-c-sidebar__content">
|
|
185
|
+
<div class="pf-c-content">
|
|
186
|
+
<p>Default layout.</p>
|
|
187
|
+
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse dapibus nulla id augue dictum commodo. Donec mollis arcu massa, sollicitudin venenatis est rutrum vitae. Integer pulvinar ligula at augue mollis, ac pulvinar arcu semper. Maecenas nisi lorem, malesuada ac lectus nec, porta pretium neque. Ut convallis libero sit amet metus mattis, vel facilisis lorem malesuada. Duis consectetur ante sit amet magna efficitur, a interdum leo vulputate.</p>
|
|
188
|
+
<p>Praesent at odio nec sapien ultrices tincidunt in non mauris. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Duis consectetur nisl quis facilisis faucibus. Sed eu bibendum risus. Suspendisse porta euismod tortor, at elementum odio suscipit sed. Cras eget ultrices urna, ac feugiat lectus. Integer a pharetra velit, in imperdiet mi. Phasellus vel hendrerit velit. Vestibulum ut augue vitae erat vulputate bibendum a ut magna.</p>
|
|
189
|
+
</div>
|
|
190
|
+
</div>
|
|
191
|
+
</div>
|
|
192
|
+
</div>
|
|
193
|
+
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
### Padding on panel
|
|
197
|
+
|
|
198
|
+
```html
|
|
199
|
+
<div class="pf-c-sidebar">
|
|
200
|
+
<div class="pf-c-sidebar__main">
|
|
201
|
+
<div class="pf-c-sidebar__panel pf-m-padding">Sidebar panel, with padding</div>
|
|
202
|
+
<div class="pf-c-sidebar__content">
|
|
203
|
+
<div class="pf-c-content">
|
|
204
|
+
<p>Default layout.</p>
|
|
205
|
+
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse dapibus nulla id augue dictum commodo. Donec mollis arcu massa, sollicitudin venenatis est rutrum vitae. Integer pulvinar ligula at augue mollis, ac pulvinar arcu semper. Maecenas nisi lorem, malesuada ac lectus nec, porta pretium neque. Ut convallis libero sit amet metus mattis, vel facilisis lorem malesuada. Duis consectetur ante sit amet magna efficitur, a interdum leo vulputate.</p>
|
|
206
|
+
<p>Praesent at odio nec sapien ultrices tincidunt in non mauris. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Duis consectetur nisl quis facilisis faucibus. Sed eu bibendum risus. Suspendisse porta euismod tortor, at elementum odio suscipit sed. Cras eget ultrices urna, ac feugiat lectus. Integer a pharetra velit, in imperdiet mi. Phasellus vel hendrerit velit. Vestibulum ut augue vitae erat vulputate bibendum a ut magna.</p>
|
|
207
|
+
</div>
|
|
208
|
+
</div>
|
|
209
|
+
</div>
|
|
210
|
+
</div>
|
|
211
|
+
|
|
212
|
+
```
|
|
213
|
+
|
|
214
|
+
### Padding on content
|
|
215
|
+
|
|
216
|
+
```html
|
|
217
|
+
<div class="pf-c-sidebar">
|
|
218
|
+
<div class="pf-c-sidebar__main">
|
|
219
|
+
<div class="pf-c-sidebar__panel">Sidebar panel</div>
|
|
220
|
+
<div class="pf-c-sidebar__content pf-m-padding">
|
|
221
|
+
<div class="pf-c-content">
|
|
222
|
+
<p>Sidebar content, with padding</p>
|
|
223
|
+
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse dapibus nulla id augue dictum commodo. Donec mollis arcu massa, sollicitudin venenatis est rutrum vitae. Integer pulvinar ligula at augue mollis, ac pulvinar arcu semper. Maecenas nisi lorem, malesuada ac lectus nec, porta pretium neque. Ut convallis libero sit amet metus mattis, vel facilisis lorem malesuada. Duis consectetur ante sit amet magna efficitur, a interdum leo vulputate.</p>
|
|
224
|
+
<p>Praesent at odio nec sapien ultrices tincidunt in non mauris. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Duis consectetur nisl quis facilisis faucibus. Sed eu bibendum risus. Suspendisse porta euismod tortor, at elementum odio suscipit sed. Cras eget ultrices urna, ac feugiat lectus. Integer a pharetra velit, in imperdiet mi. Phasellus vel hendrerit velit. Vestibulum ut augue vitae erat vulputate bibendum a ut magna.</p>
|
|
225
|
+
</div>
|
|
226
|
+
</div>
|
|
227
|
+
</div>
|
|
228
|
+
</div>
|
|
229
|
+
|
|
230
|
+
```
|
|
231
|
+
|
|
178
232
|
## Documentation
|
|
179
233
|
|
|
180
234
|
### Usage
|
|
181
235
|
|
|
182
|
-
| Class
|
|
183
|
-
|
|
|
184
|
-
| `.pf-c-sidebar`
|
|
185
|
-
| `.pf-c-sidebar__main`
|
|
186
|
-
| `.pf-c-sidebar__panel`
|
|
187
|
-
| `.pf-c-sidebar__content`
|
|
188
|
-
| `.pf-m-
|
|
189
|
-
| `.pf-m-
|
|
190
|
-
| `.pf-m-
|
|
191
|
-
| `.pf-m-
|
|
192
|
-
| `.pf-m-
|
|
193
|
-
| `.pf-m-
|
|
194
|
-
| `.pf-m-
|
|
195
|
-
| `.pf-m-
|
|
236
|
+
| Class | Applied to | Outcome |
|
|
237
|
+
| -- | -- | -- |
|
|
238
|
+
| `.pf-c-sidebar` | `<div>` | Initiates the sidebar component. **Required** |
|
|
239
|
+
| `.pf-c-sidebar__main` | `<div>` | Initiates the sidebar main element. **Required** |
|
|
240
|
+
| `.pf-c-sidebar__panel` | `<div>` | Initiates the sidebar panel element. **Required** |
|
|
241
|
+
| `.pf-c-sidebar__content` | `<div>` | Initiates the sidebar content element. **Required** |
|
|
242
|
+
| `.pf-m-border` | `.pf-c-sidebar__main` | Modifies the sidebar component to add a border between the panel and content. |
|
|
243
|
+
| `.pf-m-padding` | `.pf-c-sidebar__panel`, `.pf-c-sidebar__content` | Modifies the sidebar component to add a padding to panel and/or content. |
|
|
244
|
+
| `.pf-m-gutter` | `.pf-c-sidebar` | Modifies the sidebar component to add a gutter between the panel and content. |
|
|
245
|
+
| `.pf-m-stack` | `.pf-c-sidebar` | Modifies the sidebar to stack the panel on top of the content. |
|
|
246
|
+
| `.pf-m-split` | `.pf-c-sidebar` | Modifies the sidebar to position the panel and content side by side. |
|
|
247
|
+
| `.pf-m-panel-right` | `.pf-c-sidebar` | Modifies the sidebar to place the panel to the right of the content. |
|
|
248
|
+
| `.pf-m-sticky` | `.pf-c-sidebar__panel` | Modifies the panel to be sticky to the top of the layout. |
|
|
249
|
+
| `.pf-m-static` | `.pf-c-sidebar__panel` | Modifies the panel to be positioned statically. |
|
|
250
|
+
| `.pf-m-width-{default, 25, 33, 50, 66, 75, 100}{-on-[breakpoint]}` | `.pf-c-sidebar__panel` | Modifies the panel width at optional [breakpoint](/developer-resources/global-css-variables#breakpoint-variables-and-class-suffixes). **Note:** does not apply when the panel is stacked on top of the content. |
|
|
251
|
+
| `.pf-m-no-background` | `.pf-c-sidebar`, `.pf-c-sidebar__panel, .pf-c-sidebar__content` | Modifies the element to have a transparent background. |
|
|
@@ -8,7 +8,7 @@ cssPrefix: pf-c-simple-list
|
|
|
8
8
|
|
|
9
9
|
```html
|
|
10
10
|
<div class="pf-c-simple-list">
|
|
11
|
-
<ul class="pf-c-simple-list__list">
|
|
11
|
+
<ul class="pf-c-simple-list__list" role="list">
|
|
12
12
|
<li class="pf-c-simple-list__item">
|
|
13
13
|
<button
|
|
14
14
|
class="pf-c-simple-list__item-link pf-m-current"
|
|
@@ -30,7 +30,7 @@ cssPrefix: pf-c-simple-list
|
|
|
30
30
|
|
|
31
31
|
```html
|
|
32
32
|
<div class="pf-c-simple-list">
|
|
33
|
-
<ul class="pf-c-simple-list__list">
|
|
33
|
+
<ul class="pf-c-simple-list__list" role="list">
|
|
34
34
|
<li class="pf-c-simple-list__item">
|
|
35
35
|
<a
|
|
36
36
|
class="pf-c-simple-list__item-link pf-m-current"
|
|
@@ -55,7 +55,7 @@ cssPrefix: pf-c-simple-list
|
|
|
55
55
|
<div class="pf-c-simple-list">
|
|
56
56
|
<section class="pf-c-simple-list__section">
|
|
57
57
|
<h2 class="pf-c-simple-list__title">Title</h2>
|
|
58
|
-
<ul class="pf-c-simple-list__list">
|
|
58
|
+
<ul class="pf-c-simple-list__list" role="list">
|
|
59
59
|
<li class="pf-c-simple-list__item">
|
|
60
60
|
<button
|
|
61
61
|
class="pf-c-simple-list__item-link pf-m-current"
|
|
@@ -75,7 +75,7 @@ cssPrefix: pf-c-simple-list
|
|
|
75
75
|
</section>
|
|
76
76
|
<section class="pf-c-simple-list__section">
|
|
77
77
|
<h2 class="pf-c-simple-list__title">Title</h2>
|
|
78
|
-
<ul class="pf-c-simple-list__list">
|
|
78
|
+
<ul class="pf-c-simple-list__list" role="list">
|
|
79
79
|
<li class="pf-c-simple-list__item">
|
|
80
80
|
<button class="pf-c-simple-list__item-link" type="button">List item 1</button>
|
|
81
81
|
</li>
|
|
@@ -98,18 +98,18 @@ cssPrefix: pf-c-simple-list
|
|
|
98
98
|
|
|
99
99
|
### Accessibility
|
|
100
100
|
|
|
101
|
-
| Attribute
|
|
102
|
-
|
|
|
101
|
+
| Attribute | Applied to | Outcome |
|
|
102
|
+
| -- | -- | -- |
|
|
103
103
|
| `tabindex="0"` | `a.pf-c-simple-list__item-link` | Inserts the link into the tab order of the page so that it is focusable. **Required** |
|
|
104
104
|
|
|
105
105
|
### Usage
|
|
106
106
|
|
|
107
|
-
| Class
|
|
108
|
-
|
|
|
109
|
-
| `.pf-c-simple-list`
|
|
110
|
-
| `.pf-c-simple-list__section`
|
|
111
|
-
| `.pf-c-simple-list__title`
|
|
112
|
-
| `.pf-c-simple-list__list`
|
|
113
|
-
| `.pf-c-simple-list__item`
|
|
114
|
-
| `.pf-c-simple-list__item-link` | `<button>`, `<a>`
|
|
115
|
-
| `.pf-m-current`
|
|
107
|
+
| Class | Applied to | Outcome |
|
|
108
|
+
| -- | -- | -- |
|
|
109
|
+
| `.pf-c-simple-list` | `<div>` | Initiates a simple list. |
|
|
110
|
+
| `.pf-c-simple-list__section` | `<section>` | Initiates a simple list section. |
|
|
111
|
+
| `.pf-c-simple-list__title` | `<h2>` | Initiates a simple list title. |
|
|
112
|
+
| `.pf-c-simple-list__list` | `<ul>` | Initiates a simple list unordered list. |
|
|
113
|
+
| `.pf-c-simple-list__item` | `<li>` | Initiates a simple list item. |
|
|
114
|
+
| `.pf-c-simple-list__item-link` | `<button>`, `<a>` | Initiates a simple list item link. It can be a button or a link depending on the context. |
|
|
115
|
+
| `.pf-m-current` | `.pf-c-simple-list__item-link` | Modifies the simple list item link for the current state. |
|
|
@@ -90,11 +90,11 @@ Small circle
|
|
|
90
90
|
|
|
91
91
|
### Usage
|
|
92
92
|
|
|
93
|
-
| Class
|
|
94
|
-
|
|
|
95
|
-
| `.pf-c-skeleton`
|
|
96
|
-
| `.pf-m-width-[sm, md, lg, 25, 33, 50, 66, 75]`
|
|
97
|
-
| `.pf-m-height-[sm, md, lg, 25, 33, 50, 66, 75, 100]` | `.pf-c-skeleton` | Modifies the height of the skeleton. The default is the inherited font size.
|
|
98
|
-
| `.pf-m-text-[sm, md, lg, xl, 2xl, 3xl, 4xl]`
|
|
99
|
-
| `.pf-m-circle`
|
|
100
|
-
| `.pf-m-square`
|
|
93
|
+
| Class | Applied to | Outcome |
|
|
94
|
+
| -- | -- | -- |
|
|
95
|
+
| `.pf-c-skeleton` | `<div>` | Initiates the skeleton component. **Required** |
|
|
96
|
+
| `.pf-m-width-[sm, md, lg, 25, 33, 50, 66, 75]` | `.pf-c-skeleton` | Modifies the width of the skeleton. The default is 100%. |
|
|
97
|
+
| `.pf-m-height-[sm, md, lg, 25, 33, 50, 66, 75, 100]` | `.pf-c-skeleton` | Modifies the height of the skeleton. The default is the inherited font size. |
|
|
98
|
+
| `.pf-m-text-[sm, md, lg, xl, 2xl, 3xl, 4xl]` | `.pf-c-skeleton` | Modifies the skeleton height to match the height of PatternFly's text elements. |
|
|
99
|
+
| `.pf-m-circle` | `.pf-c-skeleton` | Modifies the border radius of the skeleton to be a circle. Use a width modifier to specify the size. |
|
|
100
|
+
| `.pf-m-square` | `.pf-c-skeleton` | Modifies the border radius of the skeleton to be a square. Use a width modifier to specify the size. |
|
|
@@ -139,12 +139,12 @@ When using `.pf-c-skip-to-content` you must provide an `href` attribute whose va
|
|
|
139
139
|
|
|
140
140
|
### Accessibility
|
|
141
141
|
|
|
142
|
-
| Attribute
|
|
143
|
-
|
|
|
142
|
+
| Attribute | Applied to | Outcome |
|
|
143
|
+
| -- | -- | -- |
|
|
144
144
|
| `href="[id of main container]"` | `.pf-c-skip-to-content` | Sends focus to the primary content container. **Required** |
|
|
145
145
|
|
|
146
146
|
### Usage
|
|
147
147
|
|
|
148
|
-
| Class
|
|
149
|
-
|
|
|
150
|
-
| `.pf-c-skip-to-content` | `<a>`
|
|
148
|
+
| Class | Applied to | Outcome |
|
|
149
|
+
| -- | -- | -- |
|
|
150
|
+
| `.pf-c-skip-to-content` | `<a>` | initiates the skip to content link. |
|
|
@@ -261,13 +261,17 @@ cssPrefix: pf-c-slider
|
|
|
261
261
|
</div>
|
|
262
262
|
<div class="pf-c-slider__value">
|
|
263
263
|
<div class="pf-c-input-group">
|
|
264
|
-
<input
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
264
|
+
<div class="pf-c-input-group__item pf-m-fill">
|
|
265
|
+
<input
|
|
266
|
+
class="pf-c-form-control"
|
|
267
|
+
type="number"
|
|
268
|
+
value="50"
|
|
269
|
+
aria-label="Slider value input"
|
|
270
|
+
/>
|
|
271
|
+
</div>
|
|
272
|
+
<div class="pf-c-input-group__item">
|
|
273
|
+
<span class="pf-c-input-group__text">%</span>
|
|
274
|
+
</div>
|
|
271
275
|
</div>
|
|
272
276
|
</div>
|
|
273
277
|
</div>
|
|
@@ -291,13 +295,17 @@ cssPrefix: pf-c-slider
|
|
|
291
295
|
</div>
|
|
292
296
|
<div class="pf-c-slider__value">
|
|
293
297
|
<div class="pf-c-input-group">
|
|
294
|
-
<input
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
298
|
+
<div class="pf-c-input-group__item pf-m-fill">
|
|
299
|
+
<input
|
|
300
|
+
class="pf-c-form-control"
|
|
301
|
+
type="number"
|
|
302
|
+
value="50"
|
|
303
|
+
aria-label="Slider value input"
|
|
304
|
+
/>
|
|
305
|
+
</div>
|
|
306
|
+
<div class="pf-c-input-group__item">
|
|
307
|
+
<span class="pf-c-input-group__text">%</span>
|
|
308
|
+
</div>
|
|
301
309
|
</div>
|
|
302
310
|
</div>
|
|
303
311
|
</div>
|
|
@@ -322,13 +330,15 @@ cssPrefix: pf-c-slider
|
|
|
322
330
|
tabindex="0"
|
|
323
331
|
></div>
|
|
324
332
|
<div class="pf-c-slider__value pf-m-floating">
|
|
325
|
-
<div class="pf-c-input-
|
|
333
|
+
<div class="pf-c-input-group__item pf-m-fill">
|
|
326
334
|
<input
|
|
327
335
|
class="pf-c-form-control"
|
|
328
336
|
type="number"
|
|
329
337
|
value="50"
|
|
330
338
|
aria-label="Slider value input"
|
|
331
339
|
/>
|
|
340
|
+
</div>
|
|
341
|
+
<div class="pf-c-input-group__item">
|
|
332
342
|
<span class="pf-c-input-group__text">%</span>
|
|
333
343
|
</div>
|
|
334
344
|
</div>
|
|
@@ -386,14 +396,18 @@ cssPrefix: pf-c-slider
|
|
|
386
396
|
></div>
|
|
387
397
|
<div class="pf-c-slider__value pf-m-floating">
|
|
388
398
|
<div class="pf-c-input-group">
|
|
389
|
-
<input
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
399
|
+
<div class="pf-c-input-group__item pf-m-fill">
|
|
400
|
+
<input
|
|
401
|
+
class="pf-c-form-control"
|
|
402
|
+
disabled
|
|
403
|
+
type="number"
|
|
404
|
+
value="50"
|
|
405
|
+
aria-label="Slider value input"
|
|
406
|
+
/>
|
|
407
|
+
</div>
|
|
408
|
+
<div class="pf-c-input-group__item">
|
|
409
|
+
<span class="pf-c-input-group__text pf-m-disabled">%</span>
|
|
410
|
+
</div>
|
|
397
411
|
</div>
|
|
398
412
|
</div>
|
|
399
413
|
</div>
|
|
@@ -423,13 +437,17 @@ cssPrefix: pf-c-slider
|
|
|
423
437
|
></div>
|
|
424
438
|
<div class="pf-c-slider__value pf-m-floating">
|
|
425
439
|
<div class="pf-c-input-group">
|
|
426
|
-
<input
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
440
|
+
<div class="pf-c-input-group__item pf-m-fill">
|
|
441
|
+
<input
|
|
442
|
+
class="pf-c-form-control"
|
|
443
|
+
type="number"
|
|
444
|
+
value="50"
|
|
445
|
+
aria-label="Slider value input"
|
|
446
|
+
/>
|
|
447
|
+
</div>
|
|
448
|
+
<div class="pf-c-input-group__item">
|
|
449
|
+
<span class="pf-c-input-group__text">%</span>
|
|
450
|
+
</div>
|
|
433
451
|
</div>
|
|
434
452
|
</div>
|
|
435
453
|
</div>
|
|
@@ -563,14 +581,18 @@ cssPrefix: pf-c-slider
|
|
|
563
581
|
</div>
|
|
564
582
|
<div class="pf-c-slider__value">
|
|
565
583
|
<div class="pf-c-input-group">
|
|
566
|
-
<input
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
584
|
+
<div class="pf-c-input-group__item pf-m-fill">
|
|
585
|
+
<input
|
|
586
|
+
class="pf-c-form-control"
|
|
587
|
+
disabled
|
|
588
|
+
type="number"
|
|
589
|
+
value="50"
|
|
590
|
+
aria-label="Slider value input"
|
|
591
|
+
/>
|
|
592
|
+
</div>
|
|
593
|
+
<div class="pf-c-input-group__item">
|
|
594
|
+
<span class="pf-c-input-group__text pf-m-disabled">%</span>
|
|
595
|
+
</div>
|
|
574
596
|
</div>
|
|
575
597
|
</div>
|
|
576
598
|
</div>
|
|
@@ -581,30 +603,30 @@ cssPrefix: pf-c-slider
|
|
|
581
603
|
|
|
582
604
|
### Accessibility
|
|
583
605
|
|
|
584
|
-
| Attribute
|
|
585
|
-
|
|
|
586
|
-
| `role="slider"`
|
|
587
|
-
| `tabindex="0"`
|
|
588
|
-
| `aria-disabled="true"`
|
|
589
|
-
| `aria-valuemin="[value]"` | `.pf-c-slider__thumb`
|
|
590
|
-
| `aria-valuemax="[value]"` | `.pf-c-slider__thumb`
|
|
591
|
-
| `aria-valuenow="[value]"` | `.pf-c-slider__thumb`
|
|
606
|
+
| Attribute | Applied to | Outcome |
|
|
607
|
+
| -- | -- | -- |
|
|
608
|
+
| `role="slider"` | `.pf-c-slider__thumb` | Identifies the element as a slider. **Required** |
|
|
609
|
+
| `tabindex="0"` | `.pf-c-slider__thumb` | Includes the slider thumb in the page tab sequence. **Note:** only for use with non-disabled slider. **Required** |
|
|
610
|
+
| `aria-disabled="true"` | `.pf-c-slider.pf-m-disabled .pf-c-slider__thumb` | Indicates that the slider thumb is disabled. **Required** |
|
|
611
|
+
| `aria-valuemin="[value]"` | `.pf-c-slider__thumb` | Specifies the minimum value of the slider. **Required** |
|
|
612
|
+
| `aria-valuemax="[value]"` | `.pf-c-slider__thumb` | Specifies the maximum value of the slider. **Required** |
|
|
613
|
+
| `aria-valuenow="[value]"` | `.pf-c-slider__thumb` | Specifies the current value of the slider. **Required** |
|
|
592
614
|
|
|
593
615
|
### Usage
|
|
594
616
|
|
|
595
|
-
| Class
|
|
596
|
-
|
|
|
597
|
-
| `.pf-c-slider`
|
|
598
|
-
| `.pf-c-slider__main`
|
|
599
|
-
| `.pf-c-slider__rail`
|
|
600
|
-
| `.pf-c-slider__rail-track` | `<div>`
|
|
601
|
-
| `.pf-c-slider__steps`
|
|
602
|
-
| `.pf-c-slider__step`
|
|
603
|
-
| `.pf-c-slider__step-tick`
|
|
604
|
-
| `.pf-c-slider__step-label` | `<div>`
|
|
605
|
-
| `.pf-c-slider__thumb`
|
|
606
|
-
| `.pf-c-slider__value`
|
|
607
|
-
| `.pf-c-slider__actions`
|
|
608
|
-
| `.pf-m-disabled`
|
|
609
|
-
| `.pf-m-floating`
|
|
610
|
-
| `--pf-c-slider--value`
|
|
617
|
+
| Class | Applied to | Outcome |
|
|
618
|
+
| -- | -- | -- |
|
|
619
|
+
| `.pf-c-slider` | `<div>` | Initiates the slider component. **Required** |
|
|
620
|
+
| `.pf-c-slider__main` | `<div>` | Initiates the slider main element. **Required** |
|
|
621
|
+
| `.pf-c-slider__rail` | `<div>` | Initiates the slider rail. **Required** |
|
|
622
|
+
| `.pf-c-slider__rail-track` | `<div>` | Initiates the slider rail track. **Required** |
|
|
623
|
+
| `.pf-c-slider__steps` | `<div>` | Initiates the slider steps. |
|
|
624
|
+
| `.pf-c-slider__step` | `<div>` | Initiates a slider step. |
|
|
625
|
+
| `.pf-c-slider__step-tick` | `<div>` | Initiates a slider step tick. |
|
|
626
|
+
| `.pf-c-slider__step-label` | `<div>` | Initiates a slider step label. |
|
|
627
|
+
| `.pf-c-slider__thumb` | `<div>` | Initiates the slider thumb. **Required** |
|
|
628
|
+
| `.pf-c-slider__value` | `<div>` | Initiates the slider value. |
|
|
629
|
+
| `.pf-c-slider__actions` | `<div>` | Initiates the slider actions. |
|
|
630
|
+
| `.pf-m-disabled` | `.pf-c-slider` | Modifies the slider for the disabled state. |
|
|
631
|
+
| `.pf-m-floating` | `.pf-c-slider__thumb` | Modifies the slider value to float above the thumb. |
|
|
632
|
+
| `--pf-c-slider--value` | `.pf-c-slider` | Applies appropriate slider styles based on the current value. **Required** |
|
|
@@ -134,12 +134,12 @@ An inline spinner inherits its font-size, so its size will match the content aro
|
|
|
134
134
|
|
|
135
135
|
### Accessibility
|
|
136
136
|
|
|
137
|
-
| Attribute
|
|
138
|
-
|
|
|
139
|
-
| `role="progressbar"`
|
|
140
|
-
| `aria-label="Loading..."`
|
|
141
|
-
| `aria-labelledby="[id of spinner label]"`
|
|
142
|
-
| `aria-describedby="[id of spinner description]"` | `.pf-c-spinner` | Gives the spinner an accessible description by referring to the element that describes the spinner.
|
|
137
|
+
| Attribute | Applied to | Outcome |
|
|
138
|
+
| -- | -- | -- |
|
|
139
|
+
| `role="progressbar"` | `.pf-c-spinner` | Indicates to assistive technologies that this is an indeterminate progress indicator. |
|
|
140
|
+
| `aria-label="Loading..."` | `.pf-c-spinner` | Provides an accessible name for the spinner. **Note: one of `aria-label` or `aria-labelledby` is required.** |
|
|
141
|
+
| `aria-labelledby="[id of spinner label]"` | `.pf-c-spinner` | Gives the spinner an accessible name by referring to the element that labels the spinner. |
|
|
142
|
+
| `aria-describedby="[id of spinner description]"` | `.pf-c-spinner` | Gives the spinner an accessible description by referring to the element that describes the spinner. |
|
|
143
143
|
|
|
144
144
|
Note: If the spinner is showing that loading of a particular region of a page is in process, the author should use `aria-describedby` to point to the status, and set the `aria-busy` attribute to `true` on the region until it is finished loading.
|
|
145
145
|
|
|
@@ -147,27 +147,27 @@ Note: A [live region](https://developer.mozilla.org/en-US/docs/Web/Accessibility
|
|
|
147
147
|
|
|
148
148
|
### Usage
|
|
149
149
|
|
|
150
|
-
| Class
|
|
151
|
-
|
|
|
152
|
-
| `.pf-c-spinner`
|
|
153
|
-
| `.pf-c-spinner__path`
|
|
154
|
-
| `--pf-c-spinner--diameter` | `.pf-c-spinner` | Modifies the value for `--pf-c-spinner--diameter` declaration.
|
|
150
|
+
| Class | Applied to | Outcome |
|
|
151
|
+
| -- | -- | -- |
|
|
152
|
+
| `.pf-c-spinner` | `<svg>` | Creates a spinner component. The default is an extra large spinner. **Required**|
|
|
153
|
+
| `.pf-c-spinner__path` | `<circle>` | Creates a spinner circle component. **Required**|
|
|
154
|
+
| `--pf-c-spinner--diameter` | `.pf-c-spinner` | Modifies the value for `--pf-c-spinner--diameter` declaration. |
|
|
155
155
|
|
|
156
156
|
### Usage (legacy)
|
|
157
157
|
|
|
158
|
-
| Class
|
|
159
|
-
|
|
|
160
|
-
| `.pf-c-spinner`
|
|
161
|
-
| `.pf-c-spinner__clipper`
|
|
162
|
-
| `.pf-c-spinner__lead-ball` | `<span>`
|
|
163
|
-
| `.pf-c-spinner__tail-ball` | `<span>`
|
|
158
|
+
| Class | Applied to | Outcome |
|
|
159
|
+
| -- | -- | -- |
|
|
160
|
+
| `.pf-c-spinner` | `<span>` | Creates a spinner component. The default is an extra large spinner. **Required**|
|
|
161
|
+
| `.pf-c-spinner__clipper` | `<span>` | Creates the spinning line. **Required**|
|
|
162
|
+
| `.pf-c-spinner__lead-ball` | `<span>` | Rounds out the beginning of the spinning line. **Required**|
|
|
163
|
+
| `.pf-c-spinner__tail-ball` | `<span>` | Rounds out the end of the spinning line. **Required**|
|
|
164
164
|
|
|
165
165
|
### Modifiers
|
|
166
166
|
|
|
167
|
-
| Class
|
|
168
|
-
|
|
|
169
|
-
| `.pf-m-sm`
|
|
170
|
-
| `.pf-m-md`
|
|
171
|
-
| `.pf-m-lg`
|
|
172
|
-
| `.pf-m-xl`
|
|
173
|
-
| `.pf-m-inline` | `.pf-c-spinner` |
|
|
167
|
+
| Class | Applied to | Outcome |
|
|
168
|
+
| -- | -- | -- |
|
|
169
|
+
| `.pf-m-sm` | `.pf-c-spinner` | Creates a small spinner. |
|
|
170
|
+
| `.pf-m-md` | `.pf-c-spinner` | Creates a medium spinner. |
|
|
171
|
+
| `.pf-m-lg` | `.pf-c-spinner` | Creates a large spinner. |
|
|
172
|
+
| `.pf-m-xl` | `.pf-c-spinner` | Creates an extra-large spinner. |
|
|
173
|
+
| `.pf-m-inline` | `.pf-c-spinner` | Creates an inline spinner. |
|
|
@@ -275,25 +275,25 @@ Use checkbox if your user has to perform additional steps for changes to become
|
|
|
275
275
|
|
|
276
276
|
### Accessibility
|
|
277
277
|
|
|
278
|
-
| Attribute
|
|
279
|
-
|
|
|
280
|
-
| `aria-labelledby="..."` or `aria-label="..."` | `.pf-c-switch__input`
|
|
281
|
-
| `for`
|
|
282
|
-
| `id`
|
|
283
|
-
| `id`
|
|
284
|
-
| `checked`
|
|
285
|
-
| `disabled`
|
|
286
|
-
| `aria-hidden="true"`
|
|
278
|
+
| Attribute | Applied to | Outcome |
|
|
279
|
+
| -- | -- | -- |
|
|
280
|
+
| `aria-labelledby="..."` or `aria-label="..."` | `.pf-c-switch__input` | Indicates the action triggered by the switch. If an additional text label is included with the switch besides `.pf-c-switch__label.pf-m-on`, then `aria-labelledby` can reference the `id` of this text, or this text can be used as the value for `aria-label`. If the text included for `.pf-c-switch__label.pf-m-on` provides additional meaning to the primary label that's referenced, then it can also be represented as part of the `aria-labelledby` or `aria-label` attribute. **Required** |
|
|
281
|
+
| `for` | `<label>` | Each `<label>` must have a `for` attribute that matches its input id. **Required** |
|
|
282
|
+
| `id` | `<input type="checkbox">` | Each `<input>` must have an `id` attribute that matches its label's `for` value. **Required** |
|
|
283
|
+
| `id` | `.pf-c-switch__label` | Each `.pf-c-switch__label` must have an `id` attribute that matches the `aria-labelledby` on `.pf-c-switch__input`. |
|
|
284
|
+
| `checked` | `.pf-c-switch__input` | Indicates that the input is checked |
|
|
285
|
+
| `disabled` | `.pf-c-switch__input` | Indicates that the input is disabled |
|
|
286
|
+
| `aria-hidden="true"` | `.pf-c-switch__label` | Hides the text from the screen reader. |
|
|
287
287
|
|
|
288
288
|
### Usage
|
|
289
289
|
|
|
290
|
-
| Class
|
|
291
|
-
|
|
|
292
|
-
| `.pf-c-switch`
|
|
293
|
-
| `.pf-c-switch__input`
|
|
294
|
-
| `.pf-c-switch__toggle`
|
|
295
|
-
| `.pf-c-switch__toggle-icon` | `<span>`
|
|
296
|
-
| `.pf-c-switch__label`
|
|
297
|
-
| `.pf-m-on`
|
|
298
|
-
| `.pf-m-off`
|
|
299
|
-
| `.pf-m-reverse`
|
|
290
|
+
| Class | Applied to | Outcome |
|
|
291
|
+
| -- | -- | -- |
|
|
292
|
+
| `.pf-c-switch` | `<label>` | Initiates a switch. **Required** |
|
|
293
|
+
| `.pf-c-switch__input` | `<input type="checkbox">` | Hide the checkbox inside the switch. **Required** |
|
|
294
|
+
| `.pf-c-switch__toggle` | `<span>` | Initiates the toggle inside the switch. **Required** |
|
|
295
|
+
| `.pf-c-switch__toggle-icon` | `<span>` | Initiates the switch toggle icon wrapper. **Required when the switch is used without a label** |
|
|
296
|
+
| `.pf-c-switch__label` | `<span>` | Initiates a label inside the switch. |
|
|
297
|
+
| `.pf-m-on` | `.pf-c-switch__label` | Modifies the switch label to display the on message. |
|
|
298
|
+
| `.pf-m-off` | `.pf-c-switch__label` | Modifies the switch label to display the off message. |
|
|
299
|
+
| `.pf-m-reverse` | `.pf-c-switch` | Positions the switch toggle to the right of the label. |
|
|
@@ -135,19 +135,19 @@ Tab content should be used with the [tabs component](/components/tabs).
|
|
|
135
135
|
|
|
136
136
|
### Accessibility
|
|
137
137
|
|
|
138
|
-
| Attribute
|
|
139
|
-
|
|
|
140
|
-
| `role="tabpanel"`
|
|
141
|
-
| `aria-labelledby=[ID of tab element]` | `.pf-c-tab-content` | Provides an accessible name for the tab panel by referring to the tab element that controls it. **Required**
|
|
142
|
-
| `id=[ID of tab panel]`
|
|
143
|
-
| `hidden`
|
|
144
|
-
| `tabindex="0"`
|
|
138
|
+
| Attribute | Applied to | Outcome |
|
|
139
|
+
| -- | -- | -- |
|
|
140
|
+
| `role="tabpanel"` | `.pf-c-tab-content` | Indicates that the element serves as a container for a set of tabs. **Required** |
|
|
141
|
+
| `aria-labelledby=[ID of tab element]` | `.pf-c-tab-content` | Provides an accessible name for the tab panel by referring to the tab element that controls it. **Required**
|
|
142
|
+
| `id=[ID of tab panel]` | `.pf-c-tab-content` | Provides an ID for the tab panel, and should be used as the value of `aria-controls` on the tab element that controls the panel. **Required**
|
|
143
|
+
| `hidden` | `.pf-c-tab-content` | Indicates that the tab panel is not visible. **Required on all but the active tab panel**
|
|
144
|
+
| `tabindex="0"` | `.pf-c-tab-content` | Puts the tab panel in the page tab sequence and facilitates movement to panel content for assistive technology users. **Required**
|
|
145
145
|
|
|
146
146
|
### Usage
|
|
147
147
|
|
|
148
|
-
| Class
|
|
149
|
-
|
|
|
150
|
-
| `.pf-c-tab-content`
|
|
151
|
-
| `.pf-c-tab-content__body` | `<div>`
|
|
152
|
-
| `.pf-m-padding`
|
|
153
|
-
| `.pf-m-light-300`
|
|
148
|
+
| Class | Applied to | Outcome |
|
|
149
|
+
| -- | -- | -- |
|
|
150
|
+
| `.pf-c-tab-content` | `<section>` | Initiates the tab content component. **Required** |
|
|
151
|
+
| `.pf-c-tab-content__body` | `<div>` | Initiates the tab content body component. |
|
|
152
|
+
| `.pf-m-padding` | `.pf-c-tab-content__body` | Modifies the tab content body component padding. |
|
|
153
|
+
| `.pf-m-light-300` | `.pf-c-tab-content` | Modifies the tab content component background color. |
|