fix #5488: add ARIA labeling to hide edit menu from screen readers wh…#5514
fix #5488: add ARIA labeling to hide edit menu from screen readers wh…#5514guillermo-escire wants to merge 1 commit intoDSpace:mainfrom
Conversation
…ers when user has no permissions
|
Hi @guillermo-escire, thanks for picking #5488 up. While preparing a wider accessibility-audit follow-up I noticed your PR fixes the case where the
Rather than asking you to expand this PR, I have opened a separate complementary PR (#5611) that scopes those four remaining changes. They sit cleanly on top of Note: my PR is in draft for now, pending an internal review. |
|
Hi @bram-atmire, thank you for the detailed review and for opening the complementary PR #5611 to cover the remaining ARIA issues. I'm glad this PR addresses the main case from #5488. Please let me know if there's anything else you'd like me to adjust on my end before this gets merged. |
References
Fixes #5488
Description
Adds dynamic ARIA labeling to the DSO edit menu so that when a user has no edit permissions, the menu is hidden from screen readers and the role="menubar" attribute is removed, preventing the broken ARIA menu error detected by the WAVE accessibility tool.
Instructions for Reviewers
List of changes in this PR:
How to test:
Checklist
This checklist provides a reminder of what we are going to look for when reviewing your PR. You do not need to complete this checklist prior creating your PR (draft PRs are always welcome).
However, reviewers may request that you complete any actions in this list if you have not done so. If you are unsure about an item in the checklist, don't hesitate to ask. We're here to help!
mainbranch of code (unless it is a backport or is fixing an issue specific to an older branch).npm run lintnpm run check-circ-deps)package.json), I've made sure their licenses align with the DSpace BSD License based on the Licensing of Contributions documentation.