-
-
Notifications
You must be signed in to change notification settings - Fork 529
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
Keyboard accessibility improvements #16613
Conversation
This pull request has been mentioned on MODX Community. There might be relevant details there: https://community.modx.com/t/modx-manager-accessibilty/7990/3 |
@jenswittmann — thanks for this contribution, Jens. When submitting PRs, please do NOT commit changes to the compiled CSS or minimized JS files produced during the grunt build. You can indicate that a grunt build is required to test the changes in the PR section How to test. Let me know if you have any questions. |
Thank you for your contribution! Before your pull request can be reviewed, please sign the MODX Contributor License Agreement (CLA). This is to ensure MODX has your written permission to distribute projects containing your contributions under the appropriate license. Please make sure the CLA has been signed for GitHub user(s): @jenswittmann Once you've signed, please reply with a comment letting us know so we can verify. |
@opengeek i signed the CLA 👍🏽 |
66dbd31
to
4e10ab2
Compare
@opengeek thanks for the info. I remove the minified and compressed files and add a hint on how to test. |
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.
Awesome addition, thank you. Works as described
After testing the PR I found some problems and tried to fix them.
Here is a small demo of the new update: Bildschirmaufnahme.2024-09-09.um.11.02.13.mov |
@jenswittmann — we had an issue with the CLA form when you attempted to sign it, so it did not record the action. Could you do that again when you get a chance? Sorry for the inconvenience. |
I submit the CLA form again. Is it ok now? |
It is! Thank you! |
@jenswittmann I'm not sure if this was also an issue before the new update, but menu items that have JS handler (clear cache, delete locks, flush your permissions, etc.) won't trigger when hitting enter. |
@jenswittmann thank you! Now those items trigger fine. I noticed one more thing, once you're under sub menu, you can't escape from it using |
@theboxer i restore the escape function to go back on the root button 96e2542 ✅ The way the current navigation is structured, it will be difficult to optimise the keyboard navigation even more. So i think this is the best what we can get for now. Have a look at the example "Dropdown Menus" from Floating UI. I thinks this is the goal, but its based on React. A complete rewrite of the Navigation in Vanilla JS with some help of AlpineJS Focus Plugin could be a good choice 🤔 #16612 |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## 3.x #16613 +/- ##
============================================
+ Coverage 21.47% 21.49% +0.02%
- Complexity 10652 10665 +13
============================================
Files 561 561
Lines 32268 32250 -18
============================================
+ Hits 6929 6933 +4
+ Misses 25339 25317 -22 ☔ View full report in Codecov by Sentry. |
Thanks to @theboxer and @Ibochkarev for their help 👍🏽 The checkboxes now also get an outline when focused via the keyboard. ec4e1d9 ✅ |
I have changed the markup for the |
@jenswittmann pls let me know once this PR will be complete so I can re-review it |
@theboxer I did another keyboard test. Now it should be better to focus on the main UI elements. All other tweaks like windows, tables, landmark/section movement and so on should be in a separate PR for better handling. Maybe this PR can be included in the next 3.0.6 release instead of 3.1.0 🤔 Bildschirmaufnahme.2024-09-16.um.18.mp4 |
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. Thx for all the a11y improvements!
override .ext-webkit *:focus{ outline: none !important; }
…ck fires on keyboard navigation modxcms#16612
…e for create/refresh modxcms#16612
What does it do?
Make the MODX manager interface more accessible when using the keyboard (WIP 🧑🏭 ).
Bildschirmaufnahme.2024-09-09.um.11.02.13.mov
How to test
Minify CSS and compress JS via grunt first. Use the
Tab
key to navigate through the Manager UI. Use theEsc
key to close the subnavigation. Use the tab key to navigate through the tabs.Related issue(s)/PR(s)
See #16612