Skip to content

Commit

Permalink
Migrate to Sass @use from @import (deprecated)
Browse files Browse the repository at this point in the history
  • Loading branch information
colinrotherham committed Oct 28, 2024
1 parent 3b82475 commit 6acd044
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
4 changes: 4 additions & 0 deletions src/client/stylesheets/_govuk-frontend.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
@forward "pkg:govuk-frontend" with (
$govuk-assets-path: "/assets/",
$govuk-new-organisation-colours: true
);
2 changes: 2 additions & 0 deletions src/client/stylesheets/_prose.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@use "govuk-frontend" as *;

.app-prose-scope {
// @extend inheritance

Expand Down
2 changes: 2 additions & 0 deletions src/client/stylesheets/_summary-list.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@use "govuk-frontend" as *;

// Taken from https://github.com/hmrc/hmrc-frontend/blob/main/src/components/summary-list/_summary-list.scss
@include govuk-media-query($from: tablet) {
.govuk-summary-list.govuk-summary-list--long-key {
Expand Down
11 changes: 4 additions & 7 deletions src/client/stylesheets/application.scss
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
$govuk-assets-path: "/assets/";

@import "pkg:govuk-frontend";
@import "pkg:accessible-autocomplete";
@use "govuk-frontend" as *;
@use "pkg:accessible-autocomplete";
@use "summary-list";
@use "prose";

// Use default GDS Transport font for autocomplete
.autocomplete__hint,
.autocomplete__input,
.autocomplete__option {
@include govuk-typography-common;
}

@import "summary-list";
@import "prose";

0 comments on commit 6acd044

Please sign in to comment.