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

Fixed skip link having no target when Banner is not on the page. #397

Conversation

AlexSkrypnyk
Copy link
Contributor

this is a tricky one

The Skip link skips to the main-content anchor. This anchor is set within the Banner to allow including of the page heading into what is considered to be a "whole page content".

On the pages where the banner is not present (if a banner is replaced by another component, for example), the anchor is not rendered.

This PR adds the anchor on the page if the banner is not present.

@AlexSkrypnyk AlexSkrypnyk force-pushed the feature/fix-skip-link-target-when-no-banner branch from 1d9d3ae to 7221d58 Compare October 2, 2024 21:46
@AlexSkrypnyk AlexSkrypnyk force-pushed the feature/fix-skip-link-target-when-no-banner branch from 7221d58 to 8637ffa Compare October 2, 2024 22:15
Copy link
Collaborator

@richardgaunt richardgaunt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @AlexSkrypnyk looks good to me.

@richardgaunt richardgaunt merged commit 03909eb into civictheme:main Oct 4, 2024
4 checks passed
@AlexSkrypnyk AlexSkrypnyk deleted the feature/fix-skip-link-target-when-no-banner branch October 4, 2024 21:05
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