Skip to content

Commit

Permalink
[New] no-noninteractive-element-to-interactive-role: allow `menuite…
Browse files Browse the repository at this point in the history
…mradio` and `menuitemcheckbox` on <li>
  • Loading branch information
khiga8 authored and ljharb committed Aug 28, 2023
1 parent 0d5321a commit c0733f9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,8 @@ ruleTester.run(`${ruleName}:recommended`, rule, {
{ code: '<ol role="treegrid" />;' },
{ code: '<li role="tab" />;' },
{ code: '<li role="menuitem" />;' },
{ code: '<li role="menuitemcheckbox" />;' },
{ code: '<li role="menuitemradio" />;' },
{ code: '<li role="row" />;' },
{ code: '<li role="treeitem" />;' },
{ code: '<Component role="treeitem" />;' },
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ module.exports = {
'tree',
'treegrid',
],
li: ['menuitem', 'option', 'row', 'tab', 'treeitem'],
li: ['menuitem', 'menuitemradio', 'menuitemcheckbox', 'option', 'row', 'tab', 'treeitem'],
table: ['grid'],
td: ['gridcell'],
fieldset: ['radiogroup', 'presentation'],
Expand Down

0 comments on commit c0733f9

Please sign in to comment.