Focus management after a session dialog is closed
In 5 seconds a dialog will a appear. After the user closes it focus will return to the last focused element or the logo, depending on whether or not the user tabs to the button before the dialog is opened. Reload the page to restart this example.
session is ending
Testing
- Chrome 69 (keyboard-only) - Focus returns to the logo if the button is not focused before the dialog appears. Focus returns to the button if it is focused before the dialog appears
- Chrome 69/JAWS 2018 - JAWS 2018's focus returns to the logo if the button is not focused before the dialog appears. Focus returns to the button if it is focused before the dialog appears
- Firefox 62 (keyboard-only) - Focus returns to the logo if the button is not focused before the dialog appears. Focus returns to the button if it is focused before the dialog appears
- Firefox 62/JAWS 2018 - JAWS 2018's focus returns to the logo if the button is not focused before the dialog appears. Focus returns to the button if it is focused before the dialog appears
- IE 11 (keyboard-only) - Focus returns to the logo if the button is not focused before the dialog appears. Focus returns to the button if it is focused before the dialog appears
- IE 11/JAWS 2018 - JAWS 2018's focus returns to the logo if the button is not focused before the dialog appears. Focus returns to the button if it is focused before the dialog appears
- iOS 12/Safari(no screen reader) - Focus returns to the logo after the dialog is closed
- iOS 12/Safari/VoiceOver - VoiceOver's focus returns to the logo after the dialog is closed