Skip to content

Commit

Permalink
fix(audit): mark widget roles as interactive (#9825)
Browse files Browse the repository at this point in the history
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
  • Loading branch information
tugrulates and natemoo-re committed Jan 26, 2024
1 parent a3df9d8 commit e4370e9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 28 deletions.
5 changes: 5 additions & 0 deletions .changeset/old-actors-taste.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"astro": patch
---

Fixes false positive aria role errors on interactive elements
28 changes: 0 additions & 28 deletions packages/astro/src/runtime/client/dev-toolbar/apps/audit/a11y.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,8 @@ const aria_non_interactive_roles = [
'application',
'article',
'banner',
'button',
'cell',
'checkbox',
'columnheader',
'combobox',
'complementary',
'contentinfo',
'definition',
Expand All @@ -64,55 +61,30 @@ const aria_non_interactive_roles = [
'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',
'term',
'textbox',
'timer',
'toolbar',
'tooltip',
'tree',
'treegrid',
'treeitem',
];

const a11y_required_content = [
Expand Down

0 comments on commit e4370e9

Please sign in to comment.