hms-dbmi / gehlenborglab-website

Code for Gehlenborg Lab website.
http://gehlenborglab.org
MIT License
6 stars 34 forks source link

Fix header link text mismatch for accessibility #412

Closed LDubya closed 5 months ago

LDubya commented 5 months ago

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.