mirror of
https://github.com/withastro/astro.git
synced 2025-03-31 23:31:30 -05:00
fix: accept the 'switch' aria role during a11y checks (#9792)
* fix: accept the 'switch' aria role during a11y checks * add changeset --------- Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
This commit is contained in:
parent
e6c0fa5c33
commit
e22cb8b10c
2 changed files with 6 additions and 1 deletions
5
.changeset/large-phones-guess.md
Normal file
5
.changeset/large-phones-guess.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
"astro": patch
|
||||
---
|
||||
|
||||
Accept aria role `switch` on toolbar audit.
|
|
@ -208,7 +208,7 @@ const ariaAttributes = new Set(
|
|||
);
|
||||
|
||||
const ariaRoles = new Set(
|
||||
'alert alertdialog application article banner button cell checkbox columnheader combobox complementary contentinfo definition dialog directory document feed figure form grid gridcell group heading img link list listbox listitem log main marquee math menu menubar menuitem menuitemcheckbox menuitemradio navigation none note option presentation progressbar radio radiogroup region row rowgroup rowheader scrollbar search searchbox separator slider spinbutton status tab tablist tabpanel textbox timer toolbar tooltip tree treegrid treeitem'.split(
|
||||
'alert alertdialog application article banner button cell checkbox columnheader combobox complementary contentinfo definition dialog directory document feed figure form grid gridcell group heading img link list listbox listitem log main marquee math menu menubar menuitem menuitemcheckbox menuitemradio navigation none note option presentation progressbar radio radiogroup region row rowgroup rowheader scrollbar search searchbox separator slider spinbutton status switch tab tablist tabpanel textbox timer toolbar tooltip tree treegrid treeitem'.split(
|
||||
' '
|
||||
)
|
||||
);
|
||||
|
|
Loading…
Add table
Reference in a new issue