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

Allow licence details in footer to be hidden #4438

Merged
merged 2 commits into from
Nov 26, 2024

Conversation

pezholio
Copy link
Contributor

@pezholio pezholio commented Nov 26, 2024

The layout footer component is used quite a lot by internal services, where it doesn’t make sense to show licence details. This adds a show_licence option to allow users to hide the licence if they want/need to. This will always default to true, unless the option is specifically set to false.

@govuk-ci govuk-ci temporarily deployed to components-gem-pr-4438 November 26, 2024 14:18 Inactive
@govuk-ci govuk-ci temporarily deployed to components-gem-pr-4438 November 26, 2024 14:18 Inactive
The layout footer component is used quite a lot by internal services,
where it doesn’t make sense to show licence details. This adds a
`show_licence` option to allow users to hide the licence if they
want/need to. This will always default to `true`, unless the option
is specifically set to `false`.
@pezholio pezholio force-pushed the hide-licence-details-in-footer branch from 28219e4 to cba30b7 Compare November 26, 2024 14:34
@govuk-ci govuk-ci temporarily deployed to components-gem-pr-4438 November 26, 2024 14:34 Inactive
Copy link
Contributor

@andysellick andysellick left a comment

Choose a reason for hiding this comment

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

Looks good. Does the PR description need updating now the approach has changed?

@andysellick
Copy link
Contributor

@pezholio just to check - it looks like this new option hides the licence information, but also all of the links? Is that correct?

@andysellick
Copy link
Contributor

Scratch that last comment - it's just that the example doesn't include those links. Ignore me!

@pezholio pezholio merged commit 44c2c93 into main Nov 26, 2024
12 checks passed
@pezholio pezholio deleted the hide-licence-details-in-footer branch November 26, 2024 16:41
@andysellick andysellick mentioned this pull request Nov 26, 2024
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.

3 participants