Skip to content

Commit

Permalink
remove tabpanel from interactive roles, add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
taearls committed Dec 28, 2024
1 parent 613ad7c commit 8d505db
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,9 @@ const INTERACTIVE_HTML_ELEMENTS: phf::set::Set<&'static str> = phf_set! {
};

// https://w3c.github.io/aria/#widget_roles
// NOTE: "tabpanel" should be here, but adding it makes the unit tests for the jsx-a11y plugin fail.
const INTERACTIVE_HTML_ROLES: phf::set::Set<&'static str> = phf_set! {
"button", "checkbox", "gridcell", "link", "menuitem", "menuitemcheckbox", "menuitemradio", "option", "progressbar", "radio", "scrollbar", "searchbox", "separator", "slider", "spinbutton", "switch", "tab", "tabpanel", "textbox", "treeitem"
"button", "checkbox", "gridcell", "link", "menuitem", "menuitemcheckbox", "menuitemradio", "option", "progressbar", "radio", "scrollbar", "searchbox", "separator", "slider", "spinbutton", "switch", "tab", "textbox", "treeitem"
};

impl Rule for NoNoninteractiveTabindex {
Expand Down

0 comments on commit 8d505db

Please sign in to comment.