@patternfly/patternfly 6.0.0-alpha.3 → 6.0.0-alpha.31
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/README.md +13 -3
- package/assets/icons/iconUnicodes.json +1 -0
- package/assets/images/PF-Backdrop.svg +1 -0
- package/assets/images/PF-IconLogo-Reverse.svg +14 -0
- package/assets/images/PF-IconLogo.svg +17 -0
- package/assets/images/logo__pf--reverse-on-md.svg +1 -1
- package/assets/images/pf-c-brand__logo-on-lg-white.svg +32 -0
- package/assets/images/pf-c-brand__logo-on-md-white.svg +42 -0
- package/assets/images/pf-c-brand__logo-on-sm-white.svg +17 -0
- package/assets/images/pf-c-brand__logo-on-sm.svg +1 -1
- package/assets/images/pf-c-brand__logo-on-xl-white.svg +39 -0
- package/assets/images/pf_logo_white.hbs +35 -0
- package/assets/images/pf_logo_white.svg +38 -0
- package/assets/pficon/pf-v5-pficon.woff2 +0 -0
- package/assets/pficon/pficon.scss +6 -129
- package/base/_common.scss +29 -4
- package/base/_globals.scss +5 -9
- package/base/_variables.scss +8 -6
- package/base/patternfly-common.css +24 -6
- package/base/patternfly-globals.css +5 -5
- package/base/patternfly-icons.css +5 -1
- package/base/patternfly-pf-icons.css +5 -1
- package/base/patternfly-variables.css +886 -771
- package/base/tokens/_tokens-dark.scss +322 -265
- package/base/tokens/_tokens-default.scss +426 -306
- package/base/tokens/_tokens-font.scss +59 -35
- package/base/tokens/_tokens-palette.scss +69 -71
- package/base/tokens/_workspace-overrides.scss +7 -0
- package/components/AboutModalBox/about-modal-box.css +80 -108
- package/components/AboutModalBox/about-modal-box.scss +64 -78
- package/components/Accordion/accordion.css +96 -175
- package/components/Accordion/accordion.scss +106 -193
- package/components/ActionList/action-list.css +2 -2
- package/components/ActionList/action-list.scss +2 -2
- package/components/Alert/alert-group.css +27 -20
- package/components/Alert/alert-group.scss +27 -20
- package/components/Alert/alert.css +74 -95
- package/components/Alert/alert.scss +76 -89
- package/components/AppLauncher/app-launcher.css +32 -23
- package/components/AppLauncher/app-launcher.scss +32 -23
- package/components/BackToTop/back-to-top.css +17 -15
- package/components/BackToTop/back-to-top.scss +14 -13
- package/components/Backdrop/backdrop.css +2 -2
- package/components/Backdrop/backdrop.scss +2 -2
- package/components/BackgroundImage/background-image.css +6 -3
- package/components/BackgroundImage/background-image.scss +8 -3
- package/components/Badge/badge.css +25 -17
- package/components/Badge/badge.scss +27 -19
- package/components/Banner/banner.css +91 -69
- package/components/Banner/banner.scss +95 -34
- package/components/Breadcrumb/breadcrumb.css +28 -19
- package/components/Breadcrumb/breadcrumb.scss +26 -19
- package/components/Button/button.css +35 -23
- package/components/Button/button.scss +36 -26
- package/components/Button/themes/dark/button.scss +1 -1
- package/components/CalendarMonth/calendar-month.css +25 -15
- package/components/CalendarMonth/calendar-month.scss +23 -15
- package/components/Card/card.css +25 -17
- package/components/Card/card.scss +24 -17
- package/components/Check/check.css +12 -10
- package/components/Check/check.scss +17 -12
- package/components/Chip/chip-group.css +6 -6
- package/components/Chip/chip-group.scss +6 -6
- package/components/Chip/chip.css +16 -9
- package/components/Chip/chip.scss +17 -9
- package/components/ClipboardCopy/clipboard-copy.css +19 -10
- package/components/ClipboardCopy/clipboard-copy.scss +16 -8
- package/components/ClipboardCopy/themes/dark/clipboard-copy.scss +2 -2
- package/components/CodeBlock/code-block.css +6 -3
- package/components/CodeBlock/code-block.scss +6 -3
- package/components/CodeEditor/code-editor.css +31 -22
- package/components/CodeEditor/code-editor.scss +30 -21
- package/components/CodeEditor/themes/dark/code-editor.scss +1 -1
- package/components/Content/content.css +100 -97
- package/components/Content/content.scss +101 -98
- package/components/ContextSelector/context-selector.css +41 -26
- package/components/ContextSelector/context-selector.scss +40 -25
- package/components/ContextSelector/themes/dark/context-selector.scss +1 -1
- package/components/DataList/data-list-grid.css +21 -21
- package/components/DataList/data-list-grid.scss +3 -3
- package/components/DataList/data-list.css +69 -56
- package/components/DataList/data-list.scss +47 -35
- package/components/DatePicker/date-picker.css +8 -8
- package/components/DatePicker/date-picker.scss +8 -8
- package/components/DescriptionList/description-list.css +8 -5
- package/components/DescriptionList/description-list.scss +8 -5
- package/components/DragDrop/drag-drop.css +8 -8
- package/components/DragDrop/drag-drop.scss +8 -8
- package/components/Drawer/drawer.css +120 -62
- package/components/Drawer/drawer.scss +94 -44
- package/components/Dropdown/dropdown.css +76 -69
- package/components/Dropdown/dropdown.scss +67 -62
- package/components/DualListSelector/dual-list-selector.css +29 -15
- package/components/DualListSelector/dual-list-selector.scss +30 -15
- package/components/EmptyState/empty-state.css +7 -4
- package/components/EmptyState/empty-state.scss +7 -4
- package/components/ExpandableSection/expandable-section.css +75 -59
- package/components/ExpandableSection/expandable-section.scss +81 -72
- package/components/FileUpload/file-upload.css +9 -15
- package/components/FileUpload/file-upload.scss +9 -15
- package/components/Form/form.css +53 -50
- package/components/Form/form.scss +46 -44
- package/components/FormControl/form-control.css +18 -9
- package/components/FormControl/form-control.scss +18 -9
- package/components/HelperText/helper-text.css +29 -35
- package/components/HelperText/helper-text.scss +31 -41
- package/components/Hint/hint.css +37 -27
- package/components/Hint/hint.scss +37 -30
- package/components/Icon/icon.css +1 -1
- package/components/Icon/icon.scss +1 -1
- package/components/InlineEdit/inline-edit.css +9 -9
- package/components/InlineEdit/inline-edit.scss +9 -9
- package/components/InputGroup/input-group.css +12 -6
- package/components/InputGroup/input-group.scss +11 -5
- package/components/InputGroup/themes/dark/input-group.scss +1 -1
- package/components/JumpLinks/jump-links.css +27 -24
- package/components/JumpLinks/jump-links.scss +26 -24
- package/components/Label/label-group.css +13 -10
- package/components/Label/label-group.scss +13 -10
- package/components/Label/label.css +9 -9
- package/components/Label/label.scss +9 -9
- package/components/List/list.css +25 -25
- package/components/List/list.scss +26 -26
- package/components/LogViewer/log-viewer.css +14 -14
- package/components/LogViewer/log-viewer.scss +14 -14
- package/components/Login/login.css +104 -122
- package/components/Login/login.scss +92 -91
- package/components/Masthead/masthead.css +68 -125
- package/components/Masthead/masthead.scss +123 -153
- package/components/Menu/menu.css +82 -65
- package/components/Menu/menu.scss +85 -69
- package/components/MenuToggle/menu-toggle.css +89 -100
- package/components/MenuToggle/menu-toggle.scss +92 -112
- package/components/ModalBox/modal-box.css +76 -69
- package/components/ModalBox/modal-box.scss +74 -70
- package/components/MultipleFileUpload/multiple-file-upload.css +11 -8
- package/components/MultipleFileUpload/multiple-file-upload.scss +11 -8
- package/components/Nav/nav.css +162 -133
- package/components/Nav/nav.scss +162 -135
- package/components/Nav/themes/dark/nav.scss +2 -2
- package/components/NotificationBadge/notification-badge.css +66 -85
- package/components/NotificationBadge/notification-badge.scss +72 -103
- package/components/NotificationDrawer/notification-drawer.css +32 -19
- package/components/NotificationDrawer/notification-drawer.scss +30 -19
- package/components/NumberInput/number-input.css +2 -2
- package/components/NumberInput/number-input.scss +2 -2
- package/components/OptionsMenu/options-menu.css +43 -31
- package/components/OptionsMenu/options-menu.scss +43 -31
- package/components/OverflowMenu/overflow-menu.css +2 -2
- package/components/OverflowMenu/overflow-menu.scss +2 -2
- package/components/Page/page.css +232 -271
- package/components/Page/page.scss +180 -231
- package/components/Pagination/pagination.css +27 -17
- package/components/Pagination/pagination.scss +25 -17
- package/components/Panel/panel.css +13 -7
- package/components/Panel/panel.scss +13 -7
- package/components/Popover/popover.css +110 -87
- package/components/Popover/popover.scss +120 -109
- package/components/Progress/progress.css +9 -7
- package/components/Progress/progress.scss +12 -7
- package/components/ProgressStepper/progress-stepper.css +26 -20
- package/components/ProgressStepper/progress-stepper.scss +25 -19
- package/components/Radio/radio.css +16 -13
- package/components/Radio/radio.scss +20 -14
- package/components/Select/select.css +56 -47
- package/components/Select/select.scss +56 -47
- package/components/Sidebar/sidebar.css +11 -5
- package/components/Sidebar/sidebar.scss +11 -5
- package/components/SimpleList/simple-list.css +10 -4
- package/components/SimpleList/simple-list.scss +10 -4
- package/components/Skeleton/skeleton.css +6 -5
- package/components/Skeleton/skeleton.scss +4 -5
- package/components/SkipToContent/skip-to-content.css +9 -6
- package/components/SkipToContent/skip-to-content.scss +8 -6
- package/components/Slider/slider.css +47 -26
- package/components/Slider/slider.scss +56 -28
- package/components/Switch/switch.css +10 -6
- package/components/Switch/switch.scss +11 -7
- package/components/TabContent/tab-content.css +4 -1
- package/components/TabContent/tab-content.scss +4 -1
- package/components/Table/table-grid.css +264 -203
- package/components/Table/table-grid.scss +61 -47
- package/components/Table/table-scrollable.css +4 -4
- package/components/Table/table-scrollable.scss +6 -4
- package/components/Table/table-tree-view.css +112 -105
- package/components/Table/table-tree-view.scss +38 -33
- package/components/Table/table.css +176 -159
- package/components/Table/table.scss +177 -165
- package/components/Tabs/tabs.css +76 -48
- package/components/Tabs/tabs.scss +74 -48
- package/components/TextInputGroup/text-input-group.css +15 -15
- package/components/TextInputGroup/text-input-group.scss +15 -15
- package/components/Tile/tile.css +10 -10
- package/components/Tile/tile.scss +10 -10
- package/components/Title/title.css +70 -19
- package/components/Title/title.scss +90 -20
- package/components/ToggleGroup/toggle-group.css +14 -11
- package/components/ToggleGroup/toggle-group.scss +14 -11
- package/components/Toolbar/toolbar.css +57 -44
- package/components/Toolbar/toolbar.scss +45 -26
- package/components/Tooltip/tooltip.css +76 -44
- package/components/Tooltip/tooltip.scss +93 -77
- package/components/TreeView/tree-view.css +48 -27
- package/components/TreeView/tree-view.scss +50 -28
- package/components/Truncate/truncate.css +9 -0
- package/components/Truncate/truncate.scss +16 -3
- package/components/Wizard/wizard.css +57 -36
- package/components/Wizard/wizard.scss +57 -36
- package/docs/components/AboutModalBox/examples/AboutModalBox.md +2 -2
- package/docs/components/Accordion/examples/Accordion.md +614 -416
- package/docs/components/Alert/examples/Alert.md +1 -1
- package/docs/components/Badge/examples/Badge.md +21 -0
- package/docs/components/Banner/examples/Banner.md +48 -25
- package/docs/components/Brand/examples/Brand.css +12 -0
- package/docs/components/Brand/examples/Brand.md +75 -32
- package/docs/components/Button/examples/Button.css +2 -2
- package/docs/components/Button/examples/Button.md +15 -3
- package/docs/components/Card/examples/Card.md +125 -17
- package/docs/components/Check/examples/Check.md +71 -59
- package/docs/components/Chip/examples/Chip.md +1 -1
- package/docs/components/ClipboardCopy/examples/ClipboardCopy.md +106 -0
- package/docs/components/CodeEditor/examples/CodeEditor.md +3 -3
- package/docs/components/DragDrop/examples/DragDrop.css +2 -2
- package/docs/components/Dropdown/deprecated/Dropdown.css +1 -1
- package/docs/components/DualListSelector/examples/DualListSelector.md +64 -16
- package/docs/components/ExpandableSection/examples/ExpandableSection.md +47 -24
- package/docs/components/Label/examples/Label.md +1 -1
- package/docs/components/LogViewer/examples/LogViewer.css +2 -2
- package/docs/components/LogViewer/examples/LogViewer.md +250 -160
- package/docs/components/Login/examples/Login.md +5 -0
- package/docs/components/Masthead/examples/masthead.md +7 -54
- package/docs/components/Menu/examples/Menu.css +8 -0
- package/docs/components/Menu/examples/Menu.md +594 -543
- package/docs/components/MenuToggle/examples/MenuToggle.md +151 -138
- package/docs/components/ModalBox/examples/ModalBox.css +3 -8
- package/docs/components/Nav/examples/Navigation.css +3 -25
- package/docs/components/Nav/examples/Navigation.md +239 -113
- package/docs/components/NotificationBadge/examples/NotificationBadge.md +5 -7
- package/docs/components/OptionsMenu/deprecated/options-menu.md +12 -3
- package/docs/components/Page/examples/Page.css +0 -8
- package/docs/components/Page/examples/Page.md +22 -21
- package/docs/components/Popover/examples/Popover.css +4 -9
- package/docs/components/Popover/examples/Popover.md +1 -1
- package/docs/components/Radio/examples/Radio.md +63 -55
- package/docs/components/Select/deprecated/Select.md +184 -177
- package/docs/components/Table/examples/Table.css +2 -2
- package/docs/components/Table/examples/Table.md +2 -2
- package/docs/components/TextInputGroup/examples/TextInputGroup.css +1 -1
- package/docs/components/TextInputGroup/examples/TextInputGroup.md +9 -9
- package/docs/components/Tile/examples/Tile.css +1 -1
- package/docs/components/Title/examples/Title.md +18 -0
- package/docs/components/Toolbar/examples/Toolbar.md +570 -2803
- package/docs/components/Tooltip/examples/Tooltip.css +4 -0
- package/docs/components/Tooltip/examples/Tooltip.md +3 -1
- package/docs/components/Truncate/examples/Truncate.md +2 -2
- package/docs/demos/AboutModal/examples/AboutModal.md +85 -10
- package/docs/demos/Alert/examples/Alert.md +249 -24
- package/docs/demos/BackToTop/examples/BackToTop.md +83 -8
- package/docs/demos/Banner/examples/Banner.md +168 -16
- package/docs/demos/Card/examples/Card.css +3 -3
- package/docs/demos/Card/examples/Card.md +28 -12
- package/docs/demos/CardView/examples/CardView.md +139 -79
- package/docs/demos/ContextSelector/examples/ContextSelector.md +332 -32
- package/docs/demos/Dashboard/examples/Dashboard.md +86 -11
- package/docs/demos/DataList/examples/DataList.md +524 -354
- package/docs/demos/DescriptionList/examples/DescriptionList.md +249 -24
- package/docs/demos/Drawer/examples/Drawer.md +415 -40
- package/docs/demos/JumpLinks/examples/JumpLinks.md +498 -48
- package/docs/demos/Masthead/examples/Masthead.md +793 -277
- package/docs/demos/Modal/examples/Modal.md +498 -48
- package/docs/demos/Nav/examples/Nav.md +664 -64
- package/docs/demos/NotificationDrawer/examples/NotificationDrawer.md +420 -40
- package/docs/demos/Page/examples/Page.md +747 -72
- package/docs/demos/Page/examples/Penta.md +746 -0
- package/docs/demos/PasswordGenerator/examples/PasswordGenerator.md +2 -1
- package/docs/demos/PrimaryDetail/examples/PrimaryDetail.md +824 -451
- package/docs/demos/Skeleton/examples/Skeleton.md +90 -43
- package/docs/demos/Table/examples/Table.md +2313 -1887
- package/docs/demos/Tabs/examples/Tabs.md +528 -71
- package/docs/demos/Toolbar/examples/Toolbar.css +15 -0
- package/docs/demos/Toolbar/examples/Toolbar.md +870 -1044
- package/docs/demos/Wizard/examples/Wizard.md +747 -72
- package/docs/layouts/Flex/examples/Flex.md +5 -5
- package/docs/utilities/BoxShadow/examples/box-shadow.css +5 -5
- package/icons/pficons.mjs +1 -0
- package/layouts/Flex/flex.css +115 -43
- package/layouts/Flex/flex.scss +20 -8
- package/package.json +9 -5
- package/patternfly-addons.css +732 -972
- package/patternfly-base-no-globals-theme-dark-unversioned.css +921 -784
- package/patternfly-base-no-globals.css +921 -784
- package/patternfly-base-theme-dark-unversioned.css +926 -789
- package/patternfly-base.css +926 -789
- package/patternfly-no-globals.css +4838 -4253
- package/patternfly-theme-dark-unversioned.css +4843 -4258
- package/patternfly.css +4843 -4258
- package/patternfly.min.css +1 -1
- package/patternfly.min.css.map +1 -1
- package/sass-utilities/functions.scss +6 -0
- package/sass-utilities/mixins.scss +62 -2
- package/sass-utilities/scss-variables.scss +8 -8
- package/sass-utilities/themes/dark/mixins.scss +3 -1
- package/utilities/Accessibility/accessibility.css +12 -12
- package/utilities/Spacing/spacing.css +720 -960
- package/utilities/Spacing/spacing.scss +4 -8
- package/base/themes/dark/_variables.scss +0 -102
- package/components/AboutModalBox/themes/dark/about-modal-box.scss +0 -7
- package/components/Accordion/themes/dark/accordion.scss +0 -9
- package/components/Alert/themes/dark/alert.scss +0 -17
- package/components/Badge/themes/dark/badge.scss +0 -9
- package/components/Banner/themes/dark/banner.scss +0 -14
- package/components/HelperText/themes/dark/helper-text.scss +0 -7
- package/components/Hint/themes/dark/hint.scss +0 -8
- package/components/Login/themes/dark/login.scss +0 -12
- package/components/Masthead/themes/dark/masthead.scss +0 -14
- package/components/ModalBox/themes/dark/modal-box.scss +0 -7
- package/components/NotificationBadge/themes/dark/notification-badge.scss +0 -10
- package/components/Page/themes/dark/page.scss +0 -69
- package/components/Popover/themes/dark/popover.scss +0 -11
- package/components/Tooltip/themes/dark/tooltip.scss +0 -8
- package/docs/components/NotificationBadge/examples/NotificationBadge.css +0 -3
|
@@ -2,14 +2,12 @@
|
|
|
2
2
|
id: Notification badge
|
|
3
3
|
section: components
|
|
4
4
|
cssPrefix: pf-v5-c-notification-badge
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
## Examples
|
|
5
|
+
---## Examples
|
|
8
6
|
|
|
9
7
|
### Basic
|
|
10
8
|
|
|
11
9
|
```html
|
|
12
|
-
<div
|
|
10
|
+
<div>
|
|
13
11
|
<button
|
|
14
12
|
class="pf-v5-c-button pf-m-plain"
|
|
15
13
|
type="button"
|
|
@@ -69,7 +67,7 @@ cssPrefix: pf-v5-c-notification-badge
|
|
|
69
67
|
### With count
|
|
70
68
|
|
|
71
69
|
```html
|
|
72
|
-
<div
|
|
70
|
+
<div>
|
|
73
71
|
<button
|
|
74
72
|
class="pf-v5-c-button pf-m-plain"
|
|
75
73
|
type="button"
|
|
@@ -135,7 +133,7 @@ cssPrefix: pf-v5-c-notification-badge
|
|
|
135
133
|
### Expanded
|
|
136
134
|
|
|
137
135
|
```html
|
|
138
|
-
<div
|
|
136
|
+
<div>
|
|
139
137
|
<button
|
|
140
138
|
class="pf-v5-c-button pf-m-plain"
|
|
141
139
|
type="button"
|
|
@@ -206,7 +204,7 @@ cssPrefix: pf-v5-c-notification-badge
|
|
|
206
204
|
|
|
207
205
|
### Overview
|
|
208
206
|
|
|
209
|
-
Always add a modifier class to indicate read, unread, or attention state. Never use the class `.pf-v5-c-notification-badge` on its own.
|
|
207
|
+
Always add a modifier class to indicate read, unread, or attention state. Never use the class `.pf-v5-c-notification-badge` on its own.
|
|
210
208
|
|
|
211
209
|
### Accessibility
|
|
212
210
|
|
|
@@ -314,7 +314,10 @@ deprecated: true
|
|
|
314
314
|
disabled
|
|
315
315
|
aria-label="Sort by"
|
|
316
316
|
>
|
|
317
|
-
<i
|
|
317
|
+
<i
|
|
318
|
+
class="fas fa-sort-amount-down pf-v5-m-mirror-inline-rtl"
|
|
319
|
+
aria-hidden="true"
|
|
320
|
+
></i>
|
|
318
321
|
</button>
|
|
319
322
|
<ul
|
|
320
323
|
class="pf-v5-c-options-menu__menu"
|
|
@@ -360,7 +363,10 @@ deprecated: true
|
|
|
360
363
|
aria-expanded="false"
|
|
361
364
|
aria-label="Sort by"
|
|
362
365
|
>
|
|
363
|
-
<i
|
|
366
|
+
<i
|
|
367
|
+
class="fas fa-sort-amount-down pf-v5-m-mirror-inline-rtl"
|
|
368
|
+
aria-hidden="true"
|
|
369
|
+
></i>
|
|
364
370
|
</button>
|
|
365
371
|
<ul
|
|
366
372
|
class="pf-v5-c-options-menu__menu"
|
|
@@ -406,7 +412,10 @@ deprecated: true
|
|
|
406
412
|
aria-expanded="true"
|
|
407
413
|
aria-label="Sort by"
|
|
408
414
|
>
|
|
409
|
-
<i
|
|
415
|
+
<i
|
|
416
|
+
class="fas fa-sort-amount-down pf-v5-m-mirror-inline-rtl"
|
|
417
|
+
aria-hidden="true"
|
|
418
|
+
></i>
|
|
410
419
|
</button>
|
|
411
420
|
<ul
|
|
412
421
|
class="pf-v5-c-options-menu__menu"
|
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
.ws-core-c-page :is(.pf-v5-c-page__sidebar, .pf-v5-c-page__main-subnav) {
|
|
2
|
-
color: var(--pf-v5-global--Color--light-100);
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.ws-core-c-page .pf-v5-c-page__main-section.pf-m-dark-200 {
|
|
6
|
-
color: var(--pf-v5-global--Color--dark-100);
|
|
7
|
-
}
|
|
8
|
-
|
|
9
1
|
#ws-core-c-page-with-or-without-fill .ws-preview-html,
|
|
10
2
|
#ws-core-c-page-multiple-sidebar-body-elements-padding-and-fill .ws-preview-html {
|
|
11
3
|
height: 500px;
|
|
@@ -32,20 +32,14 @@ wrapperTag: div
|
|
|
32
32
|
<div class="pf-v5-c-page__sidebar-body">Navigation</div>
|
|
33
33
|
</div>
|
|
34
34
|
<main class="pf-v5-c-page__main" tabindex="-1">
|
|
35
|
-
<section class="pf-v5-c-page__main-section
|
|
36
|
-
This
|
|
37
|
-
<code>.pf-v5-c-page__main-section</code
|
|
38
|
-
<code>.pf-m-dark-100</code>.
|
|
39
|
-
</section>
|
|
40
|
-
<section class="pf-v5-c-page__main-section pf-m-dark-200">
|
|
41
|
-
This
|
|
42
|
-
<code>.pf-v5-c-page__main-section</code> uses
|
|
43
|
-
<code>.pf-m-dark-200</code>.
|
|
35
|
+
<section class="pf-v5-c-page__main-section">
|
|
36
|
+
This is a default
|
|
37
|
+
<code>.pf-v5-c-page__main-section</code>.
|
|
44
38
|
</section>
|
|
45
|
-
<section class="pf-v5-c-page__main-section pf-m-
|
|
39
|
+
<section class="pf-v5-c-page__main-section pf-m-secondary">
|
|
46
40
|
This
|
|
47
41
|
<code>.pf-v5-c-page__main-section</code> uses
|
|
48
|
-
<code>.pf-m-
|
|
42
|
+
<code>.pf-m-secondary</code>.
|
|
49
43
|
</section>
|
|
50
44
|
<section class="pf-v5-c-page__main-section">
|
|
51
45
|
This is a default
|
|
@@ -78,10 +72,19 @@ wrapperTag: div
|
|
|
78
72
|
</div>
|
|
79
73
|
</header>
|
|
80
74
|
<main class="pf-v5-c-page__main" tabindex="-1">
|
|
81
|
-
<section class="pf-v5-c-page__main-section
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
75
|
+
<section class="pf-v5-c-page__main-section">
|
|
76
|
+
This is a default
|
|
77
|
+
<code>.pf-v5-c-page__main-section</code>.
|
|
78
|
+
</section>
|
|
79
|
+
<section class="pf-v5-c-page__main-section pf-m-secondary">
|
|
80
|
+
This
|
|
81
|
+
<code>.pf-v5-c-page__main-section</code> uses
|
|
82
|
+
<code>.pf-m-secondary</code>.
|
|
83
|
+
</section>
|
|
84
|
+
<section class="pf-v5-c-page__main-section">
|
|
85
|
+
This is a default
|
|
86
|
+
<code>.pf-v5-c-page__main-section</code>.
|
|
87
|
+
</section>
|
|
85
88
|
</main>
|
|
86
89
|
</div>
|
|
87
90
|
|
|
@@ -116,7 +119,7 @@ wrapperTag: div
|
|
|
116
119
|
<div class="pf-v5-c-page__sidebar-body pf-m-page-insets">footer content</div>
|
|
117
120
|
</div>
|
|
118
121
|
<main class="pf-v5-c-page__main" tabindex="-1">
|
|
119
|
-
<section class="pf-v5-c-page__main-section
|
|
122
|
+
<section class="pf-v5-c-page__main-section"></section>
|
|
120
123
|
</main>
|
|
121
124
|
</div>
|
|
122
125
|
|
|
@@ -144,14 +147,12 @@ wrapperTag: div
|
|
|
144
147
|
</div>
|
|
145
148
|
</header>
|
|
146
149
|
<main class="pf-v5-c-page__main" tabindex="-1">
|
|
147
|
-
<section
|
|
148
|
-
class="pf-v5-c-page__main-section pf-m-light"
|
|
149
|
-
>A regular page section.</section>
|
|
150
|
+
<section class="pf-v5-c-page__main-section">A regular page section.</section>
|
|
150
151
|
<section class="pf-v5-c-page__main-section pf-m-fill">
|
|
151
152
|
This section uses
|
|
152
153
|
<code>.pf-m-fill</code> to fill the available space.
|
|
153
154
|
</section>
|
|
154
|
-
<section class="pf-v5-c-page__main-section pf-m-
|
|
155
|
+
<section class="pf-v5-c-page__main-section pf-m-no-fill">
|
|
155
156
|
This section uses
|
|
156
157
|
<code>.pf-m-no-fill</code> to not fill the available space.
|
|
157
158
|
</section>
|
|
@@ -189,7 +190,7 @@ wrapperTag: div
|
|
|
189
190
|
This
|
|
190
191
|
<code>.pf-v5-c-page__main-section</code> has default padding.
|
|
191
192
|
</section>
|
|
192
|
-
<section class="pf-v5-c-page__main-section pf-m-no-padding
|
|
193
|
+
<section class="pf-v5-c-page__main-section pf-m-no-padding">
|
|
193
194
|
This
|
|
194
195
|
<code>.pf-v5-c-page__main-section</code> uses
|
|
195
196
|
<code>.pf-m-no-padding</code> to remove all padding.
|
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
.ws-core-c-popover .ws-preview-html {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
position: absolute;
|
|
7
|
-
top: 50%;
|
|
8
|
-
left: 50%;
|
|
9
|
-
transform: translate(-50%, -50%);
|
|
10
|
-
}
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
justify-content: center;
|
|
5
|
+
}
|
|
@@ -339,7 +339,7 @@ cssPrefix: pf-v5-c-popover
|
|
|
339
339
|
<div
|
|
340
340
|
class="pf-v5-c-popover__body"
|
|
341
341
|
id="popover-no-padding-body"
|
|
342
|
-
>This popover has no padding
|
|
342
|
+
>This popover has no padding itself. Instead it is intended for use with content that has its own padding that prevents it from touching the popover container's edges.</div>
|
|
343
343
|
</div>
|
|
344
344
|
</div>
|
|
345
345
|
|
|
@@ -8,15 +8,17 @@ cssPrefix: pf-v5-c-radio
|
|
|
8
8
|
### Basic
|
|
9
9
|
|
|
10
10
|
```html
|
|
11
|
-
<div class="pf-v5-c-radio">
|
|
11
|
+
<div class="pf-v5-c-radio" id="radio-basic-example">
|
|
12
12
|
<input
|
|
13
13
|
class="pf-v5-c-radio__input"
|
|
14
14
|
type="radio"
|
|
15
|
-
id="radio-
|
|
16
|
-
name="
|
|
15
|
+
id="radio-basic-example-input"
|
|
16
|
+
name="radio-basic-example-input"
|
|
17
17
|
/>
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
<label
|
|
19
|
+
class="pf-v5-c-radio__label"
|
|
20
|
+
for="radio-basic-example-input"
|
|
21
|
+
>Basic radio</label>
|
|
20
22
|
</div>
|
|
21
23
|
|
|
22
24
|
```
|
|
@@ -24,16 +26,18 @@ cssPrefix: pf-v5-c-radio
|
|
|
24
26
|
### Checked
|
|
25
27
|
|
|
26
28
|
```html
|
|
27
|
-
<div class="pf-v5-c-radio">
|
|
29
|
+
<div class="pf-v5-c-radio" id="radio-checked-example">
|
|
28
30
|
<input
|
|
29
31
|
class="pf-v5-c-radio__input"
|
|
30
32
|
type="radio"
|
|
31
|
-
id="radio-checked"
|
|
32
|
-
name="
|
|
33
|
+
id="radio-checked-example-input"
|
|
34
|
+
name="radio-checked-example-input"
|
|
33
35
|
checked
|
|
34
36
|
/>
|
|
35
|
-
|
|
36
|
-
|
|
37
|
+
<label
|
|
38
|
+
class="pf-v5-c-radio__label"
|
|
39
|
+
for="radio-checked-example-input"
|
|
40
|
+
>Radio checked</label>
|
|
37
41
|
</div>
|
|
38
42
|
|
|
39
43
|
```
|
|
@@ -41,14 +45,17 @@ cssPrefix: pf-v5-c-radio
|
|
|
41
45
|
### Label wrapping input
|
|
42
46
|
|
|
43
47
|
```html
|
|
44
|
-
<label
|
|
48
|
+
<label
|
|
49
|
+
class="pf-v5-c-radio"
|
|
50
|
+
id="radio-label-wrapping-input-example"
|
|
51
|
+
for="radio-label-wrapping-input-example-input"
|
|
52
|
+
>
|
|
45
53
|
<input
|
|
46
54
|
class="pf-v5-c-radio__input"
|
|
47
55
|
type="radio"
|
|
48
|
-
id="radio-
|
|
49
|
-
name="
|
|
56
|
+
id="radio-label-wrapping-input-example-input"
|
|
57
|
+
name="radio-label-wrapping-input-example-input"
|
|
50
58
|
/>
|
|
51
|
-
|
|
52
59
|
<span class="pf-v5-c-radio__label">Radio label wraps input</span>
|
|
53
60
|
</label>
|
|
54
61
|
|
|
@@ -57,14 +64,16 @@ cssPrefix: pf-v5-c-radio
|
|
|
57
64
|
### Reversed
|
|
58
65
|
|
|
59
66
|
```html
|
|
60
|
-
<div class="pf-v5-c-radio">
|
|
61
|
-
<label
|
|
62
|
-
|
|
67
|
+
<div class="pf-v5-c-radio" id="radio-reversed-example">
|
|
68
|
+
<label
|
|
69
|
+
class="pf-v5-c-radio__label"
|
|
70
|
+
for="radio-reversed-example-input"
|
|
71
|
+
>Radio reversed</label>
|
|
63
72
|
<input
|
|
64
73
|
class="pf-v5-c-radio__input"
|
|
65
74
|
type="radio"
|
|
66
|
-
id="radio-
|
|
67
|
-
name="
|
|
75
|
+
id="radio-reversed-example-input"
|
|
76
|
+
name="radio-reversed-example-input"
|
|
68
77
|
/>
|
|
69
78
|
</div>
|
|
70
79
|
|
|
@@ -73,35 +82,32 @@ cssPrefix: pf-v5-c-radio
|
|
|
73
82
|
### Disabled
|
|
74
83
|
|
|
75
84
|
```html
|
|
76
|
-
<div class="pf-v5-c-radio">
|
|
85
|
+
<div class="pf-v5-c-radio" id="radio-disabled-example">
|
|
77
86
|
<input
|
|
78
87
|
class="pf-v5-c-radio__input"
|
|
79
88
|
type="radio"
|
|
80
|
-
id="radio-disabled"
|
|
81
|
-
name="
|
|
89
|
+
id="radio-disabled-example-input"
|
|
90
|
+
name="radio-disabled-example-input"
|
|
82
91
|
disabled
|
|
83
92
|
/>
|
|
84
|
-
|
|
85
93
|
<label
|
|
86
94
|
class="pf-v5-c-radio__label pf-m-disabled"
|
|
87
|
-
for="radio-disabled"
|
|
95
|
+
for="radio-disabled-example-input"
|
|
88
96
|
>Radio disabled</label>
|
|
89
97
|
</div>
|
|
90
|
-
|
|
91
|
-
<div class="pf-v5-c-radio">
|
|
98
|
+
<div class="pf-v5-c-radio" id="radio-disabled-checked-example">
|
|
92
99
|
<input
|
|
93
100
|
class="pf-v5-c-radio__input"
|
|
94
101
|
type="radio"
|
|
95
|
-
id="radio-disabled-checked"
|
|
96
|
-
name="
|
|
97
|
-
disabled
|
|
102
|
+
id="radio-disabled-checked-example-input"
|
|
103
|
+
name="radio-disabled-checked-example-input"
|
|
98
104
|
checked
|
|
105
|
+
disabled
|
|
99
106
|
/>
|
|
100
|
-
|
|
101
107
|
<label
|
|
102
108
|
class="pf-v5-c-radio__label pf-m-disabled"
|
|
103
|
-
for="radio-disabled-checked"
|
|
104
|
-
>Radio disabled
|
|
109
|
+
for="radio-disabled-checked-example-input"
|
|
110
|
+
>Radio disabled</label>
|
|
105
111
|
</div>
|
|
106
112
|
|
|
107
113
|
```
|
|
@@ -109,21 +115,21 @@ cssPrefix: pf-v5-c-radio
|
|
|
109
115
|
### With description
|
|
110
116
|
|
|
111
117
|
```html
|
|
112
|
-
<div class="pf-v5-c-radio">
|
|
118
|
+
<div class="pf-v5-c-radio" id="radio-with-description-exmaple">
|
|
113
119
|
<input
|
|
114
120
|
class="pf-v5-c-radio__input"
|
|
115
121
|
type="radio"
|
|
116
|
-
|
|
117
|
-
|
|
122
|
+
aria-describedby="radio-with-description-exmaple-description"
|
|
123
|
+
id="radio-with-description-exmaple-input"
|
|
124
|
+
name="radio-with-description-exmaple-input"
|
|
118
125
|
/>
|
|
119
|
-
|
|
120
126
|
<label
|
|
121
127
|
class="pf-v5-c-radio__label"
|
|
122
|
-
for="radio-description"
|
|
128
|
+
for="radio-with-description-exmaple-input"
|
|
123
129
|
>Radio with description</label>
|
|
124
|
-
|
|
125
130
|
<span
|
|
126
131
|
class="pf-v5-c-radio__description"
|
|
132
|
+
id="radio-with-description-exmaple-description"
|
|
127
133
|
>Single-tenant cloud service hosted and managed by Red Hat that offers high-availability enterprise-grade clusters in a virtual private cloud on AWS od GCP.</span>
|
|
128
134
|
</div>
|
|
129
135
|
|
|
@@ -132,16 +138,17 @@ cssPrefix: pf-v5-c-radio
|
|
|
132
138
|
### With body
|
|
133
139
|
|
|
134
140
|
```html
|
|
135
|
-
<div class="pf-v5-c-radio">
|
|
141
|
+
<div class="pf-v5-c-radio" id="radio-with-body-example">
|
|
136
142
|
<input
|
|
137
143
|
class="pf-v5-c-radio__input"
|
|
138
144
|
type="radio"
|
|
139
|
-
id="radio-body"
|
|
140
|
-
name="
|
|
145
|
+
id="radio-with-body-example-input"
|
|
146
|
+
name="radio-with-body-example-input"
|
|
141
147
|
/>
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
148
|
+
<label
|
|
149
|
+
class="pf-v5-c-radio__label"
|
|
150
|
+
for="radio-with-body-example-input"
|
|
151
|
+
>Radio with body</label>
|
|
145
152
|
<span class="pf-v5-c-radio__body">This is where custom content goes.</span>
|
|
146
153
|
</div>
|
|
147
154
|
|
|
@@ -150,21 +157,21 @@ cssPrefix: pf-v5-c-radio
|
|
|
150
157
|
### With description and body
|
|
151
158
|
|
|
152
159
|
```html
|
|
153
|
-
<div class="pf-v5-c-radio">
|
|
160
|
+
<div class="pf-v5-c-radio" id="radio-with-description-body-example">
|
|
154
161
|
<input
|
|
155
162
|
class="pf-v5-c-radio__input"
|
|
156
163
|
type="radio"
|
|
157
|
-
|
|
158
|
-
|
|
164
|
+
aria-describedby="radio-with-description-body-example-description"
|
|
165
|
+
id="radio-with-description-body-example-input"
|
|
166
|
+
name="radio-with-description-body-example-input"
|
|
159
167
|
/>
|
|
160
|
-
|
|
161
168
|
<label
|
|
162
169
|
class="pf-v5-c-radio__label"
|
|
163
|
-
for="radio-description-body"
|
|
170
|
+
for="radio-with-description-body-example-input"
|
|
164
171
|
>Radio with description and body</label>
|
|
165
|
-
|
|
166
172
|
<span
|
|
167
173
|
class="pf-v5-c-radio__description"
|
|
174
|
+
id="radio-with-description-body-example-description"
|
|
168
175
|
>Single-tenant cloud service hosted and managed by Red Hat that offers high-availability enterprise-grade clusters in a virtual private cloud on AWS od GCP.</span>
|
|
169
176
|
<span class="pf-v5-c-radio__body">This is where custom content goes.</span>
|
|
170
177
|
</div>
|
|
@@ -174,15 +181,15 @@ cssPrefix: pf-v5-c-radio
|
|
|
174
181
|
### Standalone input
|
|
175
182
|
|
|
176
183
|
```html
|
|
177
|
-
<
|
|
184
|
+
<label class="pf-v5-c-radio pf-m-standalone" id="radio-standalon-input-example">
|
|
178
185
|
<input
|
|
179
186
|
class="pf-v5-c-radio__input"
|
|
180
187
|
type="radio"
|
|
181
|
-
id="radio-
|
|
182
|
-
name="
|
|
183
|
-
aria-label="Standalone
|
|
188
|
+
id="radio-standalon-input-example-input"
|
|
189
|
+
name="radio-standalon-input-example-input"
|
|
190
|
+
aria-label="Standalone radio"
|
|
184
191
|
/>
|
|
185
|
-
</
|
|
192
|
+
</label>
|
|
186
193
|
|
|
187
194
|
```
|
|
188
195
|
|
|
@@ -199,6 +206,7 @@ If you extend this component or modify the styles of this component, then make s
|
|
|
199
206
|
| Attribute | Applied to | Outcome |
|
|
200
207
|
| -- | -- | -- |
|
|
201
208
|
| `disabled` | `<input type="radio">` | Indicates that the element is unavailable and removes it from keyboard focus. **Required when input is disabled** |
|
|
209
|
+
| `aria-describedby` | `.pf-v5-c-radio__input` | When using `.pf-v5-c-radio__description` make use of this on the input. |
|
|
202
210
|
|
|
203
211
|
### Usage
|
|
204
212
|
|