From 52be13add06c281273787633aa1facbdd850184a Mon Sep 17 00:00:00 2001
From: Scott O'Hara
Roles:
`checkbox`,
`combobox`,
+ `gridcell`,
`link`,
`menuitem`,
`menuitemcheckbox`,
`menuitemradio`,
`option`,
`radio`,
- `switch`
- or `tab`. (
button
is also allowed, but NOT RECOMMENDED.)
+ `slider`,
+ `switch`,
+ `tab`,
+ or `treeitem`.
+ (button
is also allowed, but NOT RECOMMENDED.)
Global `aria-*` attributes @@ -1600,14 +1604,18 @@
button
is also allowed, but NOT RECOMMENDED.)
+ `slider`,
+ `switch`,
+ `tab`,
+ or `treeitem`.
+ (button
is also allowed, but NOT RECOMMENDED.)
Global `aria-*` attributes @@ -1749,19 +1757,30 @@
role=button
- Roles:
- `link`,
- `menuitem`,
- `menuitemcheckbox`,
- `menuitemradio`,
- `radio`
- or `switch`. (button
is also allowed, but NOT RECOMMENDED.)
-
- Global `aria-*` attributes - and any `aria-*` attributes applicable to the allowed roles. -
++ The following roles are allowed, but are NOT RECOMMENDED: + `button`, + `checkbox`, + `gridcell`, + `link`, + `menuitem`, + `menuitemcheckbox`, + `menuitemradio`, + `option`, + `radio`, + `switch`, + `tab` + or `treeitem`. +
++ Global `aria-*` attributes + and any `aria-*` attributes applicable to the allowed roles. +
++ If possible, authors SHOULD consider using a different HTML element which allows the specified role. +
+role=button
- No `role` other than button
, which is NOT RECOMMENDED.
-
- Global `aria-*` attributes - and any `aria-*` attributes applicable to the `button` role. -
++ The following roles are allowed, but are NOT RECOMMENDED: + `button`, + `checkbox`, + `combobox`, + `gridcell`, + `link`, + `menuitem`, + `menuitemcheckbox`, + `menuitemradio`, + `option`, + `radio`, + `slider`, + `switch`, + `tab` + or `treeitem`. +
++ Global `aria-*` attributes + and any `aria-*` attributes applicable to the allowed roles. +
++ If possible, authors SHOULD consider using a different HTML element which allows the specified role. +
+role=button
- No `role` other than button
, which is NOT RECOMMENDED.
-
- Global `aria-*` attributes - and any `aria-*` attributes applicable to the `button` role. -
++ The following roles are allowed, but are NOT RECOMMENDED: + `button`, + `checkbox`, + `combobox`, + `gridcell`, + `link`, + `menuitem`, + `menuitemcheckbox`, + `menuitemradio`, + `option`, + `radio`, + `slider`, + `switch`, + `tab` + or `treeitem`. +
++ Global `aria-*` attributes + and any `aria-*` attributes applicable to the allowed roles. +
++ If possible, authors SHOULD consider using a different HTML element which allows the specified role. +
+- The following roles are allowed, but are NOT RECOMMENDED: + Roles: `button`, `checkbox`, `gridcell`, @@ -1812,9 +1817,6 @@
- If possible, authors SHOULD consider using a different HTML element which allows the specified role. -
Authors are allowed to use the roles
- button
, checkbox
, combobox
, gridcell
, link
, menuitem
, menuitemcheckbox
, menuitemradio
, option
, radio
, slider
, switch
, tab
or treeitem
on a input type=reset
, input type=image
or input type=submit
element, but their use is NOT RECOMMENDED.
+ button
, checkbox
, combobox
, gridcell
, link
, menuitem
, menuitemcheckbox
, menuitemradio
, option
, radio
, slider
, switch
, tab
or treeitem
on a input type=reset
, input type=image
or input type=submit
element.
- All allowed roles on the button element are now allowed on these elements as well. While there are far better elements to use as a base for these roles, and thus why it is 'not recommended' to specify these updated role allowances on these elements, if an author has no other choice and they end up using these elements to make an otherwise accessible custom widget, there is no reason to preclude their use as other automated and manual checks can call out potential accessibility gaps. + All allowed roles on the button element are now allowed on these elements as well. While there are far better elements to use as a base for these roles, if an author has no other choice and they end up using these elements to make an otherwise accessible custom widget, there is no reason to preclude their use as other automated and manual checks can call out potential accessibility gaps.