Repository navigation
Footer #6053
Replies: 48 comments
|
Hi, We're using this footer component on the new marketplace app we're building for CCS. We're investigating how to make the footer sticky so that it appears at the bottom of the page even if the page doesn't have much content. I've searched the design system but couldn't find anything about a sticky footer there so wondered whether you had any advice on how best to go about it? |
Dropbox Paper auditOn 16 January 2019 the Design System team reviewed a Dropbox Paper document discussing the Footer component. The aim was to reduce the number of places containing guidance and code by:
Below is a record of the outcomes of that review. If you need to, you can see the original Dropbox Paper content in the internet archive. Review outcomesUpdates to the Design SystemThe Design System team will carry out the following updates to ensure that relevant, useful content from the Dropbox Paper file is added to the Design System.
|
|
I'm trying to have one or more lines of text above the footer links. Right now the component makes this a little awkward. It has the I can pass html, but then have to pass the html of the links too. I also can't see a class for getting the right font / colour - it seems to inherit from the parent |
|
I'm now making my own style for the footer text - but it doesn't look like the colour used is exposed. For now I've hard coded it - but perhaps it could be made available? |
|
For now, I've gone with: $govuk-footer-text: #454a4c; // design system doesn't expose this colour
.app-footer__body {
@include govuk-font(16);
color: $govuk-footer-text
} |
|
One more from me. Is it possible to override the OGL logo and text? It's not relevant to our service and our content is not released under this licence. I presume other services which contain confidential / official information may have similar needs - potentially depending on the page of the service. Feels like it would be good to make it configurable. I've ended up using raw html - but need extra styles so the last child of |
|
Another reason to have the English text on this component configurable is so it can be translated into Welsh |
|
Some sites have "Built by ..." in the footer, see: Others don't, see: Is there a declutter opportunity here? |
|
For the service I’m prototyping, we want to signpost help content in the footer. However this component isn’t yet flexible enough to achieve the desired result: In order to achieve the above, I ‘forked’ the footer, making the following changes:
(This is all very similar to @edwardhorsford’s feedback above). This is the forked Nunjucks tag as it appears in our templates: {{ appFooter({
classes: "govuk-footer--app",
meta: {
title: "Need help?",
html: "Call <a href=\"https://getintoteaching.education.gov.uk/\">Get into Teaching</a> on Freephone 0800 389 2500 or chat to an adviser using their <a href=\"https://ta-chat.education.gov.uk/chat/chatstart.aspx?domain=www.education.gov.uk&department=GetIntoTeaching%27,%27new_win%27,%27width=0,height=0%27);return%20false;%22&SID=1\">online chat service</a> between 8am and 8pm, Monday to Friday",
items: [{
href: "mailto:becomingateacher@digital.education.gov.uk",
text: "Give feedback or report a problem"
}, {
href: "/admin/flags",
text: "Feature flags"
}, {
href: "/admin/clear-data",
text: "Clear data"
}]
}
}) }}In terms of CSS, I modified the following: .govuk-footer--app {
.govuk-footer__meta-custom {
max-width: 40rem;
margin-bottom: govuk-spacing(6);
a {
color: inherit;
}
}
.govuk-footer__inline-list {
margin-bottom: 0;
}
.govuk-footer__inline-list-item {
margin-bottom: 0;
}
}This ensures links within the meta content inherit the colour of the footer text, and removes bottom margins from both I hope this feedback is useful! |
|
Hey @edwardhorsford, I've recorded the reasoning why this decision was made here: |
|
Hi, |
|
Hi @DouglasCaven 👋 Apologies, I'm not sure exactly which issue you're referring to as there are a couple of things in our backlog relating to the footer component. If you let me know specifically what issue/fix you want to get an update on, I can look into that for you. |
|
Hi Vanita,
Thank you for the quick response.
The specific issue relates to the footer contrast and the issue description is to ensure the contrast between foreground and background meets WCAG 2 AA contrast ration thresholds.
I have added the screenshot of the potential fix to clarify.
[Graphical user interface, application, email Description automatically generated]
Please let me know if this is enough information for you or if you require anything else?
Thank you.
Doug.
Douglas Caven
User Experience Designer
NHS Business Services Authority
(updated)
|
|
@DouglasCaven I can't see your screenshot, but I think you might be referring to the Crown Copyright logo? We do have an issue for that here: alphagov/govuk-frontend#2134 . Unfortunately I'm not sure when we will be picking up this work yet. We are planning quite a few improvements to the header and footer components for our next breaking release, which we're hoping to work on in the next few months, but I can't say for sure when it'll be released. |
|
@Kate-Nicolson Thanks for the feedback. Regarding the footer being read as "content information": this may be how your screen reader chooses to interpret the footer element. We aren't consciously doing anything to encourage a screen reader to call the region by that name. Are you able to provide information on what web browser, screen reader software and operating system you're using? This can help us reproduce what you're describing. Thanks! |
|
With regards to the reference to the Home Office Design System as an example. I think it's worth bearing in mind that the design is intended for internal systems rather than anything that would be consumed by members of the public. (Public facing systems would use the GOV.UK Design System with the coat of arms, as usual.) I also provide a simplified version of the footer in NotGovUK (a React implementation of GOV.UK Design Sytstem), but again this is intended for situations where the coat of arms wouldn't be appropriate. |
|
Hi, when the screen is under 640px wide the space between the link is reduced below what is acceptable for WCAG2.2 criteria Target Size (minimum) 2.5.8. It appears to be that the text is 17px high with a 5px margin at the bottom. 17px + 5px = 22px, which 2px short of the minimum requirement. It would be good to get a review and confirmation if this is an issue or not as we are starting to audit against WCAG 2.2 and will have to report if it is. Thanks. |
Example of footer in Chrome with browser screen at 1280px and 400% zoom. Using target size booklet.
|
|
I'd like to suggest updating the default footer example to either remove the line about 'all content is available under the Open Government Licence' or modify it to 'Source code for this service is available under the Open Government Licence'. ReasoningThe current default footer text is primarily applicable to content-based sites like www.gov.uk, where such a licence is relevant. However, the design system is often used by transactional services where user data or casework data should not be implied to be available under such a licence. Although teams can customise the text, not all do. The default example should avoid implying a licence that might not be appropriate for many services, ensuring it is broadly applicable and reducing potential confusion or misuse. |
|
Disclaimer: I'm not a maintainer and don't work for GDS. @edwardhorsford: The default example seems reasonable to me, as the GOV.UK Design System is primarily for services on GOV.UK. (Whose content should be available under OGL, as I understand it.) For those of us that are re-using bits of the GOV.UK Design System for applications that are internal to departments, it seems that it is incumbent on us remove that notice. That said, perhaps GDS could be nice and provide support for easily removing the notice. (I think it should be there by default though.) With regards to source code, I don't think the GOV.UK Design System can predict whether the source code is always available or the license that it is available under. (OGL isn't really a software license, so we would typically use something else.) |
|
@daniel-ac-martin I don't think that's the case. Most services being on GOV.UK doesn't mean all their content is under OGL - certainly when using a transactional service you would not expect user-provided data to be released under OGL. I think the line is mostly only relevant for www.gov.uk or perhaps purely content services - which is the minority of usage of the design system. For most transactional services I don't think you'd want to say 'all content is available' - at best it's ambiguous. As you say, the design system team can't predict the usage of the components. Therefore I would have the default output of |
|
So this is a bit of a wildcard, but after seeing the phase banner start to get in the way of govuk one login stuff, and more general discussion about lack of transparency about service standard processes and even coding in the open, I have been playing with something that could be an interesting GDS/CDDO combined thing with the footer: A few key things:
I have played with this a bit more (different permutations, things that from my experience could be hard about this) over on |
|
Nice! I like the link to code and any relevant reports - I think adding the dept or org responsible could help for transparency and accountability too. Relevant legislation might be cool. Feedback is really important and I'd worry it might get missed in the footer, also I think you'd want it more active like 'Give feedback' |
|
Revisions to https://github.com/alphagov/govuk-design-system-backlog/issues/96#issuecomment-2263743542 History page (forgive the slightly funky service header, I've been playing around with Eleventy for fun and this is the default): Thanks to:
Other thoughts:
Updated full version: https://vickytnz.github.io/govuk-header-footer/ |
|
Could I please chase a response to the Target Size issue mentioned by @danielelder and @shabana-ali in November 2023? This recently failed in a monitoring team audit and the service team is asking for a resolution date. Does it need to be logged as a separate issue? |
|
@andrewhick Since GOV.UK Frontend v6.0.0 the font size used in footer has increased to 19px with a 25px line height. Anyone using GOV.UK Frontend v5.2.0 or newer can also opt in to this change by setting Browser developer tools show differing heights for the links:
But each list item is 25px with a 5px margin, so we should be covered by the 'Spacing' exception in 2.5.8. Trying to recreate the example given above, there are no overlapping controls:
|
|
@36degrees, why |
|
@RokeJulianLockhart Couple of things here:
There's some more details on our type scale page if you're interested. |








![Assurance history for [service name] This service must meet the Service Standard. This is because it: changes a customer record, is built, not bought, entered discovery after 1 June 2019 - services before this date were assured to a previous version of the Service Standard More about the Service Standard on GOV.UK. Previous assurance events for this service This page is accurate as of 3 August 2024. Assurance event Date Result Report Live assessment 1 July 2024 Not met Not yet published; Beta reassessment 1 March 2023 Met Department service standard reports; Beta assessment 14 December 2022 Met GOV.UK service standard reports; Alpha reassessment 29 July 2021 Met GOV.UK service standard reports; Alpha assessment 1 March 2021 Not met GOV.UK service standard reports. All service assessments after 1 April 2021 were run by the Central Data and Digital Office and any before that date by the Government Digital Service.](https://private-user-images.githubusercontent.com/1223264/354816578-24c3d722-6073-4b07-af1d-f30a80697523.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3OTIyOTc0MDUsIm5iZiI6MTc5MjI5NzEwNSwicGF0aCI6Ii8xMjIzMjY0LzM1NDgxNjU3OC0yNGMzZDcyMi02MDczLTRiMDctYWYxZC1mMzBhODA2OTc1MjMucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI2MTAxOCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNjEwMThUMDQxODI1WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NmU4OTQyYmRmZGQ5YjBiYjllOTk0NDNlOWI3Zjg3MjA5MDc1MzhlZThhMTExM2JhOWJjNjBhYjZmMjQ5ODAxNiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmcmVzcG9uc2UtY29udGVudC10eXBlPWltYWdlJTJGcG5nIn0.IT34tgNThQ6z5qHSK2_ShhPHhvyUlMLAOsPf3jh9u-w)

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Use this issue to discuss the footer component in the GOV.UK Design System.
What
Footer for GOV.UK sites, including departmental and service variants.
Why
Site footer are used on all web pages. There's also a need for consistent footers for departmental and internal services.
Anything else
Related patterns
All reactions