Open
Description
Summary:
For good keyboard a11y, when the user closes the modal, focus should be restored to whatever element was focused before they triggered the modal.
Steps to reproduce:
- Using keyboard, navigate to "open modal" button on demo page
- Hit enter to activate the button and open a modal
- Use keyboard focus to close modal
Expected behavior:
Focus should be restored to the button that opened the modal in step one.