Skip to content
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

XWIKI-18007: Drawer menu improvements for accessibility #2225

Closed
wants to merge 2 commits into from

Conversation

Sereza7
Copy link
Contributor

@Sereza7 Sereza7 commented Jun 16, 2023

Jira: https://jira.xwiki.org/browse/XWIKI-18007

PR Changes

  • Changed the drawer menu position, so it gets right after its toggler.
  • Updated the drawer controls to close when focusing out and pressing escape
  • Moved the script from javascript.vm to flamingo.js
  • Added one style rule in drawer.less to hide elements from the tab order when the drawer is closed.

Video demo

https://up1.xwikisas.com/#BrnQdLpraMVHfWyF0be0og

Notes

This PR takes elements from #2075 and adds upon them more changes to fix the ticket completely.

Tests

mvn clean install -f xwiki-platform-core/xwiki-platform-flamingo/xwiki-platform-flamingo-skin/xwiki-platform-flamingo-skin-test/ -Pdocker,integration-tests,quality failed only on NavigationIT.navigateWithKeyboardShortcuts:142 and NavigationIT.docExtraLoadingFromTabClicks:164, which are build fails as of the 16th of June.

Sereza7 added 2 commits June 16, 2023 11:08
* Changed the drawer menu position, so it's next to its controller.
* Updated the drawer controls to close when focusing out and pressing escape
* Moved the script from javascript.vm to flamingo.js
* Added one style rule in drawer.less to hide elements from the tab order when the drawer is closed.
Copy link
Contributor

@michitux michitux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While the code looks okay, I don't agree with the solution for moving focus out of the drawer. I think it is bad usability to close the drawer when the focus moves out of it. Imho, moving focus shouldn't close the drawer but rather focus should stay inside the drawer. Further, but less important, I think it would be good to add an explicit close button. It could, e.g., be positioned at the top left of the drawer outside the actual drawer area.

@Sereza7
Copy link
Contributor Author

Sereza7 commented Jun 21, 2023

In regards to https://jira.xwiki.org/browse/XWIKI-21037, it seems like keeping the dependency on the drawer webjar is not a good idea. Current web features should allow to make a clean drawer without much trouble.

Closing this PR because the solution does not seem appropriate to the situation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants