nhsuk / nhsuk-frontend

NHS.UK frontend contains the code you need to start building user interfaces for NHS websites and services.
https://nhsuk.github.io/nhsuk-frontend/
MIT License
606 stars 106 forks source link

Update footer copyright statement #940

Closed frankieroberto closed 3 weeks ago

frankieroberto commented 2 months ago

The copyright guidance was changed in #915 to be copyright of NHS England instead of Crown Copyright, but the text in the footer was only partially updated.

This updates the second instance of Crown Copyright in the footer to also be NHS England. (The text is in 2 places in the template, and which one is used depends on how many columns of links are included).

This updates the footer with navigation links example to match the guidance on the page.

sarawilcox commented 2 months ago

Hi @frankieroberto, in this case Crown copyright is correct. It's because it's the NHS website example and the NHS website is Crown copyright, unlike most other NHS products.

frankieroberto commented 2 months ago

Hi @frankieroberto, in this case Crown copyright is correct. It's because it's the NHS website example and the NHS website is Crown copyright, unlike most other NHS products.

Hi @sarawilcox! Thanks. I should have been clearer - I think the issue is that in the footer component in nhs-frontend, whether it displays "Crown Copyright" or "Copyright NHS England" seems to depend on the number of columns used in the footer. Not sure if this is deliberate or an oversight, but it confused me!

roshaanbajwa commented 1 month ago

Hi @frankieroberto, in this case Crown copyright is correct. It's because it's the NHS website example and the NHS website is Crown copyright, unlike most other NHS products.

Hi @sarawilcox! Thanks. I should have been clearer - I think the issue is that in the footer component in nhs-frontend, whether it displays "Crown Copyright" or "Copyright NHS England" seems to depend on the number of columns used in the footer. Not sure if this is deliberate or an oversight, but it confused me!

Hi Frankie,

The copyright doesn't depend on the number of columns, the component "Footer (columns)" is the implementation that is included in the live site, so we chose to use it as the example of footer with columns with the copyright included.

edwardhorsford commented 1 month ago

I agree this looks like a bug to me. Copyright text is hardcoded to either NHS England or Crown copyright, and the thing that decides between them is whether you've provided linksColumn2. I don't see why providing linksColumn2 should make it Crown copyright, yet NHS England without.

Footer with a single link: Screenshot 2024-06-12 at 12 03 24

Footer with a single linksColumn2 in addition: Screenshot 2024-06-12 at 12 07 29

Aside: ideally these messages would be configurable, not hardcoded. I think this component could be more flexible.

paulrobertlloyd commented 3 weeks ago

Copyright text is hardcoded to either NHS England or Crown copyright, and the thing that decides between them is whether you've provided linksColumn2.

Ooooh, this is why the copyright changed in my prototype; it was saying NHS England, then after I added another column of links it changed to Crown Copyright. When I first looked at this codebase, I only spotted one of the 2 lines of code where a copyright statement is provided.

Until this issue is resolved, in my prototype I’ve added this fix:

{{ footer({
  …
}) | replace("© Crown copyright", "© NHS England") }}

I agree that it should be configurable; perhaps with the default/fallback value being © Crown Copyright.

Reading the Footer guidance in the Service Manual, it looks like this was either once possible, or was intended to be possible but not implemented:

frankieroberto commented 3 weeks ago

@paulrobertlloyd well spotted! Looks like the documentation for this component on the NHS Service Manual doesn’t quite match the Nunjucks macro in nhsuk-frontend.

I’ve opened a quick PR to fix this: #975

frankieroberto commented 3 weeks ago

Closing this now, as #975 makes it redundant.