moj-analytical-services / shinyGovstyle

Apply GOV.UK styled components and formats in shiny
https://moj-analytical-services.github.io/shinyGovstyle/
40 stars 7 forks source link

Add ability to add links into the footer #77

Open cjrace opened 6 months ago

cjrace commented 6 months ago

There's a few examples of this starting to appear, e.g. on Explore education statistics we add a line about OSR and also links to various pages from the footer.

image

The UKHSA dashboard also does the same.

image

We can use the govuk-footer__inline-list class for this, and should make sure to give the option for a visually hidden heading that screen readers can use to navigate to these.

When we do this change, we should also add .noWS = "after" to the a tag for Open Government Licence as you can now remove the excess whitespace it adds pretty easily.

Example of current footer with whitespace is visible on the README image

cjrace commented 2 months ago

Have an in progress version of this in https://github.com/dfe-analytical-services/apprenticeships-provider-dashboard