Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a skip link for skipping filters in search #244

Merged
merged 1 commit into from
Apr 9, 2024

Conversation

MatMoore
Copy link
Contributor

@MatMoore MatMoore commented Apr 9, 2024

Screenshot 2024-04-09 at 16 14 19

This gives keyboard users a quick way to skip the long sidebar with filters in.

The same pattern is already in use on GOV.UK finders:
Screenshot 2024-04-09 at 16 01 34

Note that by default, the skip link component has margin: inherit important! that causes the block to touch the following content, which is undesired in this case. To avoid this I've had to override it with an explicit margin-bottom rule.

Also, I noticed that $govuk-global-styles: true; includes a selector that overrides the skip link's text-decoration: underline - I've added some extra css to add that back in.

@MatMoore MatMoore changed the title Add a skip link for skipping navigation Add a skip link for skipping filters in search Apr 9, 2024
@MatMoore MatMoore merged commit 01f9dc6 into main Apr 9, 2024
6 checks passed
@MatMoore MatMoore deleted the improve-search-skiplink branch April 9, 2024 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants