Skip to content

Commit 339e0da

Browse files
committed
Deleted isNonInteractiveRole and isNonInteractiveElement utils
1 parent 2a7a3b0 commit 339e0da

File tree

7 files changed

+5
-161
lines changed

7 files changed

+5
-161
lines changed

__tests__/src/util/isInteractiveRole-test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ import {
99

1010
describe('isInteractiveRole', () => {
1111
describe('JSX Components (no tagName)', () => {
12-
it('should identify them as interactive elements', () => {
12+
it('should identify them as interactive role elements', () => {
1313
expect(isInteractiveRole(undefined, []))
1414
.toBe(true);
1515
});
1616
});
1717
describe('elements with a non-interactive role', () => {
18-
it('should not identify them as interactive elements', () => {
18+
it('should not identify them as interactive role elements', () => {
1919
genNonInteractiveRoleElements().forEach(
2020
({
2121
type,
@@ -28,12 +28,12 @@ describe('isInteractiveRole', () => {
2828
});
2929
});
3030
describe('elements without a role', () => {
31-
it('should not identify them as interactive elements', () => {
31+
it('should not identify them as interactive role elements', () => {
3232
expect(isInteractiveRole('div', [])).toBe(false);
3333
});
3434
});
3535
describe('elements with an interactive role', () => {
36-
it('should identify them as interactive elements', () => {
36+
it('should identify them as interactive role elements', () => {
3737
genInteractiveRoleElements().forEach(
3838
({
3939
type,

__tests__/src/util/isNonInteractiveElement-test.js

Lines changed: 0 additions & 43 deletions
This file was deleted.

__tests__/src/util/isNonInteractiveRole-test.js

Lines changed: 0 additions & 47 deletions
This file was deleted.

src/rules/onclick-has-focus.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* @author Ethan Cohen
44
*/
55

6-
import { getProp, getPropValue, elementType } from 'jsx-ast-utils';
6+
import { getProp, elementType } from 'jsx-ast-utils';
77
import { generateObjSchema } from '../util/schemas';
88
import isHiddenFromScreenReader from '../util/isHiddenFromScreenReader';
99
import isInteractiveElement from '../util/isInteractiveElement';

src/util/isInteractiveRole.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { getProp, getPropValue } from 'jsx-ast-utils';
22
import DOMElements from './attributes/DOM.json';
3-
import isInteractiveElement from '../util/isInteractiveElement';
43

54
// ARIA roles that denote user interaction support.
65
export const interactiveRoles = [

src/util/isNonInteractiveElement.js

Lines changed: 0 additions & 29 deletions
This file was deleted.

src/util/isNonInteractiveRole.js

Lines changed: 0 additions & 36 deletions
This file was deleted.

0 commit comments

Comments
 (0)