-
Notifications
You must be signed in to change notification settings - Fork 334
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
Section break styles fix when used with Elements #682
Conversation
src/globals/core/_section-break.scss
Outdated
@@ -44,6 +44,9 @@ | |||
|
|||
%govuk-section-break--visible { | |||
border-bottom: 1px solid $govuk-border-colour; | |||
@include govuk-compatibility(govuk_elements) { |
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 happens when elements overrides the invisible break?
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.
me being stupid and not moving it into where i said i was. fixed now.
src/globals/core/_section-break.scss
Outdated
@@ -5,6 +5,12 @@ | |||
%govuk-section-break { | |||
margin: 0; | |||
border: 0; | |||
|
|||
// fix doouble-width section break and forced visible section break |
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.
Typoe 'doouble'
`<hr>` styling in Elements has background and height set, whereas in Frontend we're using border bottom. To fix, `height:0` was added in a compatibility conditional include.
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.
Nice fix 👍
<hr>
styling in Elements has background and heightset, whereas in Frontend we're using border bottom.
To fix,
height:0
was added in a compatibility conditional include.This fixes both the thickness and the fact that styles from Elements were making invisible section breaks visible
Before:
After:
Elements styles causing non-visible section break to be visible:
Ticket: https://trello.com/c/Sc7RtFZK/815-remove-section-break-border-coming-from-elements