Skip to content

Commit

Permalink
Merge pull request #4659 from alphagov/optimise-govspeak-sass
Browse files Browse the repository at this point in the history
Move govspeak attachment sass includes into view
  • Loading branch information
andysellick authored Feb 28, 2025
2 parents 4a5e21b + 071ad60 commit 14b41d8
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
useful summary for people upgrading their application, not a replication
of the commit log.

## Unreleased

* Move govspeak attachment sass includes into view ([PR #4659](https://github.com/alphagov/govuk_publishing_components/pull/4659))

## 53.0.0

* **BREAKING:** Remove title component ([PR #4653](https://github.com/alphagov/govuk_publishing_components/pull/4653))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,18 @@ $thumbnail-icon-border-colour: govuk-colour("mid-grey");
}
}

.govspeak,
.gem-c-govspeak {
.gem-c-attachment__title {
@include govuk-font($size: 27, $weight: regular);
margin: 0 0 govuk-spacing(3) 0;
}

.gem-c-attachment__metadata {
margin: 0 0 govuk-spacing(3) 0;
}
}

.gem-c-attachment__metadata--compact {
margin-bottom: 0;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,6 @@

.govspeak, // Legacy class name that's still used in some content items - needs to be kept until `.govspeak` is removed from the content items.
.gem-c-govspeak {
// Scope attachment and attachment-link component styles to gem-c-govspeak
@import "../attachment-link";
@import "../attachment";
@import "../details";

// This block is duplicated from Whitehall as a transitional step, see the
// commit message for 2d893c10ee3f2cab27162b9aba38b12379a71d07 before making
// changes, original version:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
<%
add_gem_component_stylesheet("govspeak")
add_gem_component_stylesheet("attachment-link")
add_gem_component_stylesheet("attachment")
add_gem_component_stylesheet("details")

inverse ||= false
local_assigns[:margin_bottom] ||= 0
Expand Down

0 comments on commit 14b41d8

Please sign in to comment.