eschutho opened a new pull request, #41903:
URL: https://github.com/apache/superset/pull/41903
## Summary
The documentation and bug-report links in the top-right navbar menu
(`RightMenu.tsx`) render icon-only anchors with only a `title` attribute.
`title` is not a reliable accessible name for assistive technology (not
consistently exposed, especially on touch devices), so screen reader users hear
an unlabeled link.
**WCAG 2.1 SC 4.1.2 (Name, Role, Value) — Level A.**
## Change
Added `aria-label` to both `<StyledAnchor>` elements, reusing the exact same
expression already used for `title` (`navbarRight.documentation_text ||
t('Documentation')` and `navbarRight.bug_report_text || t('Report a bug')`), so
any admin-configured custom text is respected.
Behavior is unchanged — this only adds an accessible name, it doesn't affect
layout, styling, or the existing `title` tooltip.
## Test plan
- [ ] Tab to the documentation icon link in the top-right navbar; confirm a
screen reader (VoiceOver/NVDA) announces "Documentation, link" (or the
configured `documentation_text`) instead of just "link".
- [ ] Tab to the bug-report icon link; confirm a screen reader announces
"Report a bug, link" (or the configured `bug_report_text`).
- [ ] Confirm the on-hover `title` tooltip still displays as before
(unchanged).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]