@patternfly/patternfly 5.1.0-prerelease.2 → 5.1.0-prerelease.21
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 +10 -0
- package/assets/icons/iconUnicodes.json +1 -0
- package/assets/pficon/pf-v5-pficon.woff2 +0 -0
- package/assets/pficon/pficon.scss +6 -129
- package/base/_common.scss +22 -0
- package/base/_globals.scss +1 -1
- package/base/_variables.scss +7 -0
- package/base/patternfly-common.css +17 -2
- package/base/patternfly-globals.css +1 -1
- package/base/patternfly-icons.css +5 -1
- package/base/patternfly-pf-icons.css +5 -1
- package/base/patternfly-variables.css +5 -0
- package/components/AboutModalBox/about-modal-box.css +20 -13
- package/components/AboutModalBox/about-modal-box.scss +20 -13
- package/components/Accordion/accordion.css +33 -20
- package/components/Accordion/accordion.scss +32 -20
- package/components/ActionList/action-list.css +2 -2
- package/components/ActionList/action-list.scss +2 -2
- package/components/Alert/alert-group.css +7 -4
- package/components/Alert/alert-group.scss +7 -4
- package/components/Alert/alert.css +19 -13
- package/components/Alert/alert.scss +18 -13
- package/components/AppLauncher/app-launcher.css +32 -23
- package/components/AppLauncher/app-launcher.scss +32 -23
- package/components/BackToTop/back-to-top.css +2 -2
- package/components/BackToTop/back-to-top.scss +2 -2
- 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 +2 -2
- package/components/Badge/badge.scss +2 -2
- package/components/Banner/banner.css +5 -2
- package/components/Banner/banner.scss +5 -2
- package/components/Breadcrumb/breadcrumb.css +9 -3
- package/components/Breadcrumb/breadcrumb.scss +8 -3
- package/components/Button/button.css +23 -17
- package/components/Button/button.scss +22 -16
- 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 +24 -16
- package/components/Card/card.scss +23 -16
- package/components/Check/check.css +2 -2
- package/components/Check/check.scss +2 -2
- 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 +33 -30
- package/components/Content/content.scss +33 -30
- 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 -49
- package/components/DataList/data-list-grid.scss +3 -3
- package/components/DataList/data-list.css +69 -84
- 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 -61
- package/components/Drawer/drawer.scss +92 -43
- package/components/Dropdown/dropdown.css +75 -66
- package/components/Dropdown/dropdown.scss +65 -56
- 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 +17 -10
- package/components/ExpandableSection/expandable-section.scss +15 -10
- 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 +21 -11
- package/components/FormControl/form-control.scss +21 -11
- package/components/HelperText/helper-text.css +1 -1
- package/components/HelperText/helper-text.scss +1 -1
- package/components/Hint/hint.css +9 -6
- package/components/Hint/hint.scss +9 -6
- package/components/Icon/icon.css +1 -1
- package/components/Icon/icon.scss +1 -1
- package/components/InlineEdit/inline-edit.css +4 -4
- package/components/InlineEdit/inline-edit.scss +4 -4
- 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 +9 -9
- package/components/List/list.scss +9 -9
- package/components/LogViewer/log-viewer.css +14 -14
- package/components/LogViewer/log-viewer.scss +14 -14
- package/components/Login/login.css +36 -27
- package/components/Login/login.scss +36 -27
- package/components/Masthead/masthead.css +19 -22
- package/components/Masthead/masthead.scss +19 -22
- package/components/Menu/menu.css +80 -66
- package/components/Menu/menu.scss +81 -69
- package/components/MenuToggle/menu-toggle.css +41 -29
- package/components/MenuToggle/menu-toggle.scss +41 -29
- package/components/ModalBox/modal-box.css +19 -19
- package/components/ModalBox/modal-box.scss +20 -20
- package/components/MultipleFileUpload/multiple-file-upload.css +11 -8
- package/components/MultipleFileUpload/multiple-file-upload.scss +11 -8
- package/components/Nav/nav.css +120 -93
- package/components/Nav/nav.scss +120 -93
- package/components/Nav/themes/dark/nav.scss +2 -2
- package/components/NotificationBadge/notification-badge.css +13 -7
- package/components/NotificationBadge/notification-badge.scss +13 -7
- package/components/NotificationDrawer/notification-drawer.css +32 -19
- package/components/NotificationDrawer/notification-drawer.scss +30 -19
- package/components/NumberInput/number-input.css +3 -3
- 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 +123 -65
- package/components/Page/page.scss +69 -40
- package/components/Page/themes/dark/page.scss +1 -1
- package/components/Pagination/pagination.css +28 -18
- 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 +82 -31
- package/components/Popover/popover.scss +104 -45
- package/components/Progress/progress.css +7 -7
- package/components/Progress/progress.scss +7 -7
- package/components/ProgressStepper/progress-stepper.css +26 -20
- package/components/ProgressStepper/progress-stepper.scss +25 -19
- package/components/Radio/radio.css +4 -5
- package/components/Radio/radio.scss +4 -5
- 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 +3 -3
- package/components/SkipToContent/skip-to-content.scss +3 -3
- package/components/Slider/slider.css +47 -26
- package/components/Slider/slider.scss +56 -28
- package/components/Switch/switch.css +9 -5
- package/components/Switch/switch.scss +10 -6
- package/components/TabContent/tab-content.css +4 -1
- package/components/TabContent/tab-content.scss +4 -1
- package/components/Table/table-grid.css +256 -219
- package/components/Table/table-grid.scss +53 -39
- 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 +91 -69
- package/components/Table/table.scss +89 -69
- 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/ToggleGroup/toggle-group.css +14 -11
- package/components/ToggleGroup/toggle-group.scss +14 -11
- package/components/Toolbar/toolbar.css +44 -41
- package/components/Toolbar/toolbar.scss +24 -21
- package/components/Tooltip/tooltip.css +76 -25
- package/components/Tooltip/tooltip.scss +100 -41
- package/components/TreeView/tree-view.css +48 -27
- package/components/TreeView/tree-view.scss +51 -29
- 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/AppLauncher/deprecated/application-launcher.md +155 -70
- package/docs/components/Badge/examples/Badge.md +16 -4
- package/docs/components/Breadcrumb/examples/Breadcrumb.md +11 -5
- package/docs/components/Button/examples/Button.css +2 -2
- package/docs/components/Button/examples/Button.md +1 -0
- package/docs/components/Card/examples/Card.md +152 -64
- package/docs/components/Chip/examples/Chip.md +1 -1
- package/docs/components/ContextSelector/deprecated/context-selector.md +198 -96
- package/docs/components/DataList/examples/DataList.md +391 -136
- package/docs/components/DragDrop/examples/DragDrop.css +2 -2
- package/docs/components/Dropdown/deprecated/Dropdown.css +1 -1
- package/docs/components/Dropdown/deprecated/Dropdown.md +881 -367
- package/docs/components/DualListSelector/examples/DualListSelector.md +368 -128
- package/docs/components/FormControl/examples/FormControl.md +2 -1
- package/docs/components/Hint/examples/Hint.md +57 -24
- package/docs/components/InlineEdit/examples/InlineEdit.md +46 -16
- 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 +40 -30
- package/docs/components/Menu/examples/Menu.md +41 -20
- package/docs/components/MenuToggle/examples/MenuToggle.md +1 -1
- package/docs/components/ModalBox/examples/ModalBox.css +3 -8
- package/docs/components/Nav/examples/Navigation.css +3 -26
- package/docs/components/Nav/examples/Navigation.md +99 -0
- package/docs/components/NotificationDrawer/examples/NotificationDrawer.md +619 -240
- package/docs/components/OptionsMenu/deprecated/options-menu.md +403 -160
- package/docs/components/OverflowMenu/examples/overflow-menu.md +45 -34
- package/docs/components/Pagination/examples/Pagination.md +195 -65
- package/docs/components/Popover/examples/Popover.css +3 -9
- package/docs/components/Popover/examples/Popover.md +4 -4
- package/docs/components/ProgressStepper/examples/ProgressStepper.md +50 -0
- package/docs/components/Select/deprecated/Select.css +3 -3
- package/docs/components/Select/deprecated/Select.md +40 -52
- package/docs/components/Table/examples/Table.css +2 -2
- package/docs/components/Table/examples/Table.md +4548 -1670
- package/docs/components/Tabs/examples/Tabs.md +1094 -438
- package/docs/components/TextInputGroup/examples/TextInputGroup.css +1 -1
- package/docs/components/Tile/examples/Tile.css +1 -1
- package/docs/components/Toolbar/examples/Toolbar.md +218 -128
- package/docs/components/Tooltip/examples/Tooltip.css +4 -0
- package/docs/components/Tooltip/examples/Tooltip.md +8 -6
- package/docs/components/TreeView/examples/TreeView.md +23 -8
- package/docs/components/Truncate/examples/Truncate.md +2 -2
- package/docs/components/Wizard/examples/Wizard.md +75 -36
- package/docs/demos/Card/examples/Card.css +3 -3
- package/docs/demos/Card/examples/Card.md +72 -31
- package/docs/demos/CardView/examples/CardView.md +182 -74
- package/docs/demos/ContextSelector/examples/ContextSelector.md +95 -47
- package/docs/demos/Dashboard/examples/Dashboard.md +18 -9
- package/docs/demos/DataList/examples/DataList.md +163 -70
- package/docs/demos/DescriptionList/examples/DescriptionList.md +20 -9
- package/docs/demos/Drawer/examples/Drawer.md +20 -9
- package/docs/demos/NotificationDrawer/examples/NotificationDrawer.md +803 -338
- package/docs/demos/PrimaryDetail/examples/PrimaryDetail.md +241 -101
- package/docs/demos/Skeleton/examples/Skeleton.md +7 -35
- package/docs/demos/Table/examples/Table.md +1422 -607
- package/docs/demos/Tabs/examples/Tabs.md +113 -48
- package/docs/demos/Toolbar/examples/Toolbar.md +318 -123
- package/docs/demos/Wizard/examples/Wizard.md +191 -41
- 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 +40 -37
- package/patternfly-addons.css +732 -972
- package/patternfly-base-no-globals-theme-dark-unversioned.css +27 -3
- package/patternfly-base-no-globals.css +27 -3
- package/patternfly-base-theme-dark-unversioned.css +28 -4
- package/patternfly-base.css +28 -4
- package/patternfly-no-globals.css +2687 -1894
- package/patternfly-theme-dark-unversioned.css +2688 -1895
- package/patternfly.css +2688 -1895
- 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/placeholders.scss +1 -1
- package/sass-utilities/scss-variables.scss +8 -8
- package/utilities/Accessibility/accessibility.css +12 -12
- package/utilities/Spacing/spacing.css +720 -960
- package/utilities/Spacing/spacing.scss +4 -8
|
@@ -4795,9 +4795,14 @@ cssPrefix: pf-v5-c-menu
|
|
|
4795
4795
|
<ul
|
|
4796
4796
|
class="pf-v5-c-dropdown__menu"
|
|
4797
4797
|
aria-labelledby="drilldown-with-breadcrumbs-level-3-breadcrumb-breadcrumb-dropdown-button"
|
|
4798
|
+
role="menu"
|
|
4798
4799
|
>
|
|
4799
|
-
<li>
|
|
4800
|
-
<button
|
|
4800
|
+
<li role="none">
|
|
4801
|
+
<button
|
|
4802
|
+
class="pf-v5-c-dropdown__menu-item"
|
|
4803
|
+
role="menuitem"
|
|
4804
|
+
type="button"
|
|
4805
|
+
>
|
|
4801
4806
|
<span class="pf-v5-c-dropdown__menu-item-icon">
|
|
4802
4807
|
<i class="fas fa-angle-left" aria-hidden="true"></i>
|
|
4803
4808
|
</span>Edit
|
|
@@ -5039,16 +5044,25 @@ cssPrefix: pf-v5-c-menu
|
|
|
5039
5044
|
<ul
|
|
5040
5045
|
class="pf-v5-c-dropdown__menu"
|
|
5041
5046
|
aria-labelledby="drilldown-with-breadcrumbs-level-4-breadcrumb-breadcrumb-dropdown-button"
|
|
5047
|
+
role="menu"
|
|
5042
5048
|
>
|
|
5043
|
-
<li>
|
|
5044
|
-
<button
|
|
5049
|
+
<li role="none">
|
|
5050
|
+
<button
|
|
5051
|
+
class="pf-v5-c-dropdown__menu-item"
|
|
5052
|
+
role="menuitem"
|
|
5053
|
+
type="button"
|
|
5054
|
+
>
|
|
5045
5055
|
<span class="pf-v5-c-dropdown__menu-item-icon">
|
|
5046
5056
|
<i class="fas fa-angle-left" aria-hidden="true"></i>
|
|
5047
5057
|
</span>Edit
|
|
5048
5058
|
</button>
|
|
5049
5059
|
</li>
|
|
5050
|
-
<li>
|
|
5051
|
-
<button
|
|
5060
|
+
<li role="none">
|
|
5061
|
+
<button
|
|
5062
|
+
class="pf-v5-c-dropdown__menu-item"
|
|
5063
|
+
role="menuitem"
|
|
5064
|
+
type="button"
|
|
5065
|
+
>
|
|
5052
5066
|
<span class="pf-v5-c-dropdown__menu-item-icon">
|
|
5053
5067
|
<i class="fas fa-angle-left" aria-hidden="true"></i>
|
|
5054
5068
|
</span>Deployment
|
|
@@ -6222,20 +6236,26 @@ cssPrefix: pf-v5-c-menu
|
|
|
6222
6236
|
</a>
|
|
6223
6237
|
</li>
|
|
6224
6238
|
<li class="pf-v5-c-menu__list-item pf-m-loading" role="none">
|
|
6225
|
-
<
|
|
6226
|
-
class="pf-v5-c-
|
|
6227
|
-
|
|
6228
|
-
|
|
6229
|
-
|
|
6230
|
-
|
|
6231
|
-
|
|
6232
|
-
|
|
6233
|
-
|
|
6234
|
-
|
|
6235
|
-
|
|
6236
|
-
|
|
6237
|
-
|
|
6238
|
-
|
|
6239
|
+
<button class="pf-v5-c-menu__item" type="button" role="menuitem">
|
|
6240
|
+
<span class="pf-v5-c-menu__item-main">
|
|
6241
|
+
<span class="pf-v5-c-menu__item-text">
|
|
6242
|
+
<svg
|
|
6243
|
+
class="pf-v5-c-spinner pf-m-lg"
|
|
6244
|
+
role="progressbar"
|
|
6245
|
+
viewBox="0 0 100 100"
|
|
6246
|
+
aria-label="Loading items"
|
|
6247
|
+
>
|
|
6248
|
+
<circle
|
|
6249
|
+
class="pf-v5-c-spinner__path"
|
|
6250
|
+
cx="50"
|
|
6251
|
+
cy="50"
|
|
6252
|
+
r="45"
|
|
6253
|
+
fill="none"
|
|
6254
|
+
/>
|
|
6255
|
+
</svg>
|
|
6256
|
+
</span>
|
|
6257
|
+
</span>
|
|
6258
|
+
</button>
|
|
6239
6259
|
</li>
|
|
6240
6260
|
</ul>
|
|
6241
6261
|
</div>
|
|
@@ -6601,6 +6621,7 @@ cssPrefix: pf-v5-c-menu
|
|
|
6601
6621
|
| `aria-disabled="true"` | `.pf-v5-c-menu__item` | Indicates to assistive technologies that the menu item is disabled, but still allows it to be focusable via keyboard. Additional click prevention may be required. |
|
|
6602
6622
|
| `tabindex="-1"` | `a.pf-v5-c-menu__item` | When the menu item uses a link element and has `aria-disabled="true"` passed in, removes it from keyboard focus. This is similar to passing `disabled` to a menu item that uses a button element. |
|
|
6603
6623
|
| `aria-hidden="true"` | `.pf-v5-c-menu__item-icon`, `.pf-v5-c-menu__item-action-icon`, `.pf-v5-c-menu__item-external-icon`, `.pf-v5-c-menu__item-toggle-icon`, `.pf-v5-c-menu__item-select-icon` | Hides the icon from assistive technologies. |
|
|
6624
|
+
| `aria-label="Descriptive text"` | `.pf-v5-c-menu__item-action-icon` | There should always be descriptive text on an action icon because there is no visible descriptive text labelling the icon. |
|
|
6604
6625
|
| `aria-label="Not starred"` | `.pf-v5-c-menu__item-action-icon.pf-m-favorite` | Provides an accessible label indicating that the favorite action is not selected. |
|
|
6605
6626
|
| `aria-label="Starred"` | `.pf-v5-c-menu__item-action-icon.pf-m-favorite.pf-m-favorited` | Provides an accessible label indicating that the favorite action is selected. |
|
|
6606
6627
|
|
|
@@ -974,7 +974,7 @@ cssPrefix: pf-v5-c-menu-toggle
|
|
|
974
974
|
| -- | -- | -- |
|
|
975
975
|
| `aria-expanded="true"` | `.pf-v5-c-menu-toggle`, `.pf-v5-c-menu-toggle__button` | Indicates that the menu toggle component is in the expanded state. |
|
|
976
976
|
| `aria-expanded="false"` | `.pf-v5-c-menu-toggle`, `.pf-v5-c-menu-toggle__button` | Indicates that the menu toggle component is in the collapsed state. |
|
|
977
|
-
| `aria-label="Descriptive text"` | `.pf-v5-c-menu-toggle.pf-m-plain` | Gives the
|
|
977
|
+
| `aria-label="Descriptive text"` | `.pf-v5-c-menu-toggle`, `.pf-v5-c-menu-toggle.pf-m-plain` | Gives the menu toggle component an accessible label. Used whenever there is no text visible in the menu toggle. Often, plain modifiers are used when the menu toggle only contains an icon. |
|
|
978
978
|
| `disabled` | `.pf-v5-c-menu-toggle`, `.pf-v5-c-menu-toggle__button` | Indicates that the menu toggle component is disabled. |
|
|
979
979
|
|
|
980
980
|
### Usage
|
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
.ws-core-c-modal .ws-preview-html {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
.ws-core-c-modal .pf-v5-c-modal-box {
|
|
6
|
-
position: absolute;
|
|
7
|
-
top: 50%;
|
|
8
|
-
left: 50%;
|
|
9
|
-
transform: translate(-50%, -50%);
|
|
2
|
+
display: flex;
|
|
3
|
+
justify-content: center;
|
|
4
|
+
align-items: center;
|
|
10
5
|
}
|
|
@@ -1,32 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
#ws-core-c-navigation-basic,
|
|
3
|
-
#ws-core-c-navigation-grouped,
|
|
4
|
-
#ws-core-c-navigation-grouped-nav,
|
|
5
|
-
#ws-core-c-navigation-grouped-nav-no-titles,
|
|
6
|
-
#ws-core-c-navigation-expanded,
|
|
7
|
-
#ws-core-c-navigation-expanded-with-subnav-titles,
|
|
8
|
-
#ws-core-c-navigation-mixed,
|
|
9
|
-
#ws-core-c-navigation-horizontal,
|
|
10
|
-
#ws-core-c-navigation-horizontal-overflow,
|
|
11
|
-
#ws-core-c-navigation-horizontal-subnav,
|
|
12
|
-
#ws-core-c-navigation-horizontal-subnav-overflow,
|
|
13
|
-
#ws-core-c-navigation-drilldown,
|
|
14
|
-
#ws-core-c-navigation-nav-with-drilldown-menu .pf-v5-c-nav,
|
|
15
|
-
#ws-core-c-navigation-level-2-drilldown,
|
|
16
|
-
#ws-core-c-navigation-level-3-drilldown,
|
|
17
|
-
#ws-core-c-navigation-nav-with-flyout .pf-v5-c-nav,
|
|
18
|
-
#ws-core-c-navigation-grouped-nav-no-titles-no-margin-top {
|
|
19
|
-
padding: 0;
|
|
20
|
-
background-color: var(--pf-v5-global--BackgroundColor--dark-300);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
#ws-core-c-navigation-expandable-third-level .pf-v5-c-nav {
|
|
1
|
+
.ws-core-c-navigation:not([id*="tertiary"]):not([id*="light-mode"]) .ws-preview-html {
|
|
24
2
|
background-color: var(--pf-v5-global--BackgroundColor--dark-300);
|
|
25
3
|
}
|
|
26
4
|
|
|
27
5
|
#ws-core-c-navigation-horizontal-in-masthead,
|
|
28
6
|
#ws-core-c-navigation-horizontal-in-masthead-overflow {
|
|
29
|
-
padding: 0;
|
|
30
7
|
grid-template-rows: auto;
|
|
31
8
|
}
|
|
32
9
|
|
|
@@ -58,6 +35,6 @@
|
|
|
58
35
|
|
|
59
36
|
#ws-core-c-navigation-nav-with-flyout .pf-v5-c-menu.pf-m-flyout.pf-m-nav {
|
|
60
37
|
position: absolute;
|
|
61
|
-
|
|
62
|
-
|
|
38
|
+
inset-block-start: 168px;
|
|
39
|
+
inset-inline-start: 256px;
|
|
63
40
|
}
|
|
@@ -2483,6 +2483,104 @@ cssPrefix: pf-v5-c-nav
|
|
|
2483
2483
|
|
|
2484
2484
|
```
|
|
2485
2485
|
|
|
2486
|
+
### Nav link text
|
|
2487
|
+
|
|
2488
|
+
When using anything other than a text node for the link text, wrap the link text in an element with `.pf-v5-c-nav__link-text`.
|
|
2489
|
+
|
|
2490
|
+
```html isBeta
|
|
2491
|
+
<nav class="pf-v5-c-nav" aria-label="Global">
|
|
2492
|
+
<ul class="pf-v5-c-nav__list" role="list">
|
|
2493
|
+
<li class="pf-v5-c-nav__item">
|
|
2494
|
+
<a href="#" class="pf-v5-c-nav__link">
|
|
2495
|
+
<span class="pf-v5-c-nav__link-text">
|
|
2496
|
+
Link 1
|
|
2497
|
+
<i class="fas fa-arrow-right" aria-hidden="true"></i>
|
|
2498
|
+
</span>
|
|
2499
|
+
</a>
|
|
2500
|
+
</li>
|
|
2501
|
+
<li class="pf-v5-c-nav__item pf-m-expandable pf-m-expanded">
|
|
2502
|
+
<button
|
|
2503
|
+
class="pf-v5-c-nav__link"
|
|
2504
|
+
id="nav-link-text-link2"
|
|
2505
|
+
aria-expanded="true"
|
|
2506
|
+
>
|
|
2507
|
+
<span class="pf-v5-c-nav__link-text">
|
|
2508
|
+
Link 2
|
|
2509
|
+
<small>(small text)</small>
|
|
2510
|
+
</span>
|
|
2511
|
+
<span class="pf-v5-c-nav__toggle">
|
|
2512
|
+
<span class="pf-v5-c-nav__toggle-icon">
|
|
2513
|
+
<i class="fas fa-angle-right" aria-hidden="true"></i>
|
|
2514
|
+
</span>
|
|
2515
|
+
</span>
|
|
2516
|
+
</button>
|
|
2517
|
+
<section
|
|
2518
|
+
class="pf-v5-c-nav__subnav"
|
|
2519
|
+
aria-labelledby="nav-link-text-link2"
|
|
2520
|
+
>
|
|
2521
|
+
<ul class="pf-v5-c-nav__list" role="list">
|
|
2522
|
+
<li class="pf-v5-c-nav__item">
|
|
2523
|
+
<a href="#" class="pf-v5-c-nav__link">
|
|
2524
|
+
<span class="pf-v5-c-nav__link-text">
|
|
2525
|
+
<i class="fas fa-user" aria-hidden="true"></i>
|
|
2526
|
+
Subnav link 1
|
|
2527
|
+
</span>
|
|
2528
|
+
</a>
|
|
2529
|
+
</li>
|
|
2530
|
+
<li class="pf-v5-c-nav__item">
|
|
2531
|
+
<a href="#" class="pf-v5-c-nav__link">
|
|
2532
|
+
<span class="pf-v5-c-nav__link-text">
|
|
2533
|
+
<i class="fas fa-user" aria-hidden="true"></i>
|
|
2534
|
+
Subnav link 2
|
|
2535
|
+
</span>
|
|
2536
|
+
</a>
|
|
2537
|
+
</li>
|
|
2538
|
+
</ul>
|
|
2539
|
+
</section>
|
|
2540
|
+
</li>
|
|
2541
|
+
<li class="pf-v5-c-nav__item pf-m-expandable pf-m-current">
|
|
2542
|
+
<button
|
|
2543
|
+
class="pf-v5-c-nav__link"
|
|
2544
|
+
id="nav-link-text-link4"
|
|
2545
|
+
aria-expanded="false"
|
|
2546
|
+
>
|
|
2547
|
+
<span class="pf-v5-c-nav__link-text">
|
|
2548
|
+
Link 3
|
|
2549
|
+
<strong>(strong text)</strong>
|
|
2550
|
+
</span>
|
|
2551
|
+
<span class="pf-v5-c-nav__toggle">
|
|
2552
|
+
<span class="pf-v5-c-nav__toggle-icon">
|
|
2553
|
+
<i class="fas fa-angle-right" aria-hidden="true"></i>
|
|
2554
|
+
</span>
|
|
2555
|
+
</span>
|
|
2556
|
+
</button>
|
|
2557
|
+
<section
|
|
2558
|
+
class="pf-v5-c-nav__subnav"
|
|
2559
|
+
aria-labelledby="nav-link-text-link4"
|
|
2560
|
+
hidden
|
|
2561
|
+
>
|
|
2562
|
+
<ul class="pf-v5-c-nav__list" role="list">
|
|
2563
|
+
<li class="pf-v5-c-nav__item">
|
|
2564
|
+
<a href="#" class="pf-v5-c-nav__link">Subnav link 1</a>
|
|
2565
|
+
</li>
|
|
2566
|
+
<li class="pf-v5-c-nav__item">
|
|
2567
|
+
<a
|
|
2568
|
+
href="#"
|
|
2569
|
+
class="pf-v5-c-nav__link pf-m-current"
|
|
2570
|
+
aria-current="page"
|
|
2571
|
+
>Subnav link 2</a>
|
|
2572
|
+
</li>
|
|
2573
|
+
<li class="pf-v5-c-nav__item">
|
|
2574
|
+
<a href="#" class="pf-v5-c-nav__link">Subnav link 3</a>
|
|
2575
|
+
</li>
|
|
2576
|
+
</ul>
|
|
2577
|
+
</section>
|
|
2578
|
+
</li>
|
|
2579
|
+
</ul>
|
|
2580
|
+
</nav>
|
|
2581
|
+
|
|
2582
|
+
```
|
|
2583
|
+
|
|
2486
2584
|
## Documentation
|
|
2487
2585
|
|
|
2488
2586
|
### Overview
|
|
@@ -2514,6 +2612,7 @@ The navigation system relies on several different sub-components:
|
|
|
2514
2612
|
| `.pf-v5-c-nav__list` | `<ul>` | Initiates nav list. |
|
|
2515
2613
|
| `.pf-v5-c-nav__item` | `<li>` | Initiates nav list item. |
|
|
2516
2614
|
| `.pf-v5-c-nav__link` | `<a>` | Initiates nav list link. |
|
|
2615
|
+
| `.pf-v5-c-nav__link-text` | `<span>` | Initiates nav list link text. |
|
|
2517
2616
|
| `.pf-v5-c-nav__section` | `<section>` | Initiates a nav section element. |
|
|
2518
2617
|
| `.pf-v5-c-nav__section-title` | `<h1>`, `<h2>`, `<h3>`, `<h4>`, `<h5>`, `<h6>` | Initiates a nav section title. |
|
|
2519
2618
|
| `.pf-v5-c-nav__toggle` | `<span>` | Initiates the nav toggle wrapper. |
|