Skip to content

Commit

Permalink
Replace image-url asset helper instances
Browse files Browse the repository at this point in the history
Replace instances with CSS url() function. See rails/dartsass-rails#18.

Co-Authored-By: Martin Jones <[email protected]>
  • Loading branch information
jon-kirwan and MartinJJones committed Dec 11, 2023
1 parent 9c70320 commit 0f9060c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions app/assets/stylesheets/application.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
$app-image-path: "/assets/static/";
$app-font-path: "/assets/static/";

$govuk-new-link-styles: true;

@import "govuk_publishing_components/govuk_frontend_support";
Expand Down
2 changes: 1 addition & 1 deletion app/assets/stylesheets/helpers/_draft.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.draft main {
background-image: image-url("draft-watermark.png");
background-image: url("draft-watermark.png");
background-repeat: repeat-y;
background-position: 50% 0;
background-size: contain;
Expand Down

0 comments on commit 0f9060c

Please sign in to comment.