mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
docs(toolbar): set proper role value (#11317)
Based on https://www.w3.org/TR/wai-aria/#role_definitions there is no such role as `header`, but rather it should `heading`
This commit is contained in:
@@ -68,7 +68,7 @@ By default, the toolbar assumes that it will be used in a purely decorative fash
|
||||
no roles, ARIA attributes, or keyboard shortcuts. This is equivalent to having a sequence of `<div>`
|
||||
elements on the page.
|
||||
|
||||
Generally, the toolbar is used as a header where `role="header"` would be appropriate.
|
||||
Generally, the toolbar is used as a header where `role="heading"` would be appropriate.
|
||||
|
||||
Only if the use-case of the toolbar match that of role="toolbar", the user should add the role and
|
||||
an appropriate label via `aria-label` or `aria-labelledby`.
|
||||
|
||||
Reference in New Issue
Block a user