a11ySea / testing

Collect accessibility issues for public websites
3 stars 3 forks source link

King County COVID19 - Bug: Navigation to translated pages appears as buttons but works like hyperlinks #22

Open alboss opened 4 years ago

alboss commented 4 years ago

Issue Summary

Links to translated pages are formatted to look like buttons. This causes accessibility issues, because you activate links and buttons with different keys.

There are also UX issues with this, because things that look like buttons generally perform actions, whereas things that look like links are ordinarily used for navigation.

Note: menus like the kingcounty.gov left-hand navigation tend to blur those boundaries. Responsive design often reuses the same style for phones (where a menu takes over the screen and actually should be buttons) and larger screens (where a menu is really links to other pages). We didn't know better in 2013. We do now.

Steps to reproduce

Steps to reproduce the behavior:

  1. Go to https://kingcounty.gov/depts/health/covid-19.aspx
  2. Scroll about halfway down to the available translations
  3. Click the button for any language

Behavior

Expected behavior

Actual behavior

Versions

Device Information:

Code

Current Code

<a class="btn btn-primary btn-block" href="/depts/health/covid-19/languages/ASL.aspx" 
role="button" data-toggle="tooltip" data-placement="left" title="" 
data-original-title="COVID-19 resources in American Sign Language for the 
Deaf/Hard of Hearing and DeafBlind">ASL for D/HOH &amp; DB</a>

Suggested Code

Difficult to say. Obviously you want some sort of stylistic choice that makes these links differentiated from the rest of the page. Perhaps use list groups?

<ul class="list-group">
  <li class="list-group-item">
     <a href="/depts/health/covid-19/languages/ASL.aspx" data-toggle="tooltip" 
data-placement="left" title="" data-original-title="COVID-19 resources in 
American Sign Language for the Deaf/Hard of Hearing and 
DeafBlind">ASL for D/HOH &amp; DB</a>
  </li>
  <li class="list-group-item"> (for each language option) </li>
</ul>

Specifications

Additional References

alboss commented 4 years ago

I'll pass this on to the Public Health webmaster. Stay tuned.