Skip to content

Commit

Permalink
Merge pull request #1796 from alphagov/fix-accordion-elements-bug
Browse files Browse the repository at this point in the history
  • Loading branch information
hannalaakso authored May 19, 2020
2 parents 387c33d + 711359b commit ac66066
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ For example:
- [Pull request #1753: Make back link arrow consistent with breadcrumb component](https://github.com/alphagov/govuk-frontend/pull/1753)
- [Pull request #1765: Import textarea from character count](https://github.com/alphagov/govuk-frontend/pull/1765).
- [Pull request #1778: Fix accordion underline hover state being removed when hovering plus/minus symbol](https://github.com/alphagov/govuk-frontend/pull/1778).
- [Pull request #1796: Standardise accordion section headings font size (reduce height of section headings on mobile)](https://github.com/alphagov/govuk-frontend/pull/1796).

## 3.6.0 (Feature release)

Expand Down
4 changes: 4 additions & 0 deletions src/govuk/components/accordion/_index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
}

.govuk-accordion__section-heading {
// Override browser defaults to ensure consistent element height
// Font size is set in .govuk-accordion__section-button
@include govuk-font(24);

margin-top: 0; // Override browser default
margin-bottom: 0; // Override browser default
}
Expand Down

0 comments on commit ac66066

Please sign in to comment.