Add the disabled prop valid test

pull/8392/head
Nguyen Tran 4 years ago
parent 147d8a2b3f
commit cc9bd6fa09

@ -1,6 +1,7 @@
<!-- VALID --> <!-- VALID -->
<div aria-hidden role="button" on:keypress={() => {}} /> <div aria-hidden role="button" on:keypress={() => {}} />
<div aria-disabled role="button" on:keypress={() => {}} /> <div aria-disabled role="button" on:keypress={() => {}} />
<div disabled role="button" on:keypress={() => {}} />
<div role="presentation" on:keypress={() => {}} /> <div role="presentation" on:keypress={() => {}} />
<button on:click={() => {}} /> <button on:click={() => {}} />
<div role="menuitem" tabindex="0" on:click={() => {}} on:keypress={() => {}} /> <div role="menuitem" tabindex="0" on:click={() => {}} on:keypress={() => {}} />

@ -3,24 +3,24 @@
"code": "a11y-no-noninteractive-element-interactions", "code": "a11y-no-noninteractive-element-interactions",
"end": { "end": {
"column": 44, "column": 44,
"line": 10 "line": 11
}, },
"message": "A11y: Elements with the 'button' interactive role must have a tabindex value.", "message": "A11y: Elements with the 'button' interactive role must have a tabindex value.",
"start": { "start": {
"column": 0, "column": 0,
"line": 10 "line": 11
} }
}, },
{ {
"code": "a11y-no-noninteractive-element-interactions", "code": "a11y-no-noninteractive-element-interactions",
"end": { "end": {
"column": 46, "column": 46,
"line": 11 "line": 12
}, },
"message": "A11y: Elements with the 'menuitem' interactive role must have a tabindex value.", "message": "A11y: Elements with the 'menuitem' interactive role must have a tabindex value.",
"start": { "start": {
"column": 0, "column": 0,
"line": 11 "line": 12
} }
} }
] ]

Loading…
Cancel
Save