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 5px bottom margin to bullet-less list items #1078

Merged
merged 2 commits into from
Nov 26, 2018
Merged

Conversation

36degrees
Copy link
Contributor

@36degrees 36degrees commented Nov 22, 2018

On small screens list items have no bottom margin (with a 5px bottom margin being applied at tablet and above)

When the govuk-list class is applied on it's own without any modifier, the list items appear to run into each other on mobile, as the spacing between the list items is the same as the spacing between each line.

(When a bullet or number modifier is added e.g. class="govuk-list govuk-list--bullet" the bullet or number indicates the start of a new list item, so the spacing does not need to be adjusted in that case.)

This change applies the spacing to the govuk-list class for all breakpoints, then adjusts the behaviour when bullet or number modifiers are added.

Closes #1069

https://trello.com/c/pUKbZTbi/1629-add-bottom-margin-to-non-bulleted-list-items

On small screens list items have no bottom margin (with a 5px bottom margin being applied at tablet and above)

When the govuk-list class is applied on it's own without any modifier, the <li>'s appear to run into each other on mobile, as the spacing between the list items is the same as the spacing between each line.

(When a bullet or number modifier is added e.g. class="govuk-list govuk-list--bullet" the bullet or number indicates the start of a new list item, so the spacing does not need to be adjusted in that case.)

This change applies the spacing to the govuk-list class for all breakpoints, then adjusts the behaviour when bullet or number modifiers are added.

Co-authored-by: David House <david.house@digital.cabinet-office.gov.uk>
@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-frontend-review-pr-1078 November 22, 2018 16:57 Inactive
@36degrees
Copy link
Contributor Author

This is basically Dave's suggested implementation from #1069, so I've added him as a co-author – but we didn't actually pair on this work.

@dashouse dashouse self-assigned this Nov 26, 2018
@36degrees 36degrees merged commit 6f02c8b into master Nov 26, 2018
@36degrees 36degrees deleted the update-list-margin branch November 26, 2018 11:08
@NickColley NickColley added this to the [NEXT] milestone Dec 11, 2018
@NickColley NickColley mentioned this pull request Dec 11, 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.

4 participants