Skip to content

Commit

Permalink
update(web-a11y): WAI-ARIA roles
Browse files Browse the repository at this point in the history
issue #105
  • Loading branch information
sabertazimi committed Aug 4, 2021
1 parent 5eedbce commit 3bbbb84
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion notes/web/html/htmlBasicNotes.md
Original file line number Diff line number Diff line change
Expand Up @@ -1257,7 +1257,7 @@ export function trapTabKey(e, context) {
- `aria-label`
- `aria-labelledby="dropdownMenuButton"`: dropdown/form
- `aria-disabled="true"`: disable element
- `aria-controls="navbarSupportedContent"`: navigation
- `aria-controls="navbarSupportedContent"`: navigation/select
- `aria-expanded="false"`: dropdown
- `aria-haspopup="true"`: dropdown/popup
- `aria-current="pages`: breadcrumb
Expand All @@ -1273,6 +1273,28 @@ export function trapTabKey(e, context) {
- `<footer>`: `role="contentinfo"`
- `<form role="form">`
- 7 heading levels: `<div role="heading" aria-level="7"></div>`
- `role="button"`
- `role="checkbox"`
- `role="gridcell"`
- `role="link"`
- `role="menuitem"`
- `role="menuitemcheckbox"`
- `role="menuitemradio"`
- `role="option"`
- `role="progressbar"`
- `role="radio"`
- `role="scrollbar"`
- `role="searchbox"`
- `role="separator (when focusable)"`
- `role="slider"`
- `role="spinbutton"`
- `role="switch"`
- `role="tab"`
- `role="tabpanel"`
- `role="textbox"`
- `role="treeitem"`
- `role="presentation"`
- `role="application"`

```html
<button
Expand Down

0 comments on commit 3bbbb84

Please sign in to comment.