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 Aug 20, 2021
1 parent 8f6fe72 commit 7af828e
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 @@ -64,16 +64,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 7af828e

Please sign in to comment.