-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: implement a11y
aria-activedescendant-has-tabindex
(#8172)
- Loading branch information
Showing
5 changed files
with
55 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
test/validator/samples/a11y-aria-activedescendant/input.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<!-- VALID --> | ||
<input /> | ||
<input tabindex="0" /> | ||
<input aria-activedescendant="some-id" /> | ||
<input aria-activedescendant="some-id" tabindex={0} /> | ||
<input aria-activedescendant="some-id" tabindex={1} /> | ||
<input aria-activedescendant="some-id" tabindex="0" /> | ||
<input aria-activedescendant="some-id" tabindex={-1} /> | ||
<input aria-activedescendant="some-id" tabindex="-1" /> | ||
|
||
<div /> | ||
<div aria-activedescendant="some-id" role="tablist" tabindex={-1} /> | ||
<div aria-activedescendant="some-id" role="tablist" tabindex="-1" /> | ||
|
||
<!-- INVALID --> | ||
<div aria-activedescendant="some-id" /> | ||
|
17 changes: 17 additions & 0 deletions
17
test/validator/samples/a11y-aria-activedescendant/warnings.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
[ | ||
{ | ||
"code": "a11y-aria-activedescendant-has-tabindex", | ||
"end": { | ||
"character": 568, | ||
"column": 36, | ||
"line": 16 | ||
}, | ||
"message": "A11y: Elements with attribute aria-activedescendant should have tabindex value", | ||
"pos": 537, | ||
"start": { | ||
"character": 537, | ||
"column": 5, | ||
"line": 16 | ||
} | ||
} | ||
] |