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

Allow summary_list to render without borders #1073

Merged
merged 2 commits into from
Aug 30, 2019

Conversation

ChrisBAshton
Copy link
Contributor

@ChrisBAshton ChrisBAshton commented Aug 29, 2019

The Design System implementation of summary_list allows rendering
without borders between the summary_list rows:
https://design-system.service.gov.uk/components/summary-list#summary-list-without-borders

However, govuk_publishing_components implementation didn't provide
a way of hooking into this. I have now added a 'borderless' field
which defaults to 'false', but when 'true' will add the necessary
class to remove borders.

This is depended on by alphagov/collections-publisher#703 (Trello: https://trello.com/c/qXVCEouI/23-show-the-content-title-slug-introduction-description-using-the-summary-component)

Visual Changes

Screen Shot 2019-08-29 at 16 11 29

View Changes

https://govuk-publishing-compo-pr-1073.herokuapp.com/component-guide/summary_list

@bevanloon bevanloon temporarily deployed to govuk-publishing-compo-pr-1073 August 29, 2019 15:12 Inactive
@bevanloon bevanloon temporarily deployed to govuk-publishing-compo-pr-1073 August 29, 2019 15:14 Inactive
@ChrisBAshton ChrisBAshton marked this pull request as ready for review August 29, 2019 15:15
Copy link
Contributor

@leenagupte leenagupte left a comment

Choose a reason for hiding this comment

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

It looks good to me 🎉 but I think it should be reviewed by a frontend dev before approving.

@andysellick
Copy link
Contributor

@leenagupte it's on my list of things to do.

CHANGELOG.md Outdated Show resolved Hide resolved
The Design System implementation of summary_list allows rendering
without borders between the summary_list rows:
https://design-system.service.gov.uk/components/summary-list/\#summary-list-without-borders

However, govuk_publishing_components implementation didn't provide
a way of hooking into this. I have now added a 'borderless' field
which defaults to 'false', but when 'true' will add the necessary
class to remove borders.

This is depended on by alphagov/collections-publisher#703
@ChrisBAshton ChrisBAshton force-pushed the summary_list-allow-borderless branch from 10a6dc3 to f455ca6 Compare August 30, 2019 07:17
@ChrisBAshton ChrisBAshton merged commit 9f1d4d5 into master Aug 30, 2019
@ChrisBAshton ChrisBAshton deleted the summary_list-allow-borderless branch August 30, 2019 07:57
@injms injms mentioned this pull request Sep 3, 2019
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