-
Notifications
You must be signed in to change notification settings - Fork 93
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(NcAppNavigation): add focus trap on mobile and improve a11y #4633
Conversation
node tests seems to be failing |
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.
Tested and the focus trap seems to work :)
However the ESC key doesnt toggle the navigation currently
Aufzeichnung.2023-10-12.125445.mp4
|
||
handleEsc() { | ||
if (this.isMobile) { | ||
this.toggleNavigation(false) |
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 does not seem to work currently in my testing
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 reason was probably that I tested on a screen with higher res than 1024px (so ismobile was false)
Signed-off-by: Grigorii K. Shartsev <[email protected]>
Signed-off-by: Grigorii K. Shartsev <[email protected]>
Signed-off-by: Grigorii K. Shartsev <[email protected]>
Signed-off-by: Grigorii K. Shartsev <[email protected]>
1dab23b
to
70886ef
Compare
PR Status update: checking issue with Talk loosing tab navigation with focus trap |
The Talk issue is related but appears in any focus trap container with input with the trailing button visible only on focus. What happens:
This behavior is not configurable. IMO, Possible solutions could be:
|
Maybe report this upstream, but
Sounds the best for now. |
☑️ Resolves
🖼️ Screenshots
🚧 Tasks
<nav>
instead ofrole="navigation"
cc @JuliaKirschenheuter to confirm that this is fineariaLabel
andariaLabelledBy
props to be set on navigationis closed or open
state by class also is not great, but we should not test by internal implementation as data property is not a part of the component interface). Alternative:aria-hidden
.🏁 Checklist