hmrc / hmrc-frontend

Apache License 2.0
9 stars 18 forks source link

hmrcLanguageSelect component zoom shows _ #372

Open thirlz95 opened 2 months ago

thirlz95 commented 2 months ago

When using testing MacBook's accessibility hover text. I've found that the language select component does not show the language name but instead a hypen/underscore. If your quick enough moving the hover sometimes the govuk-visually-hidden show's the content but quite often will drop back to hypen/underscore.

I believe this is due to using aria-hidden, I've tested removing this and the welsh would appear. However I feel this will affect screen readers. Does anyone know a work around for this? Screenshot 2024-05-28 at 10 58 39

oscarduignan commented 2 months ago

Hey @thirlz95 thank you for raising this, we've done some initial investigation of it with the help of the hmrc digital inclusion and accessibility standards team and we think we've understood roughly why it's happening, but we aren't sure how to correct it yet / if it's going to have a user impact. It appears to occur because of the way the links in the language select contain multiple spans, and around where your cursor moves between hovering on those spans / the link / the list and list items - where one span in the links is visually hidden and the other hidden from assistive tech. We'll probably need to do some more investigation, but I'm not sure when at the moment - so I will leave this open but you might not get a quick further update