Require accessible name
Warn if the element has no accessible name. It is according to its ARIA role whether name required.
Rule Details
👎 Examples of incorrect code for this rule
<button>
<span></span>
<span></span>
<span></span>
</button>
👍 Examples of correct code for this rule
<button>
<span class="visually-hidden">Menu</span>
<span></span>
<span></span>
<span></span>
</button>
Interface
- Type:
boolean
- Deafult Value:
true
Default severity
error