-
Notifications
You must be signed in to change notification settings - Fork 75
Create focus-returns-trigger-9au0ou.md #2022
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
HelenBurge
wants to merge
32
commits into
develop
Choose a base branch
from
HelenBurge-patch-2
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 2 commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
6368b71
Create focus-returns-trigger-9au0ou.md
HelenBurge ef40a19
Update focus-returns-trigger-9au0ou.md
HelenBurge 12d4cac
For new rule 9au0ou "Focus returns to trigger" - adding passed exampl…
dan-tripp-siteimprove 28dc461
Update focus-returns-trigger-9au0ou.md
HelenBurge dad5892
Merge branch 'develop' into HelenBurge-patch-2
Jym77 16eb30c
Update _rules/focus-returns-trigger-9au0ou.md
HelenBurge 83ece03
Update focus-returns-trigger-9au0ou.md
HelenBurge c4da79b
Merge branch 'develop' into HelenBurge-patch-2
carlosapaduarte 302ffdc
Update spelling-ignore.yml
HelenBurge 8f7ce2a
Update focus-returns-trigger-9au0ou.md
HelenBurge 24f8a6a
Update focus-returns-trigger-9au0ou.md
HelenBurge 969770f
Update focus-returns-trigger-9au0ou.md
HelenBurge eb1cfe4
Update focus-returns-trigger-9au0ou.md
HelenBurge a154fc3
Create focus.md
HelenBurge 9dc8b42
Update focus-returns-trigger-9au0ou.md
HelenBurge dc189e1
Update focus-returns-trigger-9au0ou.md
HelenBurge d05143d
Delete pages/glossary/focus.md
HelenBurge d593f43
Update focus-returns-trigger-9au0ou.md
HelenBurge d0c1622
Update focus-returns-trigger-9au0ou.md
HelenBurge c760002
Update focus-returns-trigger-9au0ou.md
HelenBurge 545599b
Update focus-returns-trigger-9au0ou.md
HelenBurge 007c767
Update focus-returns-trigger-9au0ou.md
HelenBurge 4709b42
Update focus-returns-trigger-9au0ou.md
HelenBurge 102a0bd
Update package.json
HelenBurge 54afb0d
Update focus-returns-trigger-9au0ou.md
HelenBurge 0ab8ed8
Update package.json
HelenBurge 9884cc5
Update focus-returns-trigger-9au0ou.md
HelenBurge 3f9e26b
Update _rules/focus-returns-trigger-9au0ou.md
HelenBurge 541961b
Update _rules/focus-returns-trigger-9au0ou.md
HelenBurge e8fdf97
Update focus-returns-trigger-9au0ou.md
HelenBurge 94a8083
Merge branch 'develop' into HelenBurge-patch-2
daniel-montalvo 174d5da
whitespace test commit
dan-tripp-siteimprove File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,144 @@ | ||
--- | ||
id: 9au0ou | ||
name: Focus returns to trigger | ||
rule_type: atomic | ||
description: | | ||
This rule checks that when a modal closes the focus returns to the trigger that opened the modal. | ||
accessibility_requirements: | ||
wcag20:2.4.3: # Focus Order (A) | ||
forConformance: true | ||
failed: not satisfied | ||
passed: further testing needed | ||
inapplicable: further testing needed | ||
wcag-technique:G59: # Placing the interactive elements in an order that follows sequences and relationships within the content | ||
forConformance: false | ||
failed: not satisfied | ||
passed: further testing needed | ||
inapplicable: further testing needed | ||
input_aspects: | ||
- Accessibility Tree | ||
- DOM Tree | ||
acknowledgments: | ||
authors: | ||
- Helen Burge | ||
previous_authors: | ||
--- | ||
|
||
## Applicability | ||
|
||
This rule applies to any [modal][] that when closed the [focus][] returns to the [trigger][]. | ||
|
||
## Expectation | ||
|
||
On closing the [modal][], the assistive technology [focus][] will return to the item in the owning document that triggered the [modal][]. | ||
|
||
## Assumptions | ||
|
||
There are no assumptions. | ||
|
||
## Accessibility Support | ||
|
||
There are no accessibility support issues known. | ||
|
||
## Background | ||
|
||
### Bibliography | ||
|
||
- [Understanding Success Criterion 2.4.3: Focus Order](https://www.w3.org/WAI/WCAG21/Understanding/focus-order.html) | ||
- [G59: Placing the interactive elements in an order that follows sequences and relationships within the content](https://www.w3.org/WAI/WCAG21/Techniques/general/G59) | ||
|
||
## Test Cases | ||
|
||
### Passed | ||
|
||
#### Passed Example 1 | ||
|
||
The button that is activated to open the [modal][] gets the [focus][] returned to it when the [modal][] is dismissed using the close button in the modal. | ||
|
||
```html | ||
HelenBurge marked this conversation as resolved.
Show resolved
Hide resolved
|
||
Code needed! | ||
``` | ||
|
||
#### Passed Example 2 | ||
|
||
The button that is activated to open the [modal][] gets the [focus][] returned to it when the [modal][] is dismissed using the escape key. | ||
|
||
```html | ||
Code needed! | ||
``` | ||
|
||
#### Passed Example 3 | ||
|
||
The button that is activated to open the [modal][] gets the [focus][] returned to it when the [modal][] is dismissed using the cancel button. | ||
|
||
```html | ||
Code needed! | ||
``` | ||
|
||
HelenBurge marked this conversation as resolved.
Show resolved
Hide resolved
|
||
#### Passed Example 4 | ||
|
||
The link that is activated to open the [modal][] gets the [focus][] returned to it when the [modal][] is dismissed using the close button in the modal. | ||
|
||
```html | ||
Code needed! | ||
``` | ||
|
||
#### Passed Example 5 | ||
|
||
The link that is activated to open the [modal][] gets the [focus][] returned to it when the [modal][] is dismissed using the escape key. | ||
|
||
```html | ||
Code needed! | ||
``` | ||
|
||
#### Passed Example 6 | ||
|
||
The link that is activated to open the [modal][] gets the [focus][] returned to it when the [modal][] is dismissed using the cancel button. | ||
|
||
```html | ||
Code needed! | ||
``` | ||
|
||
HelenBurge marked this conversation as resolved.
Show resolved
Hide resolved
|
||
### Failed | ||
|
||
#### Failed Example 1 | ||
The button that is activated to open the [modal][] gets the [focus][] returned to the item after it when the [modal][] is dismissed. | ||
|
||
```html | ||
Code needed! | ||
``` | ||
|
||
#### Failed Example 2 | ||
The button that is activated to open the [modal][] gets the [focus][] returned to the start of the page when the modal is dismissed. | ||
|
||
```html | ||
Code needed! | ||
``` | ||
|
||
#### Failed Example 3 | ||
The link that is activated to open the [modal][] gets the [focus][] returned to the item after it when the [modal][] is dismissed. | ||
|
||
```html | ||
Code needed! | ||
``` | ||
|
||
#### Failed Example 4 | ||
The link that is activated to open the [modal][] gets the [focus][] returned to the start of the page when the modal is dismissed. | ||
|
||
```html | ||
Code needed! | ||
``` | ||
|
||
HelenBurge marked this conversation as resolved.
Show resolved
Hide resolved
|
||
### Inapplicable | ||
|
||
#### Inapplicable Example 1 | ||
TBC | ||
|
||
```html | ||
Code needed! | ||
``` | ||
|
||
[trigger]: #trigger 'Definition of trigger' | ||
[focus]: #focus 'Definition of focus' | ||
[html]: #namespaced-element | ||
[modal]: https://www.w3.org/WAI/ARIA/apg/patterns/dialogmodal/ |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.