@patternfly/patternfly 5.0.0-alpha.2 → 5.0.0-alpha.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/RELEASE-NOTES.md +47 -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/_chart-globals.scss +0 -4
- package/base/_common.scss +0 -22
- package/base/patternfly-common.css +0 -10
- package/base/patternfly-icons.css +5 -1
- package/base/patternfly-pf-icons.css +5 -1
- package/components/Accordion/accordion.css +2 -0
- package/components/Accordion/accordion.scss +2 -0
- package/components/AppLauncher/app-launcher.css +2 -0
- package/components/AppLauncher/app-launcher.scss +2 -0
- package/components/Breadcrumb/breadcrumb.css +2 -0
- package/components/Breadcrumb/breadcrumb.scss +2 -0
- package/components/CalendarMonth/calendar-month.css +1 -1
- package/components/CalendarMonth/calendar-month.scss +1 -1
- package/components/Card/card.css +9 -12
- package/components/Card/card.scss +11 -17
- package/components/ChipGroup/chip-group.css +27 -17
- package/components/ChipGroup/chip-group.scss +36 -22
- package/components/Content/content.css +6 -0
- package/components/Content/content.scss +8 -0
- package/components/ContextSelector/context-selector.css +5 -1
- package/components/ContextSelector/context-selector.scss +6 -2
- package/components/DataList/data-list.css +2 -1
- package/components/DataList/data-list.scss +2 -1
- package/components/Drawer/drawer.css +13 -14
- package/components/Drawer/drawer.scss +0 -1
- package/components/Dropdown/dropdown.css +27 -10
- package/components/Dropdown/dropdown.scss +22 -0
- 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/FormControl/form-control.css +1 -1
- package/components/FormControl/themes/dark/form-control.scss +1 -1
- package/components/InputGroup/input-group.css +14 -0
- package/components/InputGroup/input-group.scss +9 -0
- package/components/InputGroup/themes/dark/input-group.scss +8 -0
- package/components/Label/label.css +2 -0
- package/components/Label/label.scss +2 -0
- package/components/LabelGroup/label-group.css +26 -22
- package/components/LabelGroup/label-group.scss +31 -26
- package/components/Login/login.css +1 -1
- package/components/Menu/menu.css +7 -0
- package/components/Menu/menu.scss +8 -0
- package/components/MenuToggle/menu-toggle.css +2 -0
- package/components/MenuToggle/menu-toggle.scss +2 -0
- package/components/ModalBox/modal-box.css +9 -8
- package/components/ModalBox/modal-box.scss +11 -11
- package/components/Page/page.css +60 -60
- package/components/Pagination/pagination.css +122 -2
- package/components/Pagination/pagination.scss +24 -1
- package/components/Popover/popover.css +2 -7
- package/components/Popover/themes/dark/popover.scss +2 -8
- package/components/Progress/progress.css +5 -2
- package/components/Progress/progress.scss +5 -2
- package/components/SearchInput/search-input.css +2 -0
- package/components/SearchInput/search-input.scss +2 -0
- package/components/Slider/slider.css +0 -7
- package/components/Slider/slider.scss +0 -9
- package/components/Table/table-grid.css +28 -28
- package/components/Table/table-tree-view.css +4 -4
- package/components/Tabs/tabs.css +0 -4
- package/components/Tabs/tabs.scss +0 -7
- package/components/TextInputGroup/text-input-group.css +4 -2
- package/components/TextInputGroup/text-input-group.scss +4 -3
- package/components/Toolbar/toolbar.css +65 -37
- package/components/Toolbar/toolbar.scss +37 -3
- 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 +2 -0
- package/components/Wizard/wizard.scss +2 -0
- 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 +61 -44
- package/docs/components/Check/examples/Check.md +15 -19
- package/docs/components/Chip/examples/Chip.md +13 -13
- package/docs/components/ChipGroup/examples/ChipGroup.md +15 -344
- 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 +311 -71
- 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 +24 -24
- package/docs/components/InputGroup/examples/InputGroup.md +10 -9
- package/docs/components/JumpLinks/examples/JumpLinks.md +35 -35
- package/docs/components/Label/examples/Label.md +31 -31
- package/docs/components/LabelGroup/examples/LabelGroup.md +24 -36
- package/docs/components/List/examples/List.md +18 -18
- package/docs/components/LogViewer/examples/LogViewer.md +69 -69
- 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 +129 -30
- package/docs/components/Panel/examples/Panel.md +10 -10
- package/docs/components/Popover/examples/Popover.md +34 -34
- 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 +143 -143
- package/docs/components/Sidebar/examples/Sidebar.md +14 -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 +30 -30
- 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.md +1272 -855
- package/docs/components/Tabs/examples/Tabs.md +149 -149
- package/docs/components/TextInputGroup/examples/TextInputGroup.md +19 -19
- 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 +165 -144
- 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 +63 -70
- 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 +10 -11
- package/docs/demos/Card/examples/Card.md +151 -116
- package/docs/demos/CardView/examples/CardView.md +16 -15
- package/docs/demos/ContextSelector/examples/ContextSelector.md +18 -18
- package/docs/demos/Dashboard/examples/Dashboard.md +10 -9
- package/docs/demos/DataList/examples/DataList.md +160 -111
- package/docs/demos/DescriptionList/examples/DescriptionList.md +12 -13
- package/docs/demos/Drawer/examples/Drawer.md +20 -20
- 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 +720 -767
- 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 +53 -49
- package/docs/demos/Skeleton/examples/Skeleton.md +4 -4
- package/docs/demos/Table/examples/Table.md +522 -378
- package/docs/demos/Tabs/examples/Tabs.md +120 -601
- package/docs/demos/Toolbar/examples/Toolbar.md +1781 -171
- package/docs/demos/Wizard/examples/Wizard.md +229 -225
- 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/Grid/grid.css +5 -5
- package/package.json +59 -64
- package/patternfly-base-no-reset.css +5 -11
- package/patternfly-base.css +5 -11
- package/patternfly-no-reset.css +524 -336
- package/patternfly.css +524 -336
- package/patternfly.min.css +1 -1
- package/patternfly.min.css.map +1 -1
- package/sass-utilities/scss-variables.scss +0 -1
|
@@ -818,12 +818,15 @@ cssPrefix: pf-c-dropdown
|
|
|
818
818
|
class="pf-c-dropdown__toggle-check"
|
|
819
819
|
for="dropdown-split-button-disabled-toggle-check"
|
|
820
820
|
>
|
|
821
|
-
<
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
821
|
+
<div class="pf-c-check pf-m-standalone">
|
|
822
|
+
<input
|
|
823
|
+
class="pf-c-check__input"
|
|
824
|
+
type="checkbox"
|
|
825
|
+
disabled
|
|
826
|
+
id="dropdown-split-button-disabled-toggle-check"
|
|
827
|
+
aria-label="Select all"
|
|
828
|
+
/>
|
|
829
|
+
</div>
|
|
827
830
|
</label>
|
|
828
831
|
|
|
829
832
|
<button
|
|
@@ -859,11 +862,14 @@ cssPrefix: pf-c-dropdown
|
|
|
859
862
|
class="pf-c-dropdown__toggle-check"
|
|
860
863
|
for="dropdown-split-button-toggle-check"
|
|
861
864
|
>
|
|
862
|
-
<
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
865
|
+
<div class="pf-c-check pf-m-standalone">
|
|
866
|
+
<input
|
|
867
|
+
class="pf-c-check__input"
|
|
868
|
+
type="checkbox"
|
|
869
|
+
id="dropdown-split-button-toggle-check"
|
|
870
|
+
aria-label="Select all"
|
|
871
|
+
/>
|
|
872
|
+
</div>
|
|
867
873
|
</label>
|
|
868
874
|
|
|
869
875
|
<button
|
|
@@ -898,11 +904,14 @@ cssPrefix: pf-c-dropdown
|
|
|
898
904
|
class="pf-c-dropdown__toggle-check"
|
|
899
905
|
for="dropdown-split-button-expanded-toggle-check"
|
|
900
906
|
>
|
|
901
|
-
<
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
907
|
+
<div class="pf-c-check pf-m-standalone">
|
|
908
|
+
<input
|
|
909
|
+
class="pf-c-check__input"
|
|
910
|
+
type="checkbox"
|
|
911
|
+
id="dropdown-split-button-expanded-toggle-check"
|
|
912
|
+
aria-label="Select all"
|
|
913
|
+
/>
|
|
914
|
+
</div>
|
|
906
915
|
</label>
|
|
907
916
|
|
|
908
917
|
<button
|
|
@@ -943,13 +952,16 @@ cssPrefix: pf-c-dropdown
|
|
|
943
952
|
class="pf-c-dropdown__toggle-check"
|
|
944
953
|
for="dropdown-split-button-text-toggle-check"
|
|
945
954
|
>
|
|
946
|
-
<
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
955
|
+
<div class="pf-c-check pf-m-standalone">
|
|
956
|
+
<input
|
|
957
|
+
class="pf-c-check__input"
|
|
958
|
+
type="checkbox"
|
|
959
|
+
checked
|
|
960
|
+
id="dropdown-split-button-text-toggle-check"
|
|
961
|
+
aria-label="Select all"
|
|
962
|
+
aria-labelledby="dropdown-split-button-text-toggle-check dropdown-split-button-text-toggle-check-text"
|
|
963
|
+
/>
|
|
964
|
+
</div>
|
|
953
965
|
<span
|
|
954
966
|
class="pf-c-dropdown__toggle-text"
|
|
955
967
|
aria-hidden="true"
|
|
@@ -982,6 +994,232 @@ cssPrefix: pf-c-dropdown
|
|
|
982
994
|
|
|
983
995
|
```
|
|
984
996
|
|
|
997
|
+
### Split button (progress checkbox)
|
|
998
|
+
|
|
999
|
+
```html isBeta
|
|
1000
|
+
<div class="pf-c-dropdown">
|
|
1001
|
+
<div class="pf-c-dropdown__toggle pf-m-split-button">
|
|
1002
|
+
<label
|
|
1003
|
+
class="pf-c-dropdown__toggle-check"
|
|
1004
|
+
for="dropdown-split-button-progress-toggle-check"
|
|
1005
|
+
>
|
|
1006
|
+
<div class="pf-c-check pf-m-standalone">
|
|
1007
|
+
<input
|
|
1008
|
+
class="pf-c-check__input"
|
|
1009
|
+
type="checkbox"
|
|
1010
|
+
id="dropdown-split-button-progress-toggle-check"
|
|
1011
|
+
aria-label="Select all"
|
|
1012
|
+
/>
|
|
1013
|
+
</div>
|
|
1014
|
+
<span class="pf-c-dropdown__toggle-progress">
|
|
1015
|
+
<svg class="pf-c-spinner" role="progressbar" viewBox="0 0 100 100">
|
|
1016
|
+
<circle
|
|
1017
|
+
class="pf-c-spinner__path"
|
|
1018
|
+
cx="50"
|
|
1019
|
+
cy="50"
|
|
1020
|
+
r="45"
|
|
1021
|
+
fill="none"
|
|
1022
|
+
/>
|
|
1023
|
+
</svg>
|
|
1024
|
+
</span>
|
|
1025
|
+
</label>
|
|
1026
|
+
|
|
1027
|
+
<button
|
|
1028
|
+
class="pf-c-dropdown__toggle-button"
|
|
1029
|
+
type="button"
|
|
1030
|
+
aria-expanded="false"
|
|
1031
|
+
id="dropdown-split-button-progress-toggle-button"
|
|
1032
|
+
aria-label="Dropdown toggle"
|
|
1033
|
+
>
|
|
1034
|
+
<i class="fas fa-caret-down" aria-hidden="true"></i>
|
|
1035
|
+
</button>
|
|
1036
|
+
</div>
|
|
1037
|
+
<ul class="pf-c-dropdown__menu" hidden>
|
|
1038
|
+
<li>
|
|
1039
|
+
<button class="pf-c-dropdown__menu-item" type="button">Actions</button>
|
|
1040
|
+
</li>
|
|
1041
|
+
<li>
|
|
1042
|
+
<button
|
|
1043
|
+
class="pf-c-dropdown__menu-item"
|
|
1044
|
+
type="button"
|
|
1045
|
+
disabled
|
|
1046
|
+
>Disabled action</button>
|
|
1047
|
+
</li>
|
|
1048
|
+
<li>
|
|
1049
|
+
<button class="pf-c-dropdown__menu-item" type="button">Other action</button>
|
|
1050
|
+
</li>
|
|
1051
|
+
</ul>
|
|
1052
|
+
</div>
|
|
1053
|
+
<div class="pf-c-dropdown">
|
|
1054
|
+
<div class="pf-c-dropdown__toggle pf-m-split-button">
|
|
1055
|
+
<label
|
|
1056
|
+
class="pf-c-dropdown__toggle-check pf-m-in-progress"
|
|
1057
|
+
for="dropdown-split-button-in-progress-toggle-check"
|
|
1058
|
+
>
|
|
1059
|
+
<div class="pf-c-check pf-m-standalone">
|
|
1060
|
+
<input
|
|
1061
|
+
class="pf-c-check__input"
|
|
1062
|
+
type="checkbox"
|
|
1063
|
+
disabled
|
|
1064
|
+
id="dropdown-split-button-in-progress-toggle-check"
|
|
1065
|
+
aria-label="Select all"
|
|
1066
|
+
/>
|
|
1067
|
+
</div>
|
|
1068
|
+
<span class="pf-c-dropdown__toggle-progress">
|
|
1069
|
+
<svg class="pf-c-spinner" role="progressbar" viewBox="0 0 100 100">
|
|
1070
|
+
<circle
|
|
1071
|
+
class="pf-c-spinner__path"
|
|
1072
|
+
cx="50"
|
|
1073
|
+
cy="50"
|
|
1074
|
+
r="45"
|
|
1075
|
+
fill="none"
|
|
1076
|
+
/>
|
|
1077
|
+
</svg>
|
|
1078
|
+
</span>
|
|
1079
|
+
</label>
|
|
1080
|
+
|
|
1081
|
+
<button
|
|
1082
|
+
class="pf-c-dropdown__toggle-button"
|
|
1083
|
+
type="button"
|
|
1084
|
+
aria-expanded="false"
|
|
1085
|
+
id="dropdown-split-button-in-progress-toggle-button"
|
|
1086
|
+
aria-label="Dropdown toggle"
|
|
1087
|
+
>
|
|
1088
|
+
<i class="fas fa-caret-down" aria-hidden="true"></i>
|
|
1089
|
+
</button>
|
|
1090
|
+
</div>
|
|
1091
|
+
<ul class="pf-c-dropdown__menu" hidden>
|
|
1092
|
+
<li>
|
|
1093
|
+
<button class="pf-c-dropdown__menu-item" type="button">Actions</button>
|
|
1094
|
+
</li>
|
|
1095
|
+
<li>
|
|
1096
|
+
<button
|
|
1097
|
+
class="pf-c-dropdown__menu-item"
|
|
1098
|
+
type="button"
|
|
1099
|
+
disabled
|
|
1100
|
+
>Disabled action</button>
|
|
1101
|
+
</li>
|
|
1102
|
+
<li>
|
|
1103
|
+
<button class="pf-c-dropdown__menu-item" type="button">Other action</button>
|
|
1104
|
+
</li>
|
|
1105
|
+
</ul>
|
|
1106
|
+
</div>
|
|
1107
|
+
<div class="pf-c-dropdown">
|
|
1108
|
+
<div class="pf-c-dropdown__toggle pf-m-split-button">
|
|
1109
|
+
<label
|
|
1110
|
+
class="pf-c-dropdown__toggle-check"
|
|
1111
|
+
for="dropdown-split-button-progress-text-toggle-check"
|
|
1112
|
+
>
|
|
1113
|
+
<div class="pf-c-check pf-m-standalone">
|
|
1114
|
+
<input
|
|
1115
|
+
class="pf-c-check__input"
|
|
1116
|
+
type="checkbox"
|
|
1117
|
+
checked
|
|
1118
|
+
id="dropdown-split-button-progress-text-toggle-check"
|
|
1119
|
+
aria-label="Select all"
|
|
1120
|
+
aria-labelledby="dropdown-split-button-progress-text-toggle-check dropdown-split-button-progress-text-toggle-check-text"
|
|
1121
|
+
/>
|
|
1122
|
+
</div>
|
|
1123
|
+
<span class="pf-c-dropdown__toggle-progress">
|
|
1124
|
+
<svg class="pf-c-spinner" role="progressbar" viewBox="0 0 100 100">
|
|
1125
|
+
<circle
|
|
1126
|
+
class="pf-c-spinner__path"
|
|
1127
|
+
cx="50"
|
|
1128
|
+
cy="50"
|
|
1129
|
+
r="45"
|
|
1130
|
+
fill="none"
|
|
1131
|
+
/>
|
|
1132
|
+
</svg>
|
|
1133
|
+
</span>
|
|
1134
|
+
<span
|
|
1135
|
+
class="pf-c-dropdown__toggle-text"
|
|
1136
|
+
aria-hidden="true"
|
|
1137
|
+
id="dropdown-split-button-progress-text-toggle-check-text"
|
|
1138
|
+
>10 selected</span>
|
|
1139
|
+
</label>
|
|
1140
|
+
|
|
1141
|
+
<button
|
|
1142
|
+
class="pf-c-dropdown__toggle-button"
|
|
1143
|
+
type="button"
|
|
1144
|
+
aria-expanded="false"
|
|
1145
|
+
id="dropdown-split-button-progress-text-toggle-button"
|
|
1146
|
+
aria-label="Dropdown toggle"
|
|
1147
|
+
>
|
|
1148
|
+
<i class="fas fa-caret-down" aria-hidden="true"></i>
|
|
1149
|
+
</button>
|
|
1150
|
+
</div>
|
|
1151
|
+
<ul class="pf-c-dropdown__menu" hidden>
|
|
1152
|
+
<li>
|
|
1153
|
+
<button class="pf-c-dropdown__menu-item" type="button">Select all</button>
|
|
1154
|
+
</li>
|
|
1155
|
+
<li>
|
|
1156
|
+
<button class="pf-c-dropdown__menu-item" type="button">Select none</button>
|
|
1157
|
+
</li>
|
|
1158
|
+
<li>
|
|
1159
|
+
<button class="pf-c-dropdown__menu-item" type="button">Other action</button>
|
|
1160
|
+
</li>
|
|
1161
|
+
</ul>
|
|
1162
|
+
</div>
|
|
1163
|
+
<div class="pf-c-dropdown">
|
|
1164
|
+
<div class="pf-c-dropdown__toggle pf-m-split-button">
|
|
1165
|
+
<label
|
|
1166
|
+
class="pf-c-dropdown__toggle-check pf-m-in-progress"
|
|
1167
|
+
for="dropdown-split-button-in-progress-text-toggle-check"
|
|
1168
|
+
>
|
|
1169
|
+
<div class="pf-c-check pf-m-standalone">
|
|
1170
|
+
<input
|
|
1171
|
+
class="pf-c-check__input"
|
|
1172
|
+
type="checkbox"
|
|
1173
|
+
checked
|
|
1174
|
+
disabled
|
|
1175
|
+
id="dropdown-split-button-in-progress-text-toggle-check"
|
|
1176
|
+
aria-label="Select all"
|
|
1177
|
+
aria-labelledby="dropdown-split-button-in-progress-text-toggle-check dropdown-split-button-in-progress-text-toggle-check-text"
|
|
1178
|
+
/>
|
|
1179
|
+
</div>
|
|
1180
|
+
<span class="pf-c-dropdown__toggle-progress">
|
|
1181
|
+
<svg class="pf-c-spinner" role="progressbar" viewBox="0 0 100 100">
|
|
1182
|
+
<circle
|
|
1183
|
+
class="pf-c-spinner__path"
|
|
1184
|
+
cx="50"
|
|
1185
|
+
cy="50"
|
|
1186
|
+
r="45"
|
|
1187
|
+
fill="none"
|
|
1188
|
+
/>
|
|
1189
|
+
</svg>
|
|
1190
|
+
</span>
|
|
1191
|
+
<span
|
|
1192
|
+
class="pf-c-dropdown__toggle-text"
|
|
1193
|
+
aria-hidden="true"
|
|
1194
|
+
id="dropdown-split-button-in-progress-text-toggle-check-text"
|
|
1195
|
+
>10 selected</span>
|
|
1196
|
+
</label>
|
|
1197
|
+
|
|
1198
|
+
<button
|
|
1199
|
+
class="pf-c-dropdown__toggle-button"
|
|
1200
|
+
type="button"
|
|
1201
|
+
aria-expanded="false"
|
|
1202
|
+
id="dropdown-split-button-in-progress-text-toggle-button"
|
|
1203
|
+
aria-label="Dropdown toggle"
|
|
1204
|
+
>
|
|
1205
|
+
<i class="fas fa-caret-down" aria-hidden="true"></i>
|
|
1206
|
+
</button>
|
|
1207
|
+
</div>
|
|
1208
|
+
<ul class="pf-c-dropdown__menu" hidden>
|
|
1209
|
+
<li>
|
|
1210
|
+
<button class="pf-c-dropdown__menu-item" type="button">Select all</button>
|
|
1211
|
+
</li>
|
|
1212
|
+
<li>
|
|
1213
|
+
<button class="pf-c-dropdown__menu-item" type="button">Select none</button>
|
|
1214
|
+
</li>
|
|
1215
|
+
<li>
|
|
1216
|
+
<button class="pf-c-dropdown__menu-item" type="button">Other action</button>
|
|
1217
|
+
</li>
|
|
1218
|
+
</ul>
|
|
1219
|
+
</div>
|
|
1220
|
+
|
|
1221
|
+
```
|
|
1222
|
+
|
|
985
1223
|
### Split button (action)
|
|
986
1224
|
|
|
987
1225
|
```html
|
|
@@ -2056,54 +2294,56 @@ The dropdown menu can contain either links or buttons, depending on the expected
|
|
|
2056
2294
|
|
|
2057
2295
|
### Accessibility
|
|
2058
2296
|
|
|
2059
|
-
| Attribute
|
|
2060
|
-
|
|
|
2061
|
-
| `aria-expanded="false"`
|
|
2062
|
-
| `aria-expanded="true"`
|
|
2063
|
-
| `aria-label="Actions"`
|
|
2064
|
-
| `aria-hidden="true"`
|
|
2065
|
-
| `hidden`
|
|
2066
|
-
| `aria-labelledby="{toggle button id}"`
|
|
2067
|
-
| `aria-labelledby="{checkbox id} {toggle text id}"` | `.pf-m-split-button .pf-c-dropdown__toggle-check > input[type="checkbox"]`
|
|
2068
|
-
| `disabled`
|
|
2069
|
-
| `disabled`
|
|
2070
|
-
| `aria-disabled="true"`
|
|
2071
|
-
| `tabindex="-1"`
|
|
2297
|
+
| Attribute | Applied | Outcome |
|
|
2298
|
+
| -- | -- | -- |
|
|
2299
|
+
| `aria-expanded="false"` | `.pf-c-dropdown__toggle`, `.pf-c-dropdown__toggle-check`, `.pf-c-dropdown__toggle-button` | Indicates that the menu is hidden. |
|
|
2300
|
+
| `aria-expanded="true"` | `.pf-c-dropdown__toggle`, `.pf-c-dropdown__toggle-check`, `.pf-c-dropdown__toggle-button` | Indicates that the menu is visible. |
|
|
2301
|
+
| `aria-label="Actions"` | `.pf-c-dropdown__toggle`, `.pf-c-dropdown__toggle-check`, `.pf-c-dropdown__toggle-button` | Provides an accessible name for the dropdown when an icon is used instead of text. **Required when icon is used with no supporting text**. |
|
|
2302
|
+
| `aria-hidden="true"` | `.pf-c-dropdown__toggle-icon`, `<i>`, `.pf-c-dropdown__toggle-check .pf-c-dropdown__toggle-text` | Hides the icon from assistive technologies. |
|
|
2303
|
+
| `hidden` | `.pf-c-dropdown__menu` | Indicates that the menu is hidden so that it isn't visible in the UI and isn't accessed by assistive technologies. |
|
|
2304
|
+
| `aria-labelledby="{toggle button id}"` | `.pf-c-dropdown__menu` | Gives the menu an accessible name by referring to the element that toggles the menu. |
|
|
2305
|
+
| `aria-labelledby="{checkbox id} {toggle text id}"` | `.pf-m-split-button .pf-c-dropdown__toggle-check > input[type="checkbox"]` | Gives the checkbox an accessible name by referring to the element by which it is described. |
|
|
2306
|
+
| `disabled` | `.pf-c-dropdown__toggle`, `.pf-c-dropdown__toggle-button`, `.pf-c-dropdown__toggle-check > input[type="checkbox"]` | Disables the dropdown toggle and removes it from keyboard focus. |
|
|
2307
|
+
| `disabled` | `button.pf-c-dropdown__menu-item` | When the menu item uses a button element, indicates that it is unavailable and removes it from keyboard focus. |
|
|
2308
|
+
| `aria-disabled="true"` | `a.pf-c-dropdown__menu-item` | When the menu item uses a link element, indicates that it is unavailable. |
|
|
2309
|
+
| `tabindex="-1"` | `a.pf-c-dropdown__menu-item` | When the menu item uses a link element, removes it from keyboard focus. |
|
|
2072
2310
|
|
|
2073
2311
|
### Usage
|
|
2074
2312
|
|
|
2075
|
-
| Class
|
|
2076
|
-
|
|
|
2077
|
-
| `.pf-c-dropdown`
|
|
2078
|
-
| `.pf-c-dropdown__toggle`
|
|
2079
|
-
| `.pf-c-dropdown__toggle-icon`
|
|
2080
|
-
| `.pf-c-dropdown__toggle-text`
|
|
2081
|
-
| `.pf-c-dropdown__toggle-check`
|
|
2082
|
-
| `.pf-c-dropdown__toggle-button`
|
|
2083
|
-
| `.pf-c-
|
|
2084
|
-
| `.pf-c-dropdown__menu
|
|
2085
|
-
| `.pf-c-dropdown__menu-item
|
|
2086
|
-
| `.pf-c-dropdown__menu-item-
|
|
2087
|
-
| `.pf-c-dropdown__menu-item-
|
|
2088
|
-
| `.pf-c-
|
|
2089
|
-
| `.pf-c-
|
|
2090
|
-
| `.pf-c-
|
|
2091
|
-
| `.pf-c-dropdown__group
|
|
2092
|
-
| `.pf-
|
|
2093
|
-
| `.pf-m-
|
|
2094
|
-
| `.pf-m-
|
|
2095
|
-
| `.pf-m-align-
|
|
2096
|
-
| `.pf-m-
|
|
2097
|
-
| `.pf-m-
|
|
2098
|
-
| `.pf-m-
|
|
2099
|
-
| `.pf-m-
|
|
2100
|
-
| `.pf-m-
|
|
2101
|
-
| `.pf-m-
|
|
2102
|
-
| `.pf-m-
|
|
2103
|
-
| `.pf-m-
|
|
2104
|
-
| `.pf-m-
|
|
2105
|
-
| `.pf-m-
|
|
2106
|
-
| `.pf-m-disabled`
|
|
2107
|
-
| `.pf-m-
|
|
2108
|
-
| `.pf-m-
|
|
2109
|
-
| `.pf-m-
|
|
2313
|
+
| Class | Applied | Outcome |
|
|
2314
|
+
| -- | -- | -- |
|
|
2315
|
+
| `.pf-c-dropdown` | `<div>` | Defines the parent wrapper of the dropdown. |
|
|
2316
|
+
| `.pf-c-dropdown__toggle` | `<button>` | Defines the dropdown toggle. |
|
|
2317
|
+
| `.pf-c-dropdown__toggle-icon` | `<span>` | Defines the dropdown toggle icon. |
|
|
2318
|
+
| `.pf-c-dropdown__toggle-text` | `<span>` | Defines the dropdown toggle text. **Required when text is present, adds truncation**. |
|
|
2319
|
+
| `.pf-c-dropdown__toggle-check` | `<label>` | Defines a checkbox in the toggle area of a split button dropdown. |
|
|
2320
|
+
| `.pf-c-dropdown__toggle-button` | `<button>` | Defines the toggle button for a split button dropdown. |
|
|
2321
|
+
| `.pf-c-dropdown__toggle-progress` | `<span>` | Defines the progress element to indicate a dropdown action is in progress. |
|
|
2322
|
+
| `.pf-c-dropdown__menu` | `<ul>`, `<div>` | Defines the parent wrapper of the menu items. |
|
|
2323
|
+
| `.pf-c-dropdown__menu-item` | `<a>` | Defines a menu item that navigates to another page. |
|
|
2324
|
+
| `.pf-c-dropdown__menu-item-icon` | `<span>` | Defines the wrapper for the menu item icon. |
|
|
2325
|
+
| `.pf-c-dropdown__menu-item-description` | `<div>` | Defines the wrapper for the menu item description. |
|
|
2326
|
+
| `.pf-c-dropdown__menu-item-main` | `<div>` | Defines the wrapper for the menu item main element. Use when the description element is present. |
|
|
2327
|
+
| `.pf-c-dropdown__toggle-image` | `<span>` | Defines the wrapper for the dropdown toggle button image. |
|
|
2328
|
+
| `.pf-c-dropdown__menu-item` | `<button>` | Defines a menu item that performs an action on the current page. |
|
|
2329
|
+
| `.pf-c-dropdown__group` | `<section>` | Defines a group of items in a dropdown. **Required when there is more than one group in a dropdown**. |
|
|
2330
|
+
| `.pf-c-dropdown__group-title` | `<h1>` | Defines the title for a group of items in the dropdown menu. |
|
|
2331
|
+
| `.pf-m-expanded` | `.pf-c-dropdown` | Modifies for the expanded state. |
|
|
2332
|
+
| `.pf-m-top` | `.pf-c-dropdown` | Modifies to display the menu above the toggle. |
|
|
2333
|
+
| `.pf-m-align-left{-on-[breakpoint]}` | `.pf-c-dropdown__menu` | Modifies to display the menu aligned to the left edge of the toggle at optional [breakpoint](/developer-resources/global-css-variables#breakpoint-variables-and-class-suffixes). |
|
|
2334
|
+
| `.pf-m-align-right{-on-[breakpoint]}` | `.pf-c-dropdown__menu` | Modifies to display the menu aligned to the right edge of the toggle at optional [breakpoint](/developer-resources/global-css-variables#breakpoint-variables-and-class-suffixes). |
|
|
2335
|
+
| `.pf-m-static` | `.pf-c-dropdown__menu` | Modifies a dropdown menu to be statically positioned to support custom positioning. |
|
|
2336
|
+
| `.pf-m-split-button` | `.pf-c-dropdown__toggle` | Modifies the dropdown toggle area to allow for interactive elements. |
|
|
2337
|
+
| `.pf-m-action` | `.pf-c-dropdown__toggle.pf-m-split-button` | Modifies the dropdown toggle for when an action is placed beside a toggle button in a split button dropdown. |
|
|
2338
|
+
| `.pf-m-text` | `.pf-c-dropdown__menu-item` | Modifies a menu item to be non-interactive text. |
|
|
2339
|
+
| `.pf-m-plain` | `.pf-c-dropdown__toggle` | Modifies to display the toggle with no border. |
|
|
2340
|
+
| `.pf-m-text` | `.pf-c-dropdown__toggle` | Modifies the dropdown toggle for the text variation. |
|
|
2341
|
+
| `.pf-m-primary` | `.pf-c-dropdown__toggle` | Modifies to display the toggle with primary styles. |
|
|
2342
|
+
| `.pf-m-secondary` | `.pf-c-dropdown__toggle` | Modifies to display the toggle with secondary styles. |
|
|
2343
|
+
| `.pf-m-full-height` | `.pf-c-dropdown` | Modifies a dropdown to full height of parent. See masthead for use. |
|
|
2344
|
+
| `.pf-m-disabled` | `a.pf-c-dropdown__menu-item` | Modifies to display the menu item as disabled. This applies to `a.pf-c-dropdown__menu-item` and should not be used in lieu of the `disabled` attribute on `button.pf-c-dropdown__menu-item`. |
|
|
2345
|
+
| `.pf-m-disabled` | `div.pf-c-dropdown__toggle` | Modifies to display the dropdown toggle as disabled. This applies to `div.pf-c-dropdown__toggle` and should not be used in lieu of the `disabled` attribute on `button.pf-c-dropdown__toggle`. When this is used, `disabled` should also be added to any form elements in `div.pf-c-dropdown__toggle`. |
|
|
2346
|
+
| `.pf-m-icon` | `.pf-c-dropdown__menu-item` | Modifies an item to support adding an icon. |
|
|
2347
|
+
| `.pf-m-active` | `.pf-c-dropdown__toggle` | Modifies the dropdown menu toggle for the active state. |
|
|
2348
|
+
| `.pf-m-description` | `.pf-c-dropdown__menu-item` | Modifies an item to support adding a description. |
|
|
2349
|
+
| `.pf-m-in-progress` | `.pf-c-dropdown__toggle-check` | Modifies a toggle check element to indicate the check action is in progress. |
|