“Show all languages” not focusable
-
Hi,
I’m working on a website that has to be accessible even on the WP admin.
I noticed that the “Show all languages” menu on admin toolbar is not accessible for people using keyboard because it’s adiv
and not a link or a button.If we add an attribute
tabindex="0"
on the div, we can open the “popup” with keyboard by using “Enter” key.Example:
<div class="ab-item ab-empty-item" aria-haspopup="true" title="Filters content by language" tabindex="0"> <span class="ab-icon"></span> <span class="ab-label">Show all languages</span> </div>
Of course, the best solution is to transform
div
into a button just like that:<button type="button" class="ab-item ab-empty-item" aria-haspopup="true" title="Filters content by language"> <span class="ab-icon"></span> <span class="ab-label">Show all languages</span> </button>
Can you do one of the solutions?
Thank you!
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘“Show all languages” not focusable’ is closed to new replies.