dequelabs / dequelabs/axe-core

Add custom message on why a:not([href]) does not allow aria-label

Open
#3,664 0 comments 0 reactions 0 assignees View on GitHub
feat rule metadata
Dominant language
JavaScript
Stars
7.5k
Forks
933
Avg merge
2d 13h
Merged PRs (30d)
29

Description

On the following, axe-core reports that aria-label is not allowed. While correct, this can be confusing. The problem is that href is missing. We should see if we can craft some message that better explains this issue.

```html

```

Contributor guide

Open the contributing guide

Research direction

Start by locating the axe-core rule that reports aria-label as disallowed on a:not([href]), using the example markup in this issue. Review how that rule constructs its current message and how related messages are tested; done means the missing href is clearly explained while the existing accessibility check remains correct.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
accessibility
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.