Check button-name failed with aria-roledescription #4679
Open
Description
Product
axe-core
Product Version
4.10.2
Latest Version
- 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
<button aria-roledescription="Aria Name" />
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