Skip to content

Commit 5eb4acb

Browse files
Replace image-url asset helper instances
Replace instances with CSS url() function. See rails/dartsass-rails#18. Co-Authored-By: Martin Jones <[email protected]>
1 parent b18b98b commit 5eb4acb

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

app/assets/stylesheets/components/_subscribe.scss

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@
1010
@include govuk-font($size: 19, $weight: bold);
1111

1212
display: block;
13-
background: image-url("calendars/icon-calendar.png") no-repeat scroll 0 0;
13+
background: url("calendars/icon-calendar.png") no-repeat scroll 0 0;
1414
min-height: 2.5em;
1515
padding: 0 0 0 3em;
1616

1717
@include govuk-device-pixel-ratio {
18-
background-image: image-url("calendars/icon-calendar-2x.png");
18+
background-image: url("calendars/icon-calendar-2x.png");
1919
background-size: 29px 24px;
2020
}
2121
}

app/assets/stylesheets/views/_calendars.scss

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
}
1919

2020
.app-bunting__triangles {
21-
background-image: image-url("calendars/bunting-grey-string.svg");
21+
background-image: url("calendars/bunting-grey-string.svg");
2222
background-color: transparent;
2323
background-repeat: repeat-x;
2424
background-position: center center;
@@ -38,7 +38,7 @@
3838
}
3939

4040
.app-bunting__tinsel {
41-
background-image: image-url("calendars/festive-lights-tinsel.svg");
41+
background-image: url("calendars/festive-lights-tinsel.svg");
4242
background-color: transparent;
4343
background-repeat: repeat-x;
4444
background-position: center top;

0 commit comments

Comments
 (0)