mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
Update accessibility guide with note that it's valid to use aria-label directly on form elements. (#14361)
This commit is contained in:
parent
4bca2641f2
commit
8fde003a21
1 changed files with 3 additions and 0 deletions
|
@ -19,6 +19,9 @@ visual text representation (e.g. an icon button):
|
|||
<button aria-label="Add filter"><span class="fa fa-plus"></span></button>
|
||||
```
|
||||
|
||||
If you have to use a form element without a related `<label>` element, you can use `aria-label`
|
||||
directly on the form element to provide labeling information to screen readers.
|
||||
|
||||
If the actual name for that element is already present in another element,
|
||||
you can use `aria-labelledby` to reference the id of that element:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue