Skip to content

Commit

Permalink
Merge pull request #936 from colinrotherham/panel-text-margin
Browse files Browse the repository at this point in the history
Remove panel title margin without body text
  • Loading branch information
Jani Kraner authored Aug 3, 2018
2 parents e179df8 + b47c1c2 commit e855c90
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@

([PR #N](https://github.com/alphagov/govuk-frontend/pull/N))

- Fix incorrect panel title bottom margin with optional text

Margin is only added when panel text is provided

([PR #936](https://github.com/alphagov/govuk-frontend/pull/936))

## 1.2.0 (feature release)

🆕 New features:
Expand Down
4 changes: 4 additions & 0 deletions src/components/panel/_panel.scss
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@
@include govuk-font($size: 48, $weight: bold);
}

.govuk-panel__title:last-child {
margin-bottom: 0;
}

.govuk-panel__body {
@include govuk-font($size: 36);
}
Expand Down

0 comments on commit e855c90

Please sign in to comment.