Skip to content

Commit

Permalink
Simplify summary list 'value' column width
Browse files Browse the repository at this point in the history
Rather than setting an explicit width for the 'value' column, we can leave the width out and it'll expand to use the full remaining width once the widths of the key and actions columns – both of which have defined widths – have been taken into account.
  • Loading branch information
36degrees committed Oct 14, 2021
1 parent c3759f7 commit 2935863
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/govuk/components/summary-list/_index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -71,16 +71,6 @@
@include govuk-media-query($until: tablet) {
margin-bottom: govuk-spacing(3);
}
@include govuk-media-query($from: tablet) {
width: 50%;
}
}

// Expand width when value is last column (no action)
.govuk-summary-list__value:last-child {
@include govuk-media-query($from: tablet) {
width: 70%;
}
}

.govuk-summary-list__value > p {
Expand Down

0 comments on commit 2935863

Please sign in to comment.