Skip to content

Commit d528e8c

Browse files
jessebeachljharb
authored andcommitted
Fix aria-level allowed on elements wit role heading (#704)
1 parent 3ac1738 commit d528e8c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

__tests__/src/rules/role-supports-aria-props-test.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,8 @@ ruleTester.run('role-supports-aria-props', rule, {
381381
{ code: '<textarea aria-hidden />' },
382382
{ code: '<select aria-expanded />' },
383383
{ code: '<datalist aria-expanded />' },
384+
{ code: '<div role="heading" aria-level />'},
385+
{ code: '<div role="heading" aria-level="1" />'}
384386

385387
].concat(validTests).map(parserOptionsMapper),
386388

0 commit comments

Comments
 (0)