The alert is a type of status processed as an atomic live region. The alert role is for important, and usually time-sensitive, information. The following are the reference pages covering the WAI-ARIA roles discussed on MDN. Note that there is also a widget role ( role="widget"), which is an abstract role and not in the widget role category. See the individual role documentation for more information. Composite widget rolesĪvoid using grid, listbox, and radiogroup, which we've included for completeness. ![]() ![]() For most, semantic equivalents with accessible interactivity are available and supported. The difference between the two lists is that, generally, the widget roles require JavaScript interaction and the document structure roles don't necessarily.Īvoid using button, checkbox, gridcell, link, menuitem, menuitemcheckbox, menuitemradio, option, progressbar, radio, and textbox, which we've included for completeness. Similar to the document structure roles, some of these roles duplicate the semantics of native HTML elements that are well supported, and should not be used. The various widget role are used to define common interactive patterns. These are included for completeness, but in most cases are rarely, if ever, useful:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |