In this video:
- Fixing button focus styling.
- Switch the if/then to “toggleAttribute()” for better efficiency.
- Add aria stuff for accessibility (popup, labelledby, etc.)
- Make pop-up close with an accessible close icon.
- Make pop-up close with escape key (accessibility)
- Automatically focus on first focusable element (accessibility)
- When pop-up closes, return focus to trigger (accessibility)
Still to come: Need to figure out how to trap focus in the popup.