Skip to content

Commit

Permalink
fix: accept the 'switch' aria role during a11y checks (#9792)
Browse files Browse the repository at this point in the history
* fix: accept the 'switch' aria role during a11y checks

* add changeset

---------

Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
  • Loading branch information
tugrulates and Princesseuh committed Jan 23, 2024
1 parent e6c0fa5 commit e22cb8b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/large-phones-guess.md
@@ -0,0 +1,5 @@
---
"astro": patch
---

Accept aria role `switch` on toolbar audit.
Expand Up @@ -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(
' '
)
);
Expand Down

0 comments on commit e22cb8b

Please sign in to comment.