diff --git a/__tests__/src/rules/no-static-element-interactions-test.js b/__tests__/src/rules/no-static-element-interactions-test.js index 329c79f35..d0b0bc3f7 100644 --- a/__tests__/src/rules/no-static-element-interactions-test.js +++ b/__tests__/src/rules/no-static-element-interactions-test.js @@ -19,7 +19,7 @@ import ruleOptionsMapperFactory from '../../__util__/ruleOptionsMapperFactory'; const ruleTester = new RuleTester(); -const errorMessage = 'Static HTML elements with event handlers require a role.'; +const errorMessage = 'Avoid non-native interactive elements. If using native HTML is not possible, add an appropriate role and support for tabbing, mouse, keyboard, and touch inputs to an interactive content element.'; const expectedError = { message: errorMessage, diff --git a/src/rules/no-static-element-interactions.js b/src/rules/no-static-element-interactions.js index 8348f1578..ba6671172 100644 --- a/src/rules/no-static-element-interactions.js +++ b/src/rules/no-static-element-interactions.js @@ -29,7 +29,7 @@ import isNonInteractiveRole from '../util/isNonInteractiveRole'; import isNonLiteralProperty from '../util/isNonLiteralProperty'; import isPresentationRole from '../util/isPresentationRole'; -const errorMessage = 'Static HTML elements with event handlers require a role.'; +const errorMessage = 'Avoid non-native interactive elements. If using native HTML is not possible, add an appropriate role and support for tabbing, mouse, keyboard, and touch inputs to an interactive content element.'; const domElements = [...dom.keys()]; const defaultInteractiveProps = [