diff --git a/CHANGELOG.md b/CHANGELOG.md index 62c590f9e..8e21727f0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ - Updated header component unit tests ([PR 900](https://github.com/nhsuk/nhsuk-frontend/pull/900)). - Fixed bug where the header didn't align with the main width container ([PR 902](https://github.com/nhsuk/nhsuk-frontend/pull/902)). This fixes [Issue 901](https://github.com/nhsuk/nhsuk-frontend/issues/901) +- Updating secondary and reverse buttons to use their hover variable rather than darkening the base colour ## 8.0.2 - 19 October 2023 diff --git a/packages/components/button/_button.scss b/packages/components/button/_button.scss index be8945b03..2b998b29c 100644 --- a/packages/components/button/_button.scss +++ b/packages/components/button/_button.scss @@ -117,7 +117,7 @@ $button-shadow-size: 4px; box-shadow: 0 $button-shadow-size 0 $nhsuk-secondary-button-shadow-color; &:hover { - background-color: darken($nhsuk-secondary-button-color, 10%); + background-color: $nhsuk-secondary-button-hover-color; } &:focus { @@ -145,7 +145,7 @@ $button-shadow-size: 4px; color: $nhsuk-reverse-button-text-color; &:hover { - background-color: darken($nhsuk-reverse-button-color, 5%); + background-color: $nhsuk-reverse-button-hover-color; color: $nhsuk-reverse-button-text-color; }