From f842fde579b8e501af422b7ed0029507ab80717f Mon Sep 17 00:00:00 2001 From: Kate Higa <16447748+khiga8@users.noreply.github.com> Date: Mon, 6 May 2024 12:47:03 -0400 Subject: [PATCH 1/2] bug: fix summary being treated as non-interactive --- __mocks__/genInteractives.js | 1 + __tests__/src/rules/no-static-element-interactions-test.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/__mocks__/genInteractives.js b/__mocks__/genInteractives.js index 68b239260..11f32ec9b 100644 --- a/__mocks__/genInteractives.js +++ b/__mocks__/genInteractives.js @@ -49,6 +49,7 @@ const interactiveElementsMap = { menuitem: [], option: [], select: [], + summary: [], // Whereas ARIA makes a distinction between cell and gridcell, the AXObject // treats them both as CellRole and since gridcell is interactive, we consider // cell interactive as well. diff --git a/__tests__/src/rules/no-static-element-interactions-test.js b/__tests__/src/rules/no-static-element-interactions-test.js index f1643120c..24ca167fe 100644 --- a/__tests__/src/rules/no-static-element-interactions-test.js +++ b/__tests__/src/rules/no-static-element-interactions-test.js @@ -86,6 +86,7 @@ const alwaysValid = [ { code: '
{}} />;' }, { code: ' {}} />;' }, { code: ' {}} href="#" />;' }, + { code: ' {}} />;' }, /* HTML elements attributed with an interactive role */ { code: '
{}} />;' }, { code: '
{}} />;' }, @@ -339,7 +340,6 @@ const neverValid = [ { code: '