From d92762500978c7d800804fcfdbbd3b3d207d4b37 Mon Sep 17 00:00:00 2001 From: Zackary Hall Date: Mon, 5 Oct 2020 14:31:51 -0600 Subject: [PATCH] Update recommended config to allow fieldset to have the radiogroup rolw --- .../rules/no-noninteractive-element-to-interactive-role-test.js | 2 ++ src/index.js | 1 + 2 files changed, 3 insertions(+) diff --git a/__tests__/src/rules/no-noninteractive-element-to-interactive-role-test.js b/__tests__/src/rules/no-noninteractive-element-to-interactive-role-test.js index 49f5ee920..3b98fca65 100644 --- a/__tests__/src/rules/no-noninteractive-element-to-interactive-role-test.js +++ b/__tests__/src/rules/no-noninteractive-element-to-interactive-role-test.js @@ -448,6 +448,8 @@ ruleTester.run(`${ruleName}:recommended`, rule, { { code: '
  • ;' }, { code: '
  • ;' }, { code: ';' }, + { code: '
    ;' }, + { code: '
    ;' }, ] .map(ruleOptionsMapperFactory(recommendedOptions)) .map(parserOptionsMapper), diff --git a/src/index.js b/src/index.js index a679eafeb..0a7a196db 100644 --- a/src/index.js +++ b/src/index.js @@ -164,6 +164,7 @@ module.exports = { li: ['menuitem', 'option', 'row', 'tab', 'treeitem'], table: ['grid'], td: ['gridcell'], + fieldset: ['radiogroup', 'presentation'], }, ], 'jsx-a11y/no-noninteractive-tabindex': [