Skip to content
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

Add govuk-section-break to core #483

Merged
merged 6 commits into from
Feb 13, 2018
Merged

Add govuk-section-break to core #483

merged 6 commits into from
Feb 13, 2018

Conversation

dashouse
Copy link

@dashouse dashouse commented Jan 30, 2018

Sometimes there is a need to visually separate parts of a page on top of the existing typographic hierarchy.

This class is added to an <hr>, adds margin (xl, l and m).
There is also an option to make the <hr> border visible or invisible.

##Examples

Not visible

screen shot 2018-01-30 at 11 53 16

###Visible
screen shot 2018-01-30 at 11 56 28

Example usage

The section below the Start button on a start page is achieved by adding margin to the Start button.

This conceptually feels like a new section of the page.

screen shot 2018-01-30 at 12 01 38

Related

How this might work with <section>

As part of https://trello.com/c/8LRu4psv/515-add-styling-for-horizontal-rules

@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-frontend-review-pr-483 January 30, 2018 12:13 Inactive
@@ -48,5 +48,10 @@
a {
@extend .govuk-link;
}

hr {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this use govuk-section-break__visible ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we also add an example to the prose page to show this in use?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated

@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-frontend-review-pr-483 January 30, 2018 13:24 Inactive
@dashouse dashouse changed the title RFC - Add govuk-section-break to core Add govuk-section-break to core Feb 1, 2018
@alex-ju
Copy link
Contributor

alex-ju commented Feb 5, 2018

After update, this looks technically good to me. Happy to approve if no one else wants to raise any questions.

@hannalaakso
Copy link
Member

This looks good to me too. Have just updated Changelog.

@alex-ju if you're happy with the changelog could you approve 🙂

Copy link
Contributor

@alex-ju alex-ju left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@dashouse dashouse merged commit c3f6ed0 into master Feb 13, 2018
@dashouse dashouse deleted the section-break branch February 13, 2018 08:53
@alex-ju alex-ju mentioned this pull request Feb 20, 2018
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.

5 participants