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

Fix header link text mismatch for accessibility #412

Merged
merged 3 commits into from
Jan 22, 2024

Conversation

LDubya
Copy link
Contributor

@LDubya LDubya commented Jan 18, 2024

Issue:
The header link is named "HIDIVE Lab" to sighted users but "Home" to screen reader users.

The accessible name of any interactive element should contain its visible text label. Using two different names for a single page element can create a confusing user experience for assistive technology users. For example, speech-input users may have difficulty activating a control if the label displayed on-screen does not match its accessible name.

Fix:
In the header.html template, the header link's aria-label attribute is given the same dynamically generated value as its link text, so that all users are provided the same header link name.

@lchoy lchoy merged commit 890bd5f into hms-dbmi:main Jan 22, 2024
1 check passed
@LDubya LDubya deleted the accessibility branch January 24, 2024 22:56
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