Skip to content

Commit

Permalink
Update recommended config to allow fieldset to have the radiogroup rolw
Browse files Browse the repository at this point in the history
  • Loading branch information
hallzac2 authored and jessebeach committed Apr 6, 2021
1 parent 6b9e89f commit d927625
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Expand Up @@ -448,6 +448,8 @@ ruleTester.run(`${ruleName}:recommended`, rule, {
{ code: '<li role="row" />;' },
{ code: '<li role="treeitem" />;' },
{ code: '<Component role="treeitem" />;' },
{ code: '<fieldset role="radiogroup" />;' },
{ code: '<fieldset role="presentation" />;' },
]
.map(ruleOptionsMapperFactory(recommendedOptions))
.map(parserOptionsMapper),
Expand Down
1 change: 1 addition & 0 deletions src/index.js
Expand Up @@ -164,6 +164,7 @@ module.exports = {
li: ['menuitem', 'option', 'row', 'tab', 'treeitem'],
table: ['grid'],
td: ['gridcell'],
fieldset: ['radiogroup', 'presentation'],
},
],
'jsx-a11y/no-noninteractive-tabindex': [
Expand Down

0 comments on commit d927625

Please sign in to comment.