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 adjecent styles for headings after lists #408

Merged
merged 2 commits into from
Jan 5, 2018
Merged

Conversation

dashouse
Copy link

@dashouse dashouse commented Jan 3, 2018

This adds padding to the top of headings that follow a list

https://trello.com/c/KZx3SKjW/543-ul-and-ol-contextual-spacing

@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-frontend-review-pr-408 January 3, 2018 09:54 Inactive
@36degrees
Copy link
Contributor

Worth ensuring there's an example for this on the typography example page?

@dashouse
Copy link
Author

dashouse commented Jan 3, 2018

@36degrees Updated

Copy link
Member

@hannalaakso hannalaakso left a comment

Choose a reason for hiding this comment

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

The review page looks good. I added a couple of comments as I was unsure how two of the new rules relate to "Add adjacent styles for headings after lists" but I might be missing something here.

@@ -139,14 +139,17 @@
}

.govuk-body-m + .govuk-heading-l,
.govuk-body-s + .govuk-heading-l {
.govuk-body-s + .govuk-heading-l,
Copy link
Member

Choose a reason for hiding this comment

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

Does this rule somehow relate to lists?

Copy link
Contributor

Choose a reason for hiding this comment

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

The only thing that's changed is the opening parenthesis has been changed to a comma to allow the extra selectors to be added to the list…

Copy link
Member

Choose a reason for hiding this comment

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

So it has, I must be tired 😅

.govuk-body-m + .govuk-heading-s,
.govuk-body-s + .govuk-heading-s {
.govuk-body-s + .govuk-heading-s,
Copy link
Member

Choose a reason for hiding this comment

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

Similar here, does this relate to lists styling?

Copy link
Member

@hannalaakso hannalaakso left a comment

Choose a reason for hiding this comment

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

Ignore my above comment, looks good to me 👍

@dashouse dashouse merged commit de0b82d into master Jan 5, 2018
@dashouse dashouse deleted the adjacent-list-spacing branch January 5, 2018 10:18
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.

4 participants