Skip to content

Commit

Permalink
Merge pull request #746 from hallzac2/allow-fieldset-to-have-role-of-…
Browse files Browse the repository at this point in the history
…radiogroup

Update recommended config to allow fieldset to have the radiogroup role
  • Loading branch information
jessebeach authored Apr 7, 2021
2 parents 6b9e89f + d927625 commit 9eea790
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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 9eea790

Please sign in to comment.