dequelabs / dequelabs/axe-core
Check button-name failed with aria-roledescription
- Dominant language
- JavaScript
- Stars
- 7.5k
- Forks
- 933
- Avg merge
- 2d 23h
- Merged PRs (30d)
- 17
Description
### Product
axe-core
### Product Version
4.10.2
### Latest Version
- [x] I have tested the issue with the latest version of the product
### Issue Description
#### Expectation
I use attribute `aria-roledescription` to redefine default announce like "Button" to discernible text, example "Expandable menu"
if i just set aria-label and aria-expanded, screenreader announce excess text.
#### Actual
`` fail `button-name` check with error
https://dequeuniversity.com/rules/axe/4.10/button-name?application=axeAPI
#### How to Reproduce
example with button and aria-roledescription https://principled-kindhearted-oyster.glitch.me/
#### Additional context
I test aria-roledescription and it work in Windows NVDA , macOS VoiceOver, Android TalkBack
Contributor guide
Assessment
This issue has not been assessed yet.