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

Move custom meta content above licence in footer #511

Merged
merged 3 commits into from
Feb 23, 2024

Conversation

peteryates
Copy link
Member

@peteryates peteryates commented Feb 23, 2024

It appears that the custom meta content should be above the licence rather than underneath it.

The examples in the design system samples show it but it's not really covered by the official documentation (which was what the library was based on in the early days).

Before After
Screenshot from 2024-02-23 11-53-34 Screenshot from 2024-02-23 11-56-58

It appears that the custom meta content should be above the licence
rather than underneath it.

The examples in the design system samples show it[0] but it's not really
covered by the official documentation[1] (which was what the library was
based on in the early days)

[0] https://govuk-frontend-review.herokuapp.com/components/footer
[1] https://design-system.service.gov.uk/components/footer/
Copy link

netlify bot commented Feb 23, 2024

Deploy Preview for govuk-components ready!

Name Link
🔨 Latest commit b975d8e
🔍 Latest deploy log https://app.netlify.com/sites/govuk-components/deploys/65d8b65d0617850008d9aef3
😎 Deploy Preview https://deploy-preview-511--govuk-components.netlify.app/components/footer
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@peteryates peteryates force-pushed the move-custom-meta-above-licence-in-footer branch from a7e2747 to ee6e044 Compare February 23, 2024 11:56
| Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam
a porta purus. Fusce faucibus aliquam massa sed eleifend.
- footer.with_meta_html do
| Built with love by x-govuk.
Copy link
Contributor

Choose a reason for hiding this comment

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

Might be useful to show including a link in this example (which would need the govuk-footer__link applied); not sure what the correct way of doing that would be, off the top of my heading, but I guess using the govuk_link helper.

Suggested change
| Built with love by x-govuk.
| Built with love by X-GOVUK.

Copy link
Member Author

Choose a reason for hiding this comment

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

Good point. I think there's room for a #govuk_footer_link_to helper as the ones in the example don't have the govuk-link class.

@paulrobertlloyd
Copy link
Contributor

Good spot! Think we can improve the example a little, but nothing more to add.

Co-authored-by: paulrobertlloyd <me+git@paulrobertlloyd.com>
@peteryates peteryates force-pushed the move-custom-meta-above-licence-in-footer branch from eb9414e to b975d8e Compare February 23, 2024 15:14
@paulrobertlloyd
Copy link
Contributor

Ooh, #govuk_footer_link_to tidies up things a lot. Nice!

@peteryates peteryates added this pull request to the merge queue Feb 23, 2024
Merged via the queue into main with commit 32dbe66 Feb 23, 2024
14 checks passed
@peteryates peteryates deleted the move-custom-meta-above-licence-in-footer branch February 23, 2024 15:43
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