aria-expanded not working as expected
-
I am using the weglot shortcode in my nav menu with 2 languages in a dropdown.
On page load the aside has these classes
class="country-selector weglot-dropdown close_outside_click weglot-shortcode"
andaria-expanded="false"
When I click the<aside>
the dropdown opens and a class ofclosed
is added to the aside, and the aria-expanded remains false.If I use tab navigation on page load, I navigate to the
aside
usingtab
and press enter, the dropdown appears and thearia-expanded
does update to show true, but if I press enter again the dropdown closes, but thearia-expanded
label remainstrue
when it should sayfalse
.This needs to be fixed for our site to pass accessibilty checks, thank you.
The page I need help with: [log in to see the link]
- The topic ‘aria-expanded not working as expected’ is closed to new replies.