Skip to content

Commit

Permalink
Merge pull request #995 from nhsuk/sass-mix-deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
paulrobertlloyd authored Aug 19, 2024
2 parents 1ff76e3 + 919a503 commit 7118439
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# NHS.UK frontend Changelog

## Unreleased

- Fix Sass deprecation on `mix` function (passing a number without unit) ([PR 995](https://github.com/nhsuk/nhsuk-frontend/pull/995))

## 8.3.0 - 24 July 2024

:new: **New features**
Expand Down
4 changes: 2 additions & 2 deletions packages/core/settings/_colours.scss
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,11 @@ $alpha-transparency-50: 0.5;
//

@function tint($color, $percentage) {
@return mix(white, $color, $percentage * 1%);
@return mix(white, $color, $percentage);
}

@function shade($color, $percentage) {
@return mix(black, $color, $percentage * 1%);
@return mix(black, $color, $percentage);
}

//
Expand Down

0 comments on commit 7118439

Please sign in to comment.