-
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
fix(TimePicker): re-add ability to append to document body #7043
Conversation
Preview: https://patternfly-react-pr-7043.surge.sh A11y report: https://patternfly-react-pr-7043-a11y.surge.sh |
@marusak Would you be able to test things in the preview build above? I included some instructions in my initial comment to test the changes to the TimePicker both for appending to |
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.
So appending it to a parent seemed to work fairly well, and I only had two comments about that interaction:
- The menu's label isn't getting announced for some reason (it just says "menu")
- There seems to be no way to escape the menu easily without closing the entire modal. If you press the Esc key, it closes the modal (also true with keyboard)
With appending to document body, I had a lot more issues. The label was announced, interesting enough, but I couldn't figure out any way to get into the menu with VO. It makes me wonder if it's getting disabled like the rest of the document behind the modal?
95721ec
to
6c41ee8
Compare
@jessiehuff based on prior convo, I added a warning to the examples regarding appending to
There is still an issue of the menu being announced with a generic "menu" label by VO when the menu opens. Fixing that might be better for a separate issue, as well as possibly changing the behavior when the menu opens (i.e. should a menu item receive focus when the menu is opened via arrows keys). |
So when testing it out, I couldn't seem to use it by keyboard or by VO. :( I think your points above make sense though. |
That's odd; I was able to get into the TimePicker via keyboard and VO. @nicolethoen would you be able to test out as well and see what behavior you get? If you and Jessie have the same behavior then it may require seeing the interaction in action. |
I see it working in both keyboard and VO as well. |
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.
Hmm maybe my VO was acting up earlier. Appending to parent works, but as usual, not the document body. I think that's expected based on what we know right now though, right? And the other PR adds the verbiage to the TimePicker about that so I suppose this is good then. 😄
What: Closes #6942
I also updated how the TimePicker gets appended to its parent by passing in a
parent
value to themenuAppendTo
prop. This should work more similarly to the Dropdown component, and should both resolve the issue of scrollbars appearing in Modals and also allow access to the TimePicker menu via Voice Over. This can be tested by going to the the below page on the build workspace and adding the following snippets of code as instructed.Link: PatternFly Modal
On line 2, import TimePicker:
To test appending to a parent, before line 43 (this should come before the closing
</Modal>
tag) add:To test appending to document body, before line 43 add:
Additional issues: