From a60926c44b68b1ba064d7584630cedabf679d48c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Fri, 28 Feb 2025 16:51:10 +0100 Subject: [PATCH] Fix wrong icon position in form header We made a mistake when adding the `calc()` function in commit 6df813fdb, since the `/` operator originally only affected the `$heading-icon-size` part of the operation, but affected the whole operation after that commit. This caused the icon to be positioned on top of another icon. --- app/assets/stylesheets/mixins/forms.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/stylesheets/mixins/forms.scss b/app/assets/stylesheets/mixins/forms.scss index 0476efe8d..3b04fc93c 100644 --- a/app/assets/stylesheets/mixins/forms.scss +++ b/app/assets/stylesheets/mixins/forms.scss @@ -92,7 +92,7 @@ font-size: rem-calc(44); &::after { - right: calc(#{$icon-size-with-padding + $polygon-size + $heading-icon-size} / 2); + right: calc(#{$icon-size-with-padding} + #{$polygon-size} + #{$heading-icon-size} / 2); } &::before {