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:
Alan Agius
2018-05-15 03:19:16 +02:00
committed by tinayuangao
parent 5fbd02b35f
commit bd9ba9cbc8
+1 -1
View File
@@ -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`.