Skip to content

Latest commit

 

History

History
144 lines (100 loc) · 3.55 KB

File metadata and controls

144 lines (100 loc) · 3.55 KB
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 wcag-technique:G59
forConformance failed passed inapplicable
true
not satisfied
further testing needed
further testing needed
forConformance failed passed inapplicable
false
not satisfied
further testing needed
further testing needed
input_aspects
Accessibility Tree
DOM Tree
acknowledgments
authors previous_authors
Helen Burge

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

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.

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.

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.

Code needed!

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.

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.

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.

Code needed!

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.

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.

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.

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.

Code needed!

Inapplicable

Inapplicable Example 1

TBC

Code needed!