Skip to content

Commit bd9ba9c

Browse files
alan-agius4tinayuangao
authored andcommitted
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`
1 parent 5fbd02b commit bd9ba9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/toolbar/toolbar.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ By default, the toolbar assumes that it will be used in a purely decorative fash
6868
no roles, ARIA attributes, or keyboard shortcuts. This is equivalent to having a sequence of `<div>`
6969
elements on the page.
7070

71-
Generally, the toolbar is used as a header where `role="header"` would be appropriate.
71+
Generally, the toolbar is used as a header where `role="heading"` would be appropriate.
7272

7373
Only if the use-case of the toolbar match that of role="toolbar", the user should add the role and
7474
an appropriate label via `aria-label` or `aria-labelledby`.

0 commit comments

Comments
 (0)