Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accessibility issue: no lang attribute #1082

Open
scoutb-cogapp opened this issue Aug 13, 2024 · 0 comments
Open

Accessibility issue: no lang attribute #1082

scoutb-cogapp opened this issue Aug 13, 2024 · 0 comments

Comments

@scoutb-cogapp
Copy link

scoutb-cogapp commented Aug 13, 2024

UV version: [email protected]

I'm submitting a: bug report => please fork one of these codesandbox examples with a repro of your issue and include a link to it below

Page area

all items that switch language

Issue description

UV does not set any lang attributes. There is a language switcher that changes many ineractive elements. But these items need a lang attribute which changes accordingly so that assistive technologies can announce them correctly.

Steps to reproduce

  1. open this manifest
  2. use the language switcher and browser devtools to investigate the code

Expected behaviour

When a multilingual screenreader user switches to a different language, the screenreader should be able to use the appropriate language to read out content.

Possible fix

Every item that changes when the language is switched (like buttons) should be marked with a lang attribute and that attribute should change according to language.

WCAG criterion

3.1.2 Language of Parts (Level AA)

Related code example

<button class="btn imageBtn next" tabindex="0" title="Nästa bild">
    <i class="uv-icon-next" aria-hidden="true"></i>
    <span class="sr-only">Nästa bild</span>
</button>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Accessibility Backlog
Development

No branches or pull requests

3 participants