Steps to replicate the issue (include links if applicable):
- Open a search preview using keyboard navigation (tab key)
- Navigate to various parts of the preview using keyboard (tab key)
- Navigate until the end of the contents in preview using keyboard
What happens?:
When the end of contents in preview is reached, the tab navigation should cycle back to "Close" button in the search preview. This is what happens in all cases except the case below:
If the "+ X sections" link is the last link within the search preview contents, then the tab navigation behaves differently. Instead of cycling back to top (i.e. to close button) it navigates to the footer. See video below that shows the expected behaviour first and then the unexpected behaviour in the second example.
What should have happened instead?:
It should navigate back to the close button and not leave the preview focus.
Software version (skip for WMF-hosted wikis like Wikipedia):
Other information (browser name/version, screenshots, etc.):