Skip to content

Check button-name failed with aria-roledescription #4679

Open
@EL-shadow

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

Metadata

Assignees

No one assigned

    Labels

    needs discussionMore discussion is needed to continuerulesIssue or false result from an axe-core rulewai-aria

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions