Skip to content

Fix ARIA issues on Navbar and Edit menu found via Pa11y / axe - #5611

Open
bram-atmire wants to merge 1 commit into
DSpace:mainfrom
bram-atmire:fix/5488-aria-followups
Open

bram-atmire wants to merge 1 commit into
DSpace:mainfrom
bram-atmire:fix/5488-aria-followups

Conversation

@bram-atmire

@bram-atmire bram-atmire commented May 4, 2026 •

Copy link
Copy Markdown
Member

References

Description

Fix the four remaining ARIA bugs from the WAVE / Pa11y / axe findings on #5488 that #5514 does not cover.

Instructions for Reviewers

List of changes in this PR:

  • Changed login/logout dropdown to dialog
  • Replaced expandable navbar & admin sidebar toggle with a button (was previously a link)
  • Removed role on context help toggle
  • Fixed content displacement in admin sidebar when expanding a menu (due to the scrollbar)
  • Removed menu roles from the navbar & sidebar (native HTML tags are already sufficient, and menu roles are the correct roles for this)
  • Applied proper menu roles and navigation to the DSO edit menu

Checklist

  • My PR is created against the main branch of code (unless it is a backport or is fixing an issue specific to an older branch).
  • My PR is small in size (10 files, 56 insertions, 13 deletions).
  • My PR passes ESLint validation using npm run lint
  • My PR doesn't introduce circular dependencies (verified via npm run check-circ-deps)
  • My PR includes TypeDoc comments for all new (or modified) public methods and classes. (n/a - no method changes)
  • My PR passes all specs/tests and includes new/updated specs or tests based on the Code Testing Guide.
  • My PR aligns with Accessibility guidelines if it makes changes to the user interface.
  • My PR uses i18n (internationalization) keys instead of hardcoded English text, to allow for translations. (existing keys retained)
  • My PR includes details on how to test it.
  • If my PR includes new libraries/dependencies (in package.json), I've made sure their licenses align with the DSpace BSD License based on the Licensing of Contributions documentation. (n/a)
  • If my PR includes new features or configurations, I've provided basic technical documentation in the PR itself. (n/a)
  • If my PR fixes an issue ticket, I've linked them together.

@lgeggleston lgeggleston added bug accessibility 1 APPROVAL pull request only requires a single approval to merge testathon Reported by a tester during Community Testathon labels May 4, 2026
@lgeggleston lgeggleston moved this to 🙋 Needs Reviewers Assigned in DSpace 10.0 Release May 4, 2026
@lgeggleston lgeggleston removed the testathon Reported by a tester during Community Testathon label May 8, 2026
@lgeggleston lgeggleston changed the title Fix remaining ARIA issues from #5488 (complementary to #5514) Fix ARIA issues on Navbar and Edit menu found via Pa11y / axe May 8, 2026

@GauravD2t GauravD2t left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks @bram-atmire ! I have thoroughly tested all the steps outlined in the review instructions, and everything is working perfectly as expected.

@lgeggleston lgeggleston moved this from 🙋 Needs Reviewers Assigned to 👍 Reviewer Approved in DSpace 10.0 Release May 29, 2026
@lgeggleston lgeggleston moved this to 👍 Reviewer Approved in DSpace 11.0 Release Jun 1, 2026
@alexandrevryghem
alexandrevryghem marked this pull request as ready for review November 18, 2026 14:44
@alexandrevryghem

Copy link
Copy Markdown
Member

We had to refactor this PR because the menu options used in DSO edit menu are also used in the navbar and the admin sidebar, this caused those new menuitem roles to be applied in those components. This has now been fixed only the DSO menu options now use the role menu/menuitem, and the admin sidebar & navbar simply rely on the HTML elements for accessibility.

Because the navigation doesn't use the menu role anymore different keyboard navigation bindings were required as well see docs, so all 3 menu types should be tested again

@lgeggleston lgeggleston moved this from 👍 Reviewer Approved to 👀 Under Review in DSpace 11.0 Release Nov 18, 2026
@lgeggleston lgeggleston removed the 1 APPROVAL pull request only requires a single approval to merge label Nov 18, 2026
- Changed login/logout dropdown to dialog
- Replaced expandable navbar toggle with a button (was previously a link)
- Removed role on context help toggle
- Fixed content displacement in admin sidebar when expanding a menu
- Removed menu roles from the navbar & sidebar (native HTML tags are already sufficient)
- Applied proper menu roles and navigation to the DSO edit menu

Co-authored-by: Bram Maegerman <bram.maegerman@telenet.be>
Co-authored-by: Alexandre Vryghem <alexandre@atmire.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: 👀 Under Review

Development

Successfully merging this pull request may close these issues.

ARIA issues on navbar and edit menu found via Pa11y / axe ARIA edit menu error on community and item pages

4 participants