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

Text inside element with role="presentation" is omitted from Accessible Name #769

Closed
2biazdk opened this issue Apr 20, 2021 · 1 comment · Fixed by #771
Closed

Text inside element with role="presentation" is omitted from Accessible Name #769

2biazdk opened this issue Apr 20, 2021 · 1 comment · Fixed by #771
Labels
bug Report of unexpected or faulty behaviour in Alfa

Comments

@2biazdk
Copy link

2biazdk commented Apr 20, 2021

It seems that Alfa completely disregards contents of an element with role="presentation" when it comes to calculating an Accessible Name.

<button><span role="presentation">Text</span></button> is flagged as having no Accessible Name, even though role="presentation" is only supposed to remove the semantics (if any) from the node. role="presentation" isn't inherited to child nodes. Chrome's DevTools also seems to tell me that the button has the Accessible Name "Text".

@2biazdk 2biazdk added the bug Report of unexpected or faulty behaviour in Alfa label Apr 20, 2021
@Jym77
Copy link
Contributor

Jym77 commented Apr 27, 2021

Closing this in favour of the more generic #776

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.

2 participants