From 4e3cd57f48f7d90615a9d6809e9b20e6e2151c37 Mon Sep 17 00:00:00 2001 From: Patrice Chalin Date: Fri, 26 May 2023 18:57:28 -0400 Subject: [PATCH] Switch to using BSv5's strategy to compute hover-color --- assets/scss/_boxes.scss | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/assets/scss/_boxes.scss b/assets/scss/_boxes.scss index 42ea0a97c9..c33316099f 100644 --- a/assets/scss/_boxes.scss +++ b/assets/scss/_boxes.scss @@ -4,7 +4,11 @@ @mixin box-variant($parent, $color-name, $color-value) { $text-color: color-contrast($color-value); $link-color: mix($blue, $text-color, lightness($color-value)); - $link-hover-color: shade-color($text-color, $link-shade-percentage); + $link-hover-color: if( + color-contrast($link-color) == $color-contrast-light, + shade-color($link-color, $link-shade-percentage), + tint-color($link-color, $link-shade-percentage) + ); #{$parent} { &--#{$color-name} {