From 970a25cac1d412b3bafb51193592d4b46583890b Mon Sep 17 00:00:00 2001 From: Mike Monteith Date: Fri, 8 Sep 2023 16:35:10 +0100 Subject: [PATCH] Fix invalid scss This bug is causing the chevron to be misaligned vertically --- CHANGELOG.md | 4 ++++ packages/components/card/card.scss | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 15cc29e83..8a289f578 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # NHS.UK frontend Changelog +:wrench: **Fixes** + +- Fix vertical alignment of primary card icon + ## 7.1.0 - 21 August 2023 :new: **New features** diff --git a/packages/components/card/card.scss b/packages/components/card/card.scss index dcded513e..6769522ab 100644 --- a/packages/components/card/card.scss +++ b/packages/components/card/card.scss @@ -286,7 +286,7 @@ $card-border-hover-color: $color_nhsuk-grey-3; .nhsuk-icon { display: block; fill: $color_nhsuk-blue; - margin-top: -nhsuk-spacing(2); + margin-top: -(nhsuk-spacing(2)); position: absolute; right: nhsuk-spacing(4); top: 50%;