-
Notifications
You must be signed in to change notification settings - Fork 327
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 govuk-main-wrapper
object and add a large varient
#602
Conversation
Nice approach. Is this useful across services or just for us on the design system? Edit: Misunderstood this, nevermind, makes sense. |
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.
Like it, but got a couple of minor issues / questions.
// | ||
// Example usage without Breadcrumbs, phase banners, back links: | ||
// <div class="govuk-o-width-container"> | ||
// <div class="govuk-o-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.
Modifiers (--
) should always be used with the classes that they are modifying – in which case this would be class="govuk-o-main-wrapper govuk-o-main-wrapper--l"
.
// Use govuk-main-wrapper--l when you page does not have Breadcrumbs, phase banners or back links | ||
@mixin govuk-main-wrapper--l { | ||
@include govuk-responsive-padding($govuk-spacing-responsive-8, "top"); | ||
@include govuk-responsive-padding($govuk-spacing-responsive-8, "bottom"); |
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.
Not sure why the presence (or absence) of breadcrumbs / back links would affect the padding at the bottom of the page – should this still be responsive-6
?
8cdbfed
to
75aca16
Compare
I've fixed @36degrees 's issues. I've messed up these commits slightly I think, had some issues with a rebase on the CHANGELOG |
govuk-main-wrapper
object and add a large varientgovuk-main-wrapper
object and add a large varient
3033892
to
7598562
Compare
7598562
to
c383c3b
Compare
Update to use the responsive spacing mixin and add a large variant for use when the page does not contain back links or breadcrumbs
c383c3b
to
205e3d0
Compare
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 to be merged to me 👍.
Just helped rebasing for the CHANGELOG.
Merged |
This PR:
govuk-main-wrapper
class to use the responsive spacing mixin, rather than the fixed spacing scale with media queries.govuk-main-wrapper
(govuk-main-wrapper--l
) for use on pages where there is no Back link, Breadcrumb or Phase banner. This applies some more space to the top and bottom of the page.With breadcrumb
Without breadcrumb (standard
govuk-main-wrapper
Without breadcrumb (using
govuk-main-wrapper--l
)