Skip to content

Put common header on metrics page#37

Merged
mtaylorgds merged 2 commits into
mainfrom
put-common-header-on-metrics-page
May 8, 2026
Merged

Put common header on metrics page#37
mtaylorgds merged 2 commits into
mainfrom
put-common-header-on-metrics-page

Conversation

@mtaylorgds
Copy link
Copy Markdown
Contributor

Update the metrics page to use the same base template as the other pages, inheriting the standard header.

To enable this involved tweaking the base template slightly to move the reference to the graph CSS file down into the graph page template.

mtaylorgds added 2 commits May 8, 2026 11:58
The CSS in this file is only needed on the graph page. The only thing
 the other pages needed was to set the font, which is now achieved by
 using the "govuk-body" class provided by the GOV.UK Design System.

Since this also means that the setting of the `main` element to use a
 grid style is only applied on the graph page, the wrapper `div` element
 is no longer needed on the graph unavailable page. It's kept on the
 visualisation list page so that the "govuk-body" class can be applied.

An unused class "visualistion-list" has also been removed from the html.
This means all the pages are now extending the base template, and have
 the same header included.
@mtaylorgds mtaylorgds merged commit f87c7b3 into main May 8, 2026
2 checks passed
@mtaylorgds mtaylorgds deleted the put-common-header-on-metrics-page branch May 8, 2026 12:07
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.

2 participants