-
Notifications
You must be signed in to change notification settings - Fork 236
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
Update examples #547
Update examples #547
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.
looks good. I'll let Joe have a look as well
bd06024
to
9750822
Compare
I have removed the update Start Pages to new GOV.UK style commit after speaking to Mia. The related links style is not completely locked down between GOV.UK apps and they are working on it more this quarter. |
@@ -1,15 +1,16 @@ | |||
{% extends "layout.html" %} | |||
|
|||
{% set mainClasses = "govuk-main-wrapper--l" %} |
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.
what's this for? I can't see it being used
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.
The pages without a back link, phase banner or breadcrumbs have a modifier to increase the padding-top (https://design-system.service.gov.uk/styles/layout/#exploded-view-of-page-wrappers-without-back-link-breadcrumbs-or-phase-banner)
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.
ah ok, can we add a comment to explain?
margin: 0; | ||
padding-bottom: ($govuk-gutter / 6); | ||
@include govuk-font($size: 24); | ||
@include govuk-typography-weight-bold; |
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.
as discussed on slack this seems more complicated than the original approach:
@include govuk-font(24, $weight: bold);
@@ -1,5 +1,7 @@ | |||
{% extends "layout.html" %} | |||
|
|||
{% set mainClasses = "govuk-main-wrapper--l" %} |
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.
can we add a comment to explain what this is doing?
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.
Added a few comments, can we squash the two very similar heading commits?
@include govuk-font(19); | ||
|
||
margin-top: 0; | ||
padding-top: govuk-spacing(2); |
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.
If I'm correct, we generally try to avoid top margin/padding - do we need this?
0d14e03
to
6a129cf
Compare
6a129cf
to
3dcb098
Compare
All looks good, just wondering if we want to change to Examples I've looked at online: 48px 36px 27px |
3dcb098
to
b800df2
Compare
@joelanman When making this decision I think we found as many services using 48px as page headings as not. One thing that came out of some research early on was there was a lot of confusion around inconsistent heading sizes in the Prototype Kit, GOV.UK publishing and services. For example going from a Start page to a service...why does the heading change size?, which heading should I use?, what are the rules about when to use which heading size? It seemed a lot of the debate came down to personal preference so when considering the spacing and the defaults (mapping classes to h-level elements in markdown / prose-scope) it was decided that 48px This was considered by re-implementing services, some examples (inc Register to vote) can be seen here https://designnotes.blog.gov.uk/2018/02/19/developing-new-typography-and-spacing-for-gov-uk-frontend/#attachment_2367 I should emphasise, we thought this should be the default...not a hard rule, if you need to reduce it for a particular question, service, admin interface then that's up to the user. |
So I think given we've already made this change in the Design System, we should merge this to be consistent in the Prototype Kit. However I think we should revisit this decision - for long questions especially it can be unbalanced with the answer/form inputs. |
Merged thanks |
This PR updates example pages in the kit to use GOV.UK Frontend spacing etc
Start Page
<p>
and<a>
tags which remain without classes)On top of that (separate commit) it then styles the Start page to be updated to the current GOV.UK start page (I'll be doing a PR for this on the Design System too)Not updating as related links design on GOV.UK isn't locked down.Task list
Check answers
<h1>
to use govuk-heading-xl class<dl>
and sets spacing with GOV.UK FrontendConfirmation page
<h2>
to<h1>
in Panel (Next release GOV.UK Frontend)Question and Content pages
<h1>
to use govuk-heading-xl class