-
Notifications
You must be signed in to change notification settings - Fork 791
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(nested-interactive/aria-text): allow "tabindex=-1" on elements wi…
…th no role (#3165) * refactor(checks/navigation): improve `internal-link-present-evaluate` Make `internal-link-present-evaluate` work with virtualNode rather than actualNode. Closes issue #2466 * test commit 1 * test commit 2 * test commit 3 * Revert "Merge branch 'dan-test-branch-1' into develop" This reverts commit 428e015, reversing changes made to 9f996bc. * Revert "test commit 1" This reverts commit 9f996bc. * fix(rule): allow "tabindex=-1" for rules "aria-text" and "nested-interactive" Closes issue #2934 * work in progress * work in progress * test commit 1 * Revert "test commit 1" This reverts commit 9f996bc. * fix(rule): allow "tabindex=-1" for rules "aria-text" and "nested-interactive" Closes issue #2934 * work in progress * work in progress * fix whitespace * add new case to test test/checks/keyboard/no-focusable-content.js * change "disabled" test case in test/checks/keyboard/no-focusable-content.js * fix merge problem
- Loading branch information
Showing
7 changed files
with
106 additions
and
28 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
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"description": "aria-text tests", | ||
"rule": "aria-text", | ||
"violations": [["#fail1"], ["#fail2"], ["#fail3"], ["#fail4"]], | ||
"passes": [["#pass1"], ["#pass2"], ["#pass3"]] | ||
"violations": [["#fail1"], ["#fail2"], ["#fail3"], ["#fail4"], ["#fail5"]], | ||
"passes": [["#pass1"], ["#pass2"], ["#pass3"], ["#pass4"], ["#pass5"], ["#pass6"]] | ||
} |
24 changes: 13 additions & 11 deletions
24
test/integration/rules/nested-interactive/nested-interactive.html
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 |
---|---|---|
@@ -1,16 +1,18 @@ | ||
<button id="pass1">pass</button> | ||
<div role="button" id="pass2">pass</div> | ||
<div role="tab" id="pass3">pass</div> | ||
<div role="checkbox" id="pass4">pass</div> | ||
<div role="radio" id="pass5"><span>pass</span></div> | ||
<button id="pass2"><span tabindex="-1">pass</span></button> | ||
<div role="button" id="pass3">pass</div> | ||
<div role="tab" id="pass4">pass</div> | ||
<div role="checkbox" id="pass5">pass</div> | ||
<div role="radio" id="pass6"><span>pass</span></div> | ||
<div role="radio" id="pass7"><span tabindex="-1">pass</span></div> | ||
|
||
<button id="fail1"><span tabindex="0">fail</span></button> | ||
<div role="button" id="fail2"><input /></div> | ||
<div role="tab" id="fail3"><button id="pass6">fail</button></div> | ||
<div role="checkbox" id="fail4"><a href="foo.html">fail</a></div> | ||
<div role="radio" id="fail5"><span tabindex="0">fail</span></div> | ||
<div role="radio" id="fail6"><button id="pass7" tabindex="-1">not really hidden</button></div> | ||
<div role="radio" id="fail7"><button aria-hidden="true" tabindex="-1">not really hidden</button></div> | ||
<button id="pass8"><span tabindex="0">pass</span></button> | ||
<div role="button" id="fail1"><input /></div> | ||
<div role="tab" id="fail2"><button id="pass9">div fails, button passes</button></div> | ||
<div role="checkbox" id="fail3"><a href="foo.html">fail</a></div> | ||
<div role="radio" id="pass10"><span tabindex="0">pass</span></div> | ||
<div role="radio" id="fail4"><button id="pass11" tabindex="-1">not really hidden</button></div> | ||
<div role="radio" id="fail5"><button aria-hidden="true" tabindex="-1">not really hidden</button></div> | ||
|
||
<a id="ignored1" href="foo.html">ignored</a> | ||
<span id="ignored2">ignored</span> |
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