-
Notifications
You must be signed in to change notification settings - Fork 383
feat(Page): added responsive docked nav #12327
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 11 commits
32c3a7b
edc5795
fa760a3
89105b9
ccb8985
cf8c86b
355f541
ce32cbc
abe5450
c45642b
86fc9cb
e04055d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -53,6 +53,10 @@ export interface MenuToggleProps | |
| isCircle?: boolean; | ||
| /** Flag indicating whether the toggle is a settings toggle. This will override the icon property */ | ||
| isSettings?: boolean; | ||
| /** @beta Flag indicating the menu toggle is a docked variant. For use in docked navigation. */ | ||
| isDocked?: boolean; | ||
| /** @beta Flag indicating the dock toggle should display text. Only applies when isDock is true. */ | ||
|
thatblindgeye marked this conversation as resolved.
Outdated
|
||
| isTextExpanded?: boolean; | ||
| /** Elements to display before the toggle button. When included, renders the menu toggle as a split button. */ | ||
| splitButtonItems?: React.ReactNode[]; | ||
| /** Variant styles of the menu toggle */ | ||
|
|
@@ -88,6 +92,8 @@ class MenuToggleBase extends Component<MenuToggleProps> { | |
| isInForm: false, | ||
| isPlaceholder: false, | ||
| isCircle: false, | ||
| isDocked: false, | ||
| isTextExpanded: false, | ||
| size: 'default', | ||
| ouiaSafe: true | ||
| }; | ||
|
|
@@ -106,6 +112,8 @@ class MenuToggleBase extends Component<MenuToggleProps> { | |
| isPlaceholder, | ||
| isCircle, | ||
| isSettings, | ||
| isDocked, | ||
| isTextExpanded, | ||
| splitButtonItems, | ||
| variant, | ||
| status, | ||
|
|
@@ -190,6 +198,8 @@ class MenuToggleBase extends Component<MenuToggleProps> { | |
| isDisabled && styles.modifiers.disabled, | ||
| isPlaceholder && styles.modifiers.placeholder, | ||
| isSettings && styles.modifiers.settings, | ||
| isDocked && styles.modifiers.dock, // Replace with docked class from https://github.com/patternfly/patternfly/pull/8308 | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this class not available? The PR is merged.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I had to wait for another core PR to merge in order to provide a new prerelease. I have another PR up that bumps to prerelease 71 and has that docked class available. Depending on the order of operations I'll either update these instances in that PR, or can update it here if that other PR gets merged first. #12358 is the other PR |
||
| isDocked && isTextExpanded && styles.modifiers.textExpanded, | ||
| size === MenuToggleSize.sm && styles.modifiers.small, | ||
| className | ||
| ); | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.