@patternfly/patternfly 5.0.0-alpha.3 → 5.0.0-alpha.30
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 +17 -0
- package/assets/icons/iconUnicodes.json +1 -0
- package/assets/pficon/pficon.scss +6 -0
- package/assets/pficon/pficon.woff +0 -0
- 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/_fonts.scss +22 -22
- package/base/_globals.scss +1 -1
- package/base/_icons.scss +1 -28
- package/base/_svg-icons.scss +6 -0
- package/base/_variables.scss +1 -1
- package/base/patternfly-common.css +0 -10
- package/base/patternfly-fonts.css +17 -17
- package/base/patternfly-icons.css +6 -20
- package/base/patternfly-pf-icons.css +5 -1
- package/base/themes/dark/_globals.scss +1 -1
- package/base/themes/dark/_variables.scss +1 -1
- package/components/AboutModalBox/about-modal-box.css +7 -7
- package/components/AboutModalBox/about-modal-box.scss +7 -7
- package/components/Accordion/accordion.css +2 -0
- package/components/Accordion/accordion.scss +2 -0
- package/components/Alert/alert.css +3 -3
- package/components/Alert/alert.scss +3 -3
- 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/Banner/banner.css +14 -14
- 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 +20 -21
- package/components/Card/card.scss +22 -26
- 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 +5 -1
- package/components/ContextSelector/context-selector.scss +6 -2
- package/components/DataList/data-list-grid.css +7 -7
- package/components/DataList/data-list-grid.scss +1 -1
- package/components/DataList/data-list.css +12 -11
- package/components/DataList/data-list.scss +5 -4
- 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 +12 -10
- package/components/Dropdown/dropdown.scss +2 -0
- 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 +12 -12
- package/components/Form/form.scss +7 -7
- package/components/FormControl/form-control.css +2 -5
- package/components/FormControl/themes/dark/form-control.scss +2 -6
- package/components/Hint/hint.css +2 -2
- package/components/Hint/hint.scss +2 -2
- package/components/Label/label.css +43 -30
- package/components/Label/label.scss +49 -34
- package/components/LabelGroup/label-group.css +26 -22
- package/components/LabelGroup/label-group.scss +31 -26
- package/components/Login/login.css +11 -11
- package/components/Login/login.scss +10 -10
- package/components/Masthead/masthead.css +4 -4
- 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 +9 -8
- package/components/ModalBox/modal-box.scss +11 -11
- 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 +3 -3
- package/components/NotificationDrawer/notification-drawer.scss +3 -3
- package/components/Page/page.css +71 -71
- package/components/Page/page.scss +12 -12
- package/components/Pagination/pagination.css +2 -2
- package/components/Popover/popover.css +25 -31
- package/components/Popover/popover.scss +27 -32
- package/components/Popover/themes/dark/popover.scss +2 -8
- 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 +7 -2
- package/components/Table/table.scss +9 -2
- 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 +67 -39
- package/components/Toolbar/toolbar.scss +39 -5
- 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 -1
- package/components/Wizard/wizard.scss +20 -2
- package/docs/components/AboutModalBox/examples/AboutModalBox.md +13 -13
- 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 +19 -19
- package/docs/components/AlertGroup/examples/AlertGroup.md +12 -12
- package/docs/components/AppLauncher/examples/application-launcher.md +51 -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 +4 -4
- 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 +32 -32
- package/docs/components/Card/examples/Card.md +139 -64
- package/docs/components/Check/examples/Check.md +15 -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 +86 -80
- package/docs/components/DataList/examples/DataList.md +187 -148
- package/docs/components/DatePicker/examples/DatePicker.md +10 -10
- 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 +123 -99
- 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 +8 -8
- package/docs/components/Form/examples/Form.md +64 -64
- package/docs/components/FormControl/examples/FormControl.md +20 -20
- package/docs/components/HelperText/examples/HelperText.md +12 -12
- package/docs/components/Hint/examples/Hint.md +7 -7
- package/docs/components/Icon/examples/Icon.md +10 -10
- package/docs/components/InlineEdit/examples/InlineEdit.md +29 -27
- package/docs/components/InputGroup/examples/InputGroup.md +10 -10
- 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 -73
- package/docs/components/Login/examples/Login.md +32 -32
- package/docs/components/Masthead/examples/masthead.md +9 -9
- package/docs/components/Menu/examples/Menu.md +82 -80
- package/docs/components/MenuToggle/examples/MenuToggle.md +28 -28
- package/docs/components/ModalBox/examples/ModalBox.md +106 -85
- package/docs/components/MultipleFileUpload/examples/MultipleFileUpload.md +25 -25
- 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 +44 -44
- package/docs/components/NumberInput/examples/NumberInput.md +12 -12
- package/docs/components/OptionsMenu/examples/options-menu.md +27 -28
- package/docs/components/OverflowMenu/examples/overflow-menu.md +25 -25
- package/docs/components/Page/examples/Page.md +54 -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 +201 -144
- package/docs/components/Progress/examples/Progress.md +31 -60
- package/docs/components/ProgressStepper/examples/ProgressStepper.md +45 -38
- package/docs/components/Radio/examples/Radio.md +11 -11
- package/docs/components/SearchInput/examples/SearchInput.md +34 -34
- package/docs/components/Select/examples/Select.md +367 -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 +24 -24
- 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 +3163 -1712
- package/docs/components/Tabs/examples/Tabs.md +149 -149
- package/docs/components/TextInputGroup/examples/TextInputGroup.md +362 -280
- package/docs/components/Tile/examples/Tile.md +15 -15
- 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 +471 -378
- 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 -4
- package/docs/components/Wizard/examples/Wizard.md +119 -127
- package/docs/demos/AboutModal/examples/AboutModal.md +4 -4
- package/docs/demos/Alert/examples/Alert.md +13 -13
- 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 +219 -156
- package/docs/demos/CardView/examples/CardView.md +56 -29
- package/docs/demos/ContextSelector/examples/ContextSelector.md +18 -18
- package/docs/demos/Dashboard/examples/Dashboard.md +51 -35
- package/docs/demos/DataList/examples/DataList.md +160 -111
- 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 +28 -22
- package/docs/demos/HelperText/examples/HelperText.md +8 -9
- package/docs/demos/JumpLinks/examples/JumpLinks.md +28 -28
- package/docs/demos/Masthead/examples/Masthead.md +32 -35
- 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 +40 -28
- package/docs/demos/Page/examples/Page.md +37 -37
- package/docs/demos/PasswordStrength/examples/PasswordStrength.md +32 -33
- package/docs/demos/PrimaryDetail/examples/PrimaryDetail.md +83 -67
- package/docs/demos/Skeleton/examples/Skeleton.md +4 -4
- package/docs/demos/Table/examples/Table.md +2465 -478
- package/docs/demos/Tabs/examples/Tabs.md +141 -90
- package/docs/demos/Toolbar/examples/Toolbar.md +1811 -177
- 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 +4 -4
- package/docs/utilities/Alignment/examples/Alignment.md +6 -6
- package/docs/utilities/BackgroundColor/examples/BackgroundColor.md +12 -12
- package/docs/utilities/BoxShadow/examples/box-shadow.md +22 -22
- package/docs/utilities/Display/examples/Display.md +11 -11
- package/docs/utilities/Flex/examples/Flex.md +34 -34
- package/docs/utilities/Float/examples/Float.md +4 -4
- package/docs/utilities/Sizing/examples/Sizing.md +50 -50
- package/docs/utilities/Spacing/examples/Spacing.md +34 -34
- package/docs/utilities/Text/examples/Text.md +27 -27
- 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-base-no-reset.css +23 -47
- package/patternfly-base.css +23 -47
- package/patternfly-no-reset.css +770 -652
- package/patternfly.css +770 -652
- 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/scss-variables.scss +1 -1
- package/sass-utilities/themes/dark/scss-variables.scss +1 -1
- package/utilities/Spacing/spacing.scss +2 -2
- 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
|
@@ -16,9 +16,11 @@ cssPrefix: pf-c-modal-box
|
|
|
16
16
|
aria-labelledby="modal-title"
|
|
17
17
|
aria-describedby="modal-description"
|
|
18
18
|
>
|
|
19
|
-
<
|
|
20
|
-
<
|
|
21
|
-
|
|
19
|
+
<div class="pf-c-modal-box__close">
|
|
20
|
+
<button class="pf-c-button pf-m-plain" type="button" aria-label="Close">
|
|
21
|
+
<i class="fas fa-times" aria-hidden="true"></i>
|
|
22
|
+
</button>
|
|
23
|
+
</div>
|
|
22
24
|
<header class="pf-c-modal-box__header">
|
|
23
25
|
<h1 class="pf-c-modal-box__title" id="modal-title">Modal title</h1>
|
|
24
26
|
</header>
|
|
@@ -41,9 +43,11 @@ cssPrefix: pf-c-modal-box
|
|
|
41
43
|
aria-labelledby="modal-help-title"
|
|
42
44
|
aria-describedby="modal-help-description"
|
|
43
45
|
>
|
|
44
|
-
<
|
|
45
|
-
<
|
|
46
|
-
|
|
46
|
+
<div class="pf-c-modal-box__close">
|
|
47
|
+
<button class="pf-c-button pf-m-plain" type="button" aria-label="Close">
|
|
48
|
+
<i class="fas fa-times" aria-hidden="true"></i>
|
|
49
|
+
</button>
|
|
50
|
+
</div>
|
|
47
51
|
<header class="pf-c-modal-box__header pf-m-help">
|
|
48
52
|
<div class="pf-c-modal-box__header-main">
|
|
49
53
|
<h1
|
|
@@ -79,13 +83,11 @@ cssPrefix: pf-c-modal-box
|
|
|
79
83
|
aria-labelledby="modal-sm-title"
|
|
80
84
|
aria-describedby="modal-sm-description"
|
|
81
85
|
>
|
|
82
|
-
<
|
|
83
|
-
class="pf-c-button pf-m-plain"
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
>
|
|
87
|
-
<i class="fas fa-times" aria-hidden="true"></i>
|
|
88
|
-
</button>
|
|
86
|
+
<div class="pf-c-modal-box__close">
|
|
87
|
+
<button class="pf-c-button pf-m-plain" type="button" aria-label="Close">
|
|
88
|
+
<i class="fas fa-times" aria-hidden="true"></i>
|
|
89
|
+
</button>
|
|
90
|
+
</div>
|
|
89
91
|
<header class="pf-c-modal-box__header">
|
|
90
92
|
<h1 class="pf-c-modal-box__title" id="modal-sm-title">Modal title</h1>
|
|
91
93
|
</header>
|
|
@@ -110,13 +112,11 @@ cssPrefix: pf-c-modal-box
|
|
|
110
112
|
aria-labelledby="modal-md-title"
|
|
111
113
|
aria-describedby="modal-md-description"
|
|
112
114
|
>
|
|
113
|
-
<
|
|
114
|
-
class="pf-c-button pf-m-plain"
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
>
|
|
118
|
-
<i class="fas fa-times" aria-hidden="true"></i>
|
|
119
|
-
</button>
|
|
115
|
+
<div class="pf-c-modal-box__close">
|
|
116
|
+
<button class="pf-c-button pf-m-plain" type="button" aria-label="Close">
|
|
117
|
+
<i class="fas fa-times" aria-hidden="true"></i>
|
|
118
|
+
</button>
|
|
119
|
+
</div>
|
|
120
120
|
<header class="pf-c-modal-box__header">
|
|
121
121
|
<h1 class="pf-c-modal-box__title" id="modal-md-title">Modal title</h1>
|
|
122
122
|
</header>
|
|
@@ -141,9 +141,11 @@ cssPrefix: pf-c-modal-box
|
|
|
141
141
|
aria-labelledby="modal-lg-title"
|
|
142
142
|
aria-describedby="modal-lg-description"
|
|
143
143
|
>
|
|
144
|
-
<
|
|
145
|
-
<
|
|
146
|
-
|
|
144
|
+
<div class="pf-c-modal-box__close">
|
|
145
|
+
<button class="pf-c-button pf-m-plain" type="button" aria-label="Close">
|
|
146
|
+
<i class="fas fa-times" aria-hidden="true"></i>
|
|
147
|
+
</button>
|
|
148
|
+
</div>
|
|
147
149
|
<header class="pf-c-modal-box__header">
|
|
148
150
|
<h1 class="pf-c-modal-box__title" id="modal-lg-title">Modal title</h1>
|
|
149
151
|
</header>
|
|
@@ -168,9 +170,11 @@ cssPrefix: pf-c-modal-box
|
|
|
168
170
|
aria-label="Example of a modal without a title"
|
|
169
171
|
aria-describedby="modal-no-title-description"
|
|
170
172
|
>
|
|
171
|
-
<
|
|
172
|
-
<
|
|
173
|
-
|
|
173
|
+
<div class="pf-c-modal-box__close">
|
|
174
|
+
<button class="pf-c-button pf-m-plain" type="button" aria-label="Close">
|
|
175
|
+
<i class="fas fa-times" aria-hidden="true"></i>
|
|
176
|
+
</button>
|
|
177
|
+
</div>
|
|
174
178
|
<div class="pf-c-modal-box__body">
|
|
175
179
|
<span
|
|
176
180
|
id="modal-no-title-description"
|
|
@@ -191,9 +195,11 @@ cssPrefix: pf-c-modal-box
|
|
|
191
195
|
aria-labelledby="modal-with-description-title"
|
|
192
196
|
aria-describedby="modal-with-description-description"
|
|
193
197
|
>
|
|
194
|
-
<
|
|
195
|
-
<
|
|
196
|
-
|
|
198
|
+
<div class="pf-c-modal-box__close">
|
|
199
|
+
<button class="pf-c-button pf-m-plain" type="button" aria-label="Close">
|
|
200
|
+
<i class="fas fa-times" aria-hidden="true"></i>
|
|
201
|
+
</button>
|
|
202
|
+
</div>
|
|
197
203
|
<header class="pf-c-modal-box__header">
|
|
198
204
|
<h1
|
|
199
205
|
class="pf-c-modal-box__title"
|
|
@@ -222,9 +228,11 @@ cssPrefix: pf-c-modal-box
|
|
|
222
228
|
aria-labelledby="modal-custom-title"
|
|
223
229
|
aria-describedby="modal-custom-description"
|
|
224
230
|
>
|
|
225
|
-
<
|
|
226
|
-
<
|
|
227
|
-
|
|
231
|
+
<div class="pf-c-modal-box__close">
|
|
232
|
+
<button class="pf-c-button pf-m-plain" type="button" aria-label="Close">
|
|
233
|
+
<i class="fas fa-times" aria-hidden="true"></i>
|
|
234
|
+
</button>
|
|
235
|
+
</div>
|
|
228
236
|
<header class="pf-c-modal-box__header">
|
|
229
237
|
<h1 class="pf-c-title pf-m-4xl" id="modal-custom-title">Custom title</h1>
|
|
230
238
|
</header>
|
|
@@ -263,9 +271,11 @@ cssPrefix: pf-c-modal-box
|
|
|
263
271
|
aria-labelledby="icon-title"
|
|
264
272
|
aria-describedby="icon-description"
|
|
265
273
|
>
|
|
266
|
-
<
|
|
267
|
-
<
|
|
268
|
-
|
|
274
|
+
<div class="pf-c-modal-box__close">
|
|
275
|
+
<button class="pf-c-button pf-m-plain" type="button" aria-label="Close">
|
|
276
|
+
<i class="fas fa-times" aria-hidden="true"></i>
|
|
277
|
+
</button>
|
|
278
|
+
</div>
|
|
269
279
|
<header class="pf-c-modal-box__header">
|
|
270
280
|
<h1 class="pf-c-modal-box__title pf-m-icon" id="icon-title">
|
|
271
281
|
<span class="pf-c-modal-box__title-icon">
|
|
@@ -290,9 +300,11 @@ cssPrefix: pf-c-modal-box
|
|
|
290
300
|
aria-labelledby="default-alert-title"
|
|
291
301
|
aria-describedby="default-alert-description"
|
|
292
302
|
>
|
|
293
|
-
<
|
|
294
|
-
<
|
|
295
|
-
|
|
303
|
+
<div class="pf-c-modal-box__close">
|
|
304
|
+
<button class="pf-c-button pf-m-plain" type="button" aria-label="Close">
|
|
305
|
+
<i class="fas fa-times" aria-hidden="true"></i>
|
|
306
|
+
</button>
|
|
307
|
+
</div>
|
|
296
308
|
<header class="pf-c-modal-box__header">
|
|
297
309
|
<h1 class="pf-c-modal-box__title pf-m-icon" id="default-alert-title">
|
|
298
310
|
<span class="pf-c-modal-box__title-icon">
|
|
@@ -324,9 +336,11 @@ cssPrefix: pf-c-modal-box
|
|
|
324
336
|
aria-labelledby="info-alert-title"
|
|
325
337
|
aria-describedby="info-alert-description"
|
|
326
338
|
>
|
|
327
|
-
<
|
|
328
|
-
<
|
|
329
|
-
|
|
339
|
+
<div class="pf-c-modal-box__close">
|
|
340
|
+
<button class="pf-c-button pf-m-plain" type="button" aria-label="Close">
|
|
341
|
+
<i class="fas fa-times" aria-hidden="true"></i>
|
|
342
|
+
</button>
|
|
343
|
+
</div>
|
|
330
344
|
<header class="pf-c-modal-box__header">
|
|
331
345
|
<h1 class="pf-c-modal-box__title pf-m-icon" id="info-alert-title">
|
|
332
346
|
<span class="pf-c-modal-box__title-icon">
|
|
@@ -358,9 +372,11 @@ cssPrefix: pf-c-modal-box
|
|
|
358
372
|
aria-labelledby="success-alert-title"
|
|
359
373
|
aria-describedby="success-alert-description"
|
|
360
374
|
>
|
|
361
|
-
<
|
|
362
|
-
<
|
|
363
|
-
|
|
375
|
+
<div class="pf-c-modal-box__close">
|
|
376
|
+
<button class="pf-c-button pf-m-plain" type="button" aria-label="Close">
|
|
377
|
+
<i class="fas fa-times" aria-hidden="true"></i>
|
|
378
|
+
</button>
|
|
379
|
+
</div>
|
|
364
380
|
<header class="pf-c-modal-box__header">
|
|
365
381
|
<h1 class="pf-c-modal-box__title pf-m-icon" id="success-alert-title">
|
|
366
382
|
<span class="pf-c-modal-box__title-icon">
|
|
@@ -392,9 +408,11 @@ cssPrefix: pf-c-modal-box
|
|
|
392
408
|
aria-labelledby="warning-alert-title"
|
|
393
409
|
aria-describedby="warning-alert-description"
|
|
394
410
|
>
|
|
395
|
-
<
|
|
396
|
-
<
|
|
397
|
-
|
|
411
|
+
<div class="pf-c-modal-box__close">
|
|
412
|
+
<button class="pf-c-button pf-m-plain" type="button" aria-label="Close">
|
|
413
|
+
<i class="fas fa-times" aria-hidden="true"></i>
|
|
414
|
+
</button>
|
|
415
|
+
</div>
|
|
398
416
|
<header class="pf-c-modal-box__header">
|
|
399
417
|
<h1 class="pf-c-modal-box__title pf-m-icon" id="warning-alert-title">
|
|
400
418
|
<span class="pf-c-modal-box__title-icon">
|
|
@@ -426,9 +444,11 @@ cssPrefix: pf-c-modal-box
|
|
|
426
444
|
aria-labelledby="danger-alert-title"
|
|
427
445
|
aria-describedby="danger-alert-description"
|
|
428
446
|
>
|
|
429
|
-
<
|
|
430
|
-
<
|
|
431
|
-
|
|
447
|
+
<div class="pf-c-modal-box__close">
|
|
448
|
+
<button class="pf-c-button pf-m-plain" type="button" aria-label="Close">
|
|
449
|
+
<i class="fas fa-times" aria-hidden="true"></i>
|
|
450
|
+
</button>
|
|
451
|
+
</div>
|
|
432
452
|
<header class="pf-c-modal-box__header">
|
|
433
453
|
<h1 class="pf-c-modal-box__title pf-m-icon" id="danger-alert-title">
|
|
434
454
|
<span class="pf-c-modal-box__title-icon">
|
|
@@ -458,41 +478,42 @@ A modal box is a generic rectangular container that can be used to build modals.
|
|
|
458
478
|
|
|
459
479
|
### Accessibility
|
|
460
480
|
|
|
461
|
-
| Attribute
|
|
462
|
-
|
|
|
463
|
-
| `role="dialog"`
|
|
464
|
-
| `aria-labelledby="[id value of .pf-c-modal-box__title or custom modal title]"` | `.pf-c-modal-box`
|
|
465
|
-
| `aria-label="[title of modal]"`
|
|
466
|
-
| `aria-describedby="[id value of applicable content]"`
|
|
467
|
-
| `aria-modal="true"`
|
|
468
|
-
| `aria-label="Close"`
|
|
469
|
-
| `aria-hidden="true"`
|
|
470
|
-
| `form="[id of form in modal body]"`
|
|
471
|
-
| `tabindex="0"`
|
|
481
|
+
| Attribute | Applies to | Outcome |
|
|
482
|
+
| -- | -- | -- |
|
|
483
|
+
| `role="dialog"` | `.pf-c-modal-box` | Identifies the element that serves as the modal container. **Required** |
|
|
484
|
+
| `aria-labelledby="[id value of .pf-c-modal-box__title or custom modal title]"` | `.pf-c-modal-box` | Gives the modal an accessible name by referring to the element that provides the dialog title. **Required when .pf-c-title is present** |
|
|
485
|
+
| `aria-label="[title of modal]"` | `.pf-c-modal-box` | Gives the modal an accessible name. **Required when `.pf-c-modal-box__title` is *not* present** |
|
|
486
|
+
| `aria-describedby="[id value of applicable content]"` | `.pf-c-modal-box` | Gives the modal an accessible description by referring to the modal content that describes the primary message or purpose of the dialog. Not used if there is no static text that describes the modal. |
|
|
487
|
+
| `aria-modal="true"` | `.pf-c-modal-box` | Tells assistive technologies that the windows underneath the current modal are not available for interaction. **Required**|
|
|
488
|
+
| `aria-label="Close"` | `.pf-c-modal-box__close .pf-c-button` | Provides an accessible name for the close button as it uses an icon instead of text. **Required**|
|
|
489
|
+
| `aria-hidden="true"` | Parent element containing the page contents when modal is open | Hides main contents of the page from screen readers. The element with `.pf-c-modal-box` must not be a descendent of the element with `aria-hidden="true"`. For more info see [trapping focus](/accessibility/product-development-guide#trapping-focus). **Required** |
|
|
490
|
+
| `form="[id of form in modal body]"` | `.pf-c-modal-box__footer .pf-c-button` | Associates a submit button in the modal footer with a form in the modal body. For use when the submit button is outside of the `<form>` that the button submits. |
|
|
491
|
+
| `tabindex="0"` | `.pf-c-modal-box__body` | If a modal box body has overflow content that triggers a scrollbar, to ensure that the content is keyboard accessible, the body must include either a focusable element within the scrollable region or the body itself must be focusable by adding `tabindex="0"`. |
|
|
472
492
|
|
|
473
493
|
### Usage
|
|
474
494
|
|
|
475
|
-
| Class
|
|
476
|
-
|
|
|
477
|
-
| `.pf-c-modal-box`
|
|
478
|
-
| `.pf-c-
|
|
479
|
-
| `.pf-c-
|
|
480
|
-
| `.pf-c-modal-box__header
|
|
481
|
-
| `.pf-c-modal-box__header-
|
|
482
|
-
| `.pf-c-modal-
|
|
483
|
-
| `.pf-c-modal-box__title
|
|
484
|
-
| `.pf-c-modal-box__title-
|
|
485
|
-
| `.pf-c-modal-
|
|
486
|
-
| `.pf-c-modal-
|
|
487
|
-
| `.pf-c-modal-
|
|
488
|
-
| `.pf-
|
|
489
|
-
| `.pf-m-
|
|
490
|
-
| `.pf-m-
|
|
491
|
-
| `.pf-m-
|
|
492
|
-
| `.pf-m-
|
|
493
|
-
| `.pf-m-
|
|
494
|
-
| `.pf-m-
|
|
495
|
-
| `.pf-m-
|
|
496
|
-
| `.pf-m-
|
|
497
|
-
| `.pf-m-
|
|
498
|
-
| `.pf-m-
|
|
495
|
+
| Class | Applied | Outcome |
|
|
496
|
+
| -- | -- | -- |
|
|
497
|
+
| `.pf-c-modal-box` | `<div>` | Initiates a modal box. **Required** |
|
|
498
|
+
| `.pf-c-modal-box__close` | `<div>` | Creates a container for the modal box close button. **Required** if there is a close button. |
|
|
499
|
+
| `.pf-c-button.pf-m-plain` | `<button>` | Initiates a modal box close button. |
|
|
500
|
+
| `.pf-c-modal-box__header` | `<header>` | Initiates a modal box header. **Required** if using a `.pf-c-modal-box__title`. |
|
|
501
|
+
| `.pf-c-modal-box__header-main` | `<div>` | Initiates a modal box header main container. **Required** when `pf-c-modal-box__header-help` is used. |
|
|
502
|
+
| `.pf-c-modal-box__header-help` | `<div>` | Initiates the help button container in the modal box header actions. |
|
|
503
|
+
| `.pf-c-modal-box__title` | `<h1>`,`<h2>`,`<h3>`,`<h4>`,`<h5>`,`<h6>`, `<div>` | Initiates a modal box title. **Required** if using a modal description. |
|
|
504
|
+
| `.pf-c-modal-box__title-icon` | `<span>` | Initiates a container for the modal box title icon. |
|
|
505
|
+
| `.pf-c-modal-box__title-text` | `<span>` | Initiates a container for the modal box title text. |
|
|
506
|
+
| `.pf-c-modal-box__description` | `<div>` | Initiates a modal box description. |
|
|
507
|
+
| `.pf-c-modal-box__body` | `<div>` | Initiates a modal box body. |
|
|
508
|
+
| `.pf-c-modal-box__footer` | `<footer>` | Initiates a modal box footer. |
|
|
509
|
+
| `.pf-m-sm` | `.pf-c-modal-box` | Modifies for a small modal box width. |
|
|
510
|
+
| `.pf-m-md` | `.pf-c-modal-box` | Modifies for a medium modal box width. |
|
|
511
|
+
| `.pf-m-lg` | `.pf-c-modal-box` | Modifies for a large modal box width. |
|
|
512
|
+
| `.pf-m-align-top` | `.pf-c-modal-box` | Modifies for top alignment. |
|
|
513
|
+
| `.pf-m-icon` | `.pf-c-modal-box__title` | Modifies the title layout to accommodate an icon. |
|
|
514
|
+
| `.pf-m-default` | `.pf-c-modal-box` | Modifies for the default alert state. |
|
|
515
|
+
| `.pf-m-info` | `.pf-c-modal-box` | Modifies for the info alert state. |
|
|
516
|
+
| `.pf-m-success` | `.pf-c-modal-box` | Modifies for the success alert state. |
|
|
517
|
+
| `.pf-m-warning` | `.pf-c-modal-box` | Modifies for the warning alert state. |
|
|
518
|
+
| `.pf-m-danger` | `.pf-c-modal-box` | Modifies for the danger alert state. |
|
|
519
|
+
| `.pf-m-help` | `.pf-c-modal-box__header` | Modifies the modal box header to support the help action |
|
|
@@ -147,7 +147,7 @@ cssPrefix: pf-c-multiple-file-upload
|
|
|
147
147
|
</span>
|
|
148
148
|
</button>
|
|
149
149
|
<div class="pf-c-expandable-section__content" hidden>
|
|
150
|
-
<ul class="pf-c-multiple-file-upload__status-list">
|
|
150
|
+
<ul class="pf-c-multiple-file-upload__status-list" role="list">
|
|
151
151
|
<li class="pf-c-multiple-file-upload__status-item">
|
|
152
152
|
<div class="pf-c-multiple-file-upload__status-item-icon">
|
|
153
153
|
<i class="fas fa-file" aria-hidden="true"></i>
|
|
@@ -340,7 +340,7 @@ cssPrefix: pf-c-multiple-file-upload
|
|
|
340
340
|
</span>
|
|
341
341
|
</button>
|
|
342
342
|
<div class="pf-c-expandable-section__content">
|
|
343
|
-
<ul class="pf-c-multiple-file-upload__status-list">
|
|
343
|
+
<ul class="pf-c-multiple-file-upload__status-list" role="list">
|
|
344
344
|
<li class="pf-c-multiple-file-upload__status-item">
|
|
345
345
|
<div class="pf-c-multiple-file-upload__status-item-icon">
|
|
346
346
|
<i class="fas fa-file" aria-hidden="true"></i>
|
|
@@ -533,7 +533,7 @@ cssPrefix: pf-c-multiple-file-upload
|
|
|
533
533
|
</span>
|
|
534
534
|
</button>
|
|
535
535
|
<div class="pf-c-expandable-section__content">
|
|
536
|
-
<ul class="pf-c-multiple-file-upload__status-list">
|
|
536
|
+
<ul class="pf-c-multiple-file-upload__status-list" role="list">
|
|
537
537
|
<li class="pf-c-multiple-file-upload__status-item">
|
|
538
538
|
<div class="pf-c-multiple-file-upload__status-item-icon">
|
|
539
539
|
<i class="fas fa-file" aria-hidden="true"></i>
|
|
@@ -687,25 +687,25 @@ cssPrefix: pf-c-multiple-file-upload
|
|
|
687
687
|
|
|
688
688
|
### Usage
|
|
689
689
|
|
|
690
|
-
| Class
|
|
691
|
-
|
|
|
692
|
-
| `.pf-c-multiple-file-upload`
|
|
693
|
-
| `.pf-c-multiple-file-upload__main`
|
|
694
|
-
| `.pf-c-multiple-file-upload__title`
|
|
695
|
-
| `.pf-c-multiple-file-upload__title-icon`
|
|
696
|
-
| `.pf-c-multiple-file-upload__title-text`
|
|
697
|
-
| `.pf-c-multiple-file-upload__title-text-separator`
|
|
698
|
-
| `.pf-c-multiple-file-upload__upload`
|
|
699
|
-
| `.pf-c-multiple-file-upload__info`
|
|
700
|
-
| `.pf-c-multiple-file-upload__status`
|
|
701
|
-
| `.pf-c-multiple-file-upload__status-progress`
|
|
702
|
-
| `.pf-c-multiple-file-upload__status-progress-icon`
|
|
703
|
-
| `.pf-c-multiple-file-upload__status-progress-text`
|
|
704
|
-
| `.pf-c-multiple-file-upload__status-list`
|
|
705
|
-
| `.pf-c-multiple-file-upload__status-item`
|
|
706
|
-
| `.pf-c-multiple-file-upload__status-item-icon`
|
|
707
|
-
| `.pf-c-multiple-file-upload__status-item-main`
|
|
708
|
-
| `.pf-c-multiple-file-upload__status-item-close`
|
|
709
|
-
| `.pf-c-multiple-file-upload__status-item-progress`
|
|
710
|
-
| `.pf-c-multiple-file-upload__status-item-progress-text` | `<div>` | Defines the status item progress description text.
|
|
711
|
-
| `.pf-c-multiple-file-upload__status-item-progress-size` | `<div>` | Defines the status item progress description size.
|
|
690
|
+
| Class | Applied | Outcome |
|
|
691
|
+
| -- | -- | -- |
|
|
692
|
+
| `.pf-c-multiple-file-upload` | `<div>` | Initiates the multiple file upload component. **Required** |
|
|
693
|
+
| `.pf-c-multiple-file-upload__main` | `<div>` | Defines the main section. |
|
|
694
|
+
| `.pf-c-multiple-file-upload__title` | `<div>` | Defines the title. |
|
|
695
|
+
| `.pf-c-multiple-file-upload__title-icon` | `<div>` | Defines the title icon. |
|
|
696
|
+
| `.pf-c-multiple-file-upload__title-text` | `<div>` | Defines the title text. |
|
|
697
|
+
| `.pf-c-multiple-file-upload__title-text-separator` | `<div>` | Defines the title text separator. |
|
|
698
|
+
| `.pf-c-multiple-file-upload__upload` | `<div>` | Defines the upload button. |
|
|
699
|
+
| `.pf-c-multiple-file-upload__info` | `<div>` | Defines the info section. |
|
|
700
|
+
| `.pf-c-multiple-file-upload__status` | `<div>` | Defines the status section. |
|
|
701
|
+
| `.pf-c-multiple-file-upload__status-progress` | `<div>` | Defines the status toggle progress. |
|
|
702
|
+
| `.pf-c-multiple-file-upload__status-progress-icon` | `<div>` | Defines the status toggle progress icon. |
|
|
703
|
+
| `.pf-c-multiple-file-upload__status-progress-text` | `<div>` | Defines the status toggle progress text. |
|
|
704
|
+
| `.pf-c-multiple-file-upload__status-list` | `<div>` | Defines the status item list. |
|
|
705
|
+
| `.pf-c-multiple-file-upload__status-item` | `<div>` | Defines a status item. |
|
|
706
|
+
| `.pf-c-multiple-file-upload__status-item-icon` | `<div>` | Defines the status item icon. |
|
|
707
|
+
| `.pf-c-multiple-file-upload__status-item-main` | `<div>` | Defines the status item main progress section. |
|
|
708
|
+
| `.pf-c-multiple-file-upload__status-item-close` | `<div>` | Defines the status item close button. |
|
|
709
|
+
| `.pf-c-multiple-file-upload__status-item-progress` | `<div>` | Defines the status item progress description. |
|
|
710
|
+
| `.pf-c-multiple-file-upload__status-item-progress-text` | `<div>` | Defines the status item progress description text. |
|
|
711
|
+
| `.pf-c-multiple-file-upload__status-item-progress-size` | `<div>` | Defines the status item progress description size. |
|