False postive Buttons must have discernible text
See original GitHub issueExpectation: I expect both of this items to be considered as identical
<button id="btn1" title="Delete">
<span class="fa fa-trash"></span>
</button>
<button id="btn2" title="Delete"><span class="fa fa-trash"></span></button>
Actual:
btn1
will cause a violation Buttons must have discernible text
btn2
will pass without violations
Motivation: Not sure if this is a bug or expected behavior from the spec. Checking the rule code it seem that halting on the first whitespace only value and ignoring the rest is intentional https://github.com/dequelabs/axe-core/blob/a84431ab3c37eccf43c3065506af3ad8097e981d/lib/commons/text/accessible-text-virtual.js#L53
axe-core version: 3.2.2
axe-webdriver.js version: 2.2.0
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (5 by maintainers)
Top Results From Across the Web
Buttons must have discernible text | Axe Rules | Deque Systems
Rule Description Buttons must have discernible text that clearly describes the destination, purpose, function, or action for screen reader users.
Read more >508/Accessibility Rules for (1) Links Must Have Discernible ...
If your icons, graphics, buttons, or links execute some action you need to provide some text alternative to screen readers that describes ...
Read more >Accessibility rule: Buttons must have discernible text
For screen reader users, buttons must include recognizable text that specifies the destination, purpose, function, or action.
Read more >Buttons must have discernible text · Issue #613 - GitHub
Say something like, item-name--attribute='aria-label="thing" , this would output the item name as a aria-label and then in the child element, it ...
Read more >Buttons must have discernible text
Buttons must have discernible text that clearly describes the destination, purpose, function, or action for screen reader users. The input-button-name rule ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Just so you’re aware, we released axe v3.3.0 yesterday and will soon be updating the integrations. I’ll let you know when webdriver is updated with the latest version.
Yep. We have a release coming up for axe v3.3.0. Once that’s released, we’ll go around to the different integrations and update the version. Hopefully that should happen within a week or two after the release.