zonemaster-gui
zonemaster-gui copied to clipboard
Close history modal
Purpose
No indication (visual or not) are given to the user to signal that the new test results have been fetched.
Context
Fixes #242
Changes
Close the history modal when a link is clicked and move focus to the result heading (h2).
Limitation (maybe future work) : if the result request takes some time the focus would be moved to the old title and there would not be a indication when the new results have been received.
How to test this PR
(Better to test with a screen reader)
- Open the history
- Tab to a test link
- Press enter
- The history modal should close itself and the focus should be move the title (containing the domain name and being described by the creation time)