-
Notifications
You must be signed in to change notification settings - Fork 350
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
feat(Menu): add footer, add view more demo #5791
Conversation
PF4 preview: https://patternfly-react-pr-5791.surge.sh |
@jessiehuff Let me know what you think of the keyboard interactions so far, especially regarding the footer. The built in menu keyboard interaction currently only searches for all menu list items, so it would require adjustment to get the menu to cleanly navigate through outer elements with the arrow keys (if we wanted to go that way). It would be doable but a bit tricky. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The keyboard interaction looks really good with this!! You even shifted focus with the view more example which is awesome! 😄 I noticed some weirdness with VO on the view more example (when the view more button is pressed it didn't shift to the next item and said that the list is over). I'm going to try to investigate an aria-activedescendant
approach that I wonder if would help this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks really good!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had difficulty getting my aria-activedescendant
approach to work, and I don't want to hold up the PR for it so I created an issue for us to investigate that specific problem. Otherwise looks good! 🙂
What: Closes #5699
In this PR:
MenuFooter
Notes:
Tab
shifts focus between the active menu item and footer (as in the breadcrumb drilldown interaction). The content of the footer has no pre-built keyboard handling.ArrowUp
/ArrowDown
navigates through the options list and the "view more" button as usual. The demo hooks in and manages theSpace
/Enter
keydown for the "view more" button, focusing the next valid option from where the "view more" button used to be.