-
Couldn't load subscription status.
- Fork 347
Allow removal of Content Licence information in the GOV.UK footer component #6191
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
base: main
Are you sure you want to change the base?
Allow removal of Content Licence information in the GOV.UK footer component #6191
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for proposing this @NickColley. The technical changes look good and the review app seemed OK to me 🙌🏻
@hazalarpalikli @mia-allers-gds @CharlotteDowns any chance one of you could have a look at the Footer page of the preview app to confirm things look OK design-wise for the examples without licence, please?
packages/govuk-frontend/src/govuk/components/footer/footer.yaml
Outdated
Show resolved
Hide resolved
|
Oh, we'll need a CHANGELOG entry for this new feature as well. Are you find drafting it @NickColley or would you prefer we add it before merging? |
|
@romaricpascal I'll make sure to add the CHANGELOG entry good spot 👍🏻 |
6069a8e to
e7aeaa1
Compare
e7aeaa1 to
b32124b
Compare
|
@romaricpascal added first draft of the CHANGELOG entry and commited your suggestion ready for final review. |
|
Minor concern that, if the footer has the licence hidden and no other information added, you end up with an empty |
|
In theory we could do some logic around that wrapper div and check if any of the expected children elements exist, but I think if we do that we'll need to write more CSS to anticipate only one item so it starts getting more complicated. In practice at Companies House at least we do put custom information in there to direct users to our policies given that we're removing the content licence so it is never empty.
In terms of accessibility, since the div is presentational it wont enter the accessibility tree so I think this is more a bit odd from HTML point of view but I dont see how it would impact end users unless I have missed something. Let me know what you think |
|
Oh huh. I was thinking based on this snippet of MDN:
Quickly trying it in VoiceOver, the empty |
|
@querkmachine things are always changing so I could be wrong but I thought for this sort of thing it goes HTML -> Assistive Tree -> Assistive Technology My understanding that if the node is ignored it'll never get passed on, since it's just not in the tree, CSS does play a role but my assumption was only on nodes that are in the tree. Always good to check though. I know there's definitely been some really weird stuff come up with VoiceOver in the past that's CSS based etc.
|
|
@ch-ncolley I've given it a run through with the latest versions of JAWS and NVDA, and VoiceOver on iOS, and nothing disagreeable happened. All of them skipped the empty element. 🎉 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me! Still not had any feedback from design folks so I'll give them another poke.
|
@querkmachine really appreciate you doing that testing for me! 💌 |
|
@ch-ncolley Hey, sorry, we've just fixed an issue with the review app deployments failing. Are you able to rebase this PR so that the review app preview works again? Thanks. 👍 |
Co-authored-by: Nick Colley <[email protected]>
Since we can now hide the content licence entirely, we need to handle the cases when a user may have no content licence but some inline lists or custom meta info. Co-authored-by: Nick Colley <[email protected]>
Co-authored-by: Romaric Pascal <[email protected]> Co-authored-by: Nick Colley <[email protected]>
Co-authored-by: Nick Colley <[email protected]>
b32124b to
5f4b4b0
Compare

I have coded this up but I understand there may be a reason why this proposal is not accepted or wanted so no hard feelings if it is not accepted 😄
At Companies House (https://find-and-update.company-information.service.gov.uk/) we do not use the OGL Licence:
If we want to use the
govukFooterNunjucks macro we have to manually hide the OGL Licence by doing something like:or by maintaining our own Nunjucks macro, where we then dont benefit from any markup changes for example when the crown logo was added recently.
This pull request introduces:
contentLicencetofalsewhich then hides it.Screenshots
Companies House example
GOV.UK Design System guidance