Skip to content

Commit

Permalink
accept change, mentioning implicit or explicit role does not prohibit…
Browse files Browse the repository at this point in the history
… naming

Co-authored-by: Scott O'Hara <[email protected]>
  • Loading branch information
phsantiago and scottaohara committed Aug 26, 2024
1 parent af48918 commit 0ead6ef
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ The code below shows an example of how to use the `aria-label` attribute to prov
</button>
```

> **Note:** `aria-label` is intended for naming elements that allow `aria-label` or for elements made interactive via other ARIA declarations when there's no visible text in the DOM to serve as a label.
> **Note:** `aria-label` is intended for naming elements where the implicit or explicit role does not prohibit naming. It is strongly recommended to prioritize the use of `aria-labelledby` over `aria-label` if a visible label exists for the element to reference and receive its name from.
Most content has an accessible name generated from its immediate wrapping element's text content. Accessible names can also be created by certain attributes or associated elements.

Expand Down

0 comments on commit 0ead6ef

Please sign in to comment.