Skip to main content
What's New


Best Practice 2.6 – Provide means to close popovers (Baseline level)


Ensure all popovers can be closed by buttons and accessible by screen reader.

 

Scenario 1

Example 1

Before Rectification After Rectification
Screen reader user is unable to close the popover. Provide a close button to close the popover
In this example, screen reader user is unable to close the popover. It is a good practice to provide a close button to close the popover, so that screen reader user can locate the close button and execute it accordingly.

Example 2

Before Rectification After Rectification
The only way to close a menu in this mobile app is to click on an empty space outside the menu. Add a close button to the popup window to close it.
In this example, the only way to close the hamburger menu is to tap the empty area outside the menu. User with screen reader is unable to close it. It is a good practice to provide a close button to close the popover. All users, including screen reader users, are able to close the menu easily.

Scenario 2

Before Rectification After Rectification
Difficulties in closing pop-ups for users of the magnification feature. An alternative solution is provided so that Users using the magnification feature can tap outside of the popover to close it
In this example, users with low vision may enlarge the screen by using zoom in function. After the zoom in function is on, the content cannot show in one screen. In this case, they need to swipe the screen to the left for closing the popover by tapping on the close button on the top right hand corner. An alternative solution is provided so that user can tap outside of the popover to close it

 

W3C WCAG Reference: 2.1.2 No Keyboard Trap