-
-
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: add a11y
interactive-supports-focus
(#8392)
- Loading branch information
Showing
6 changed files
with
386 additions
and
1 deletion.
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
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
32 changes: 32 additions & 0 deletions
32
test/validator/samples/a11y-interactive-supports-focus/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,32 @@ | ||
<!-- VALID --> | ||
<div aria-hidden role="button" on:keypress={() => {}} /> | ||
<div aria-disabled role="button" on:keypress={() => {}} /> | ||
<div disabled role="button" on:keypress={() => {}} /> | ||
<div role="presentation" on:keypress={() => {}} /> | ||
<button on:click={() => {}} /> | ||
<div role="menuitem" tabindex="0" on:click={() => {}} on:keypress={() => {}} /> | ||
<div role="button" tabindex="-1" on:click={() => {}} on:keypress={() => {}} /> | ||
|
||
<!-- INVALID --> | ||
<div role="button" on:keypress={() => {}} /> | ||
<span role="menuitem" on:keydown={() => {}} /> | ||
<div role="button" on:keyup={() => {}} /> | ||
<span role="menuitem" on:click={() => {}} on:keypress={() => {}} /> | ||
<div role="button" on:contextmenu={() => {}} /> | ||
<span role="menuitem" on:dblclick={() => {}} /> | ||
<div role="button" on:drag={() => {}} /> | ||
<span role="menuitem" on:dragend={() => {}} /> | ||
<div role="button" on:dragenter={() => {}} /> | ||
<span role="menuitem" on:dragexit={() => {}} /> | ||
<div role="button" on:dragleave={() => {}} /> | ||
<span role="menuitem" on:dragover={() => {}} /> | ||
<div role="button" on:dragstart={() => {}} /> | ||
<span role="menuitem" on:drop={() => {}} /> | ||
<div role="button" on:mousedown={() => {}} /> | ||
<span role="menuitem" on:mouseenter={() => {}} /> | ||
<div role="button" on:mouseleave={() => {}} /> | ||
<span role="menuitem" on:mousemove={() => {}} /> | ||
<div role="button" on:mouseout={() => {}} /> | ||
<span role="menuitem" on:mouseover={() => {}} /> | ||
<div role="button" on:mouseup={() => {}} /> | ||
|
Oops, something went wrong.