summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Tugrul Ates <me@tugrulates.com> 2024-01-24 00:31:39 +0300
committerGravatar GitHub <noreply@github.com> 2024-01-23 16:31:39 -0500
commite22cb8b10c0ca9f6d88cab53cd2713f57875ab4b (patch)
treef153b7e97da43f9c54ab840731cfdadfbc7c057e
parente6c0fa5c335e0d1853a41195065f10b2f9fe3635 (diff)
downloadastro-e22cb8b10c0ca9f6d88cab53cd2713f57875ab4b.tar.gz
astro-e22cb8b10c0ca9f6d88cab53cd2713f57875ab4b.tar.zst
astro-e22cb8b10c0ca9f6d88cab53cd2713f57875ab4b.zip
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>
-rw-r--r--.changeset/large-phones-guess.md5
-rw-r--r--packages/astro/src/runtime/client/dev-toolbar/apps/audit/a11y.ts2
2 files changed, 6 insertions, 1 deletions
diff --git a/.changeset/large-phones-guess.md b/.changeset/large-phones-guess.md
new file mode 100644
index 000000000..6ac70bc9d
--- /dev/null
+++ b/.changeset/large-phones-guess.md
@@ -0,0 +1,5 @@
+---
+"astro": patch
+---
+
+Accept aria role `switch` on toolbar audit.
diff --git a/packages/astro/src/runtime/client/dev-toolbar/apps/audit/a11y.ts b/packages/astro/src/runtime/client/dev-toolbar/apps/audit/a11y.ts
index e004b70b5..6eb4cd97b 100644
--- a/packages/astro/src/runtime/client/dev-toolbar/apps/audit/a11y.ts
+++ b/packages/astro/src/runtime/client/dev-toolbar/apps/audit/a11y.ts
@@ -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(
' '
)
);