diff --git a/CHANGELOG.md b/CHANGELOG.md index 570aa08431..f0f0246305 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -30,6 +30,7 @@ We’ve also made fixes in the following pull requests: - [#2670: Define mininimum width for select component](https://github.com/alphagov/govuk-frontend/pull/2670) - [#2723: Style accordion and tabs text content with `govuk-body` class](https://github.com/alphagov/govuk-frontend/pull/2723) - [#2724: Remove redundant `aria-hidden` attribute from the content when using the Details polyfill](https://github.com/alphagov/govuk-frontend/pull/2724) +- [#2725: Remove padding-right from last column in summary list row](https://github.com/alphagov/govuk-frontend/pull/2725) ## 4.2.0 (Feature release) diff --git a/src/govuk/components/summary-list/_index.scss b/src/govuk/components/summary-list/_index.scss index 95e0ebdc68..593996546c 100644 --- a/src/govuk/components/summary-list/_index.scss +++ b/src/govuk/components/summary-list/_index.scss @@ -23,6 +23,11 @@ } } + // Remove right padding from the last column in the row + .govuk-summary-list__row:not(.govuk-summary-list__row--no-actions) > :last-child { + padding-right: 0; + } + // Provide an empty 'cell' for rows that don't have actions – otherwise the // bottom border is not drawn for that part of the row in some browsers. .govuk-summary-list__row--no-actions { @@ -52,7 +57,7 @@ margin-bottom: govuk-spacing(3); @include govuk-media-query($from: tablet) { width: 20%; - padding-right: 0; + padding-right: 0; // Needed for IE8 text-align: right; } }