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

Accessible name from aria-label is not computed correctly in case of inline elements #1203

Closed
zsofitoth opened this issue Jul 25, 2022 · 2 comments · Fixed by #1566
Closed
Labels
bug Report of unexpected or faulty behaviour in Alfa

Comments

@zsofitoth
Copy link

<span role="presentation" aria-label="Eli">
    <span aria-label="Garaventa">Zambino</span>
</span>
<span>the weird.</span>

The accessible name should be:
My name is Eli the weird.
It is instead: My name is Elithe weird.

Link to Testable Statement

@zsofitoth zsofitoth added the bug Report of unexpected or faulty behaviour in Alfa label Jul 25, 2022
@2biazdk
Copy link

2biazdk commented Sep 14, 2022

I've encountered this issue.

I have this button:

<button type="button" aria-labelledby="dropdown-button-148" id="dropdown-button-148">
    <div>List of fruits</div>
    <div>
        <p>Blueberry</p>
        <p>It’s a berry and it’s blue.</p>
    </div>
</button>

But Alfa tells me the visible text and the Accessible Name do not match,

Alfa sees the visible text as: "list of fruits blueberry its a berry and its blue"
Alfa sees the Accessible Name as: "list of fruitsblueberryits a berry and its blue"

@Jym77
Copy link
Contributor

Jym77 commented Nov 8, 2022

Seems to be clarified in w3c/accname#168

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Report of unexpected or faulty behaviour in Alfa
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants