Skip to content

Commit 54aa074

Browse files
paulrobertlloydtvararu
authored andcommitted
Fix Sass color deprecation warnings
1 parent f12f04b commit 54aa074

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

app/assets/stylesheets/_button.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
$app-cis2-button-color: $color_nhsuk-blue;
2-
$app-cis2-button-hover-color: mix($app-cis2-button-color, #003087, 50%);
2+
$app-cis2-button-hover-color: color.mix($app-cis2-button-color, #003087, 50%);
33
$app-cis2-button-active-color: #003087;
44
$app-cis2-button-shadow-color: #003087;
55
$button-shadow-size: 4px;

app/assets/stylesheets/_highlight.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.app-highlight {
2-
background-color: mix(white, $color_nhsuk-warm-yellow, 80%);
2+
background-color: color.mix(white, $color_nhsuk-warm-yellow, 80%);
33
border-bottom: 3px solid $color_nhsuk-warm-yellow;
44

55
// Ensure highlight is announced by screen readers

app/assets/stylesheets/application.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ $mq-breakpoints: (
2929

3030
// App options
3131
$app-page-width: 1100px;
32-
$color_app-dark-orange: darken(
33-
mix($color_nhsuk-red, $color_nhsuk-warm-yellow, 55%),
34-
10%
32+
$color_app-dark-orange: color.scale(
33+
color.mix($color_nhsuk-red, $color_nhsuk-warm-yellow, 55%),
34+
$lightness: -10%
3535
);
3636

3737
// Helpers

0 commit comments

Comments
 (0)