dequelabs / dequelabs/axe-core

Check button-name failed with aria-roledescription

Open
#4,679 3 comments 0 reactions 0 assignees View on GitHub
needs discussion rules wai-aria
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.