From 77d0858d60c96bd5a03bfe0aee2b2c3a11450224 Mon Sep 17 00:00:00 2001 From: lab9 Date: Mon, 14 Nov 2022 17:49:19 +0100 Subject: [PATCH] =?UTF-8?q?fix(link):=20correction=20r=C3=A9gression=20ic?= =?UTF-8?q?=C3=B4ne=20=C3=A0=20droite=20sur=20les=20=C3=A9l=C3=A9ments=20i?= =?UTF-8?q?nteractifs=20(#461)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/component/link/style/tool/_build.scss | 2 +- src/component/link/style/tool/_icon.scss | 4 ++-- src/component/link/style/tool/_nest.scss | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/component/link/style/tool/_build.scss b/src/component/link/style/tool/_build.scss index f2c422bdd..9571a98de 100644 --- a/src/component/link/style/tool/_build.scss +++ b/src/component/link/style/tool/_build.scss @@ -101,7 +101,7 @@ @if $places != null { @each $place in $places { @include _link-class($base, $size, $place) { - @include _build-link-icon($size-settings, $place, $size); + @include _build-link-icon($size-settings, $place, $size, true); } @if $align-on-content { diff --git a/src/component/link/style/tool/_icon.scss b/src/component/link/style/tool/_icon.scss index a5a8c63ac..0fd4eaa64 100644 --- a/src/component/link/style/tool/_icon.scss +++ b/src/component/link/style/tool/_icon.scss @@ -5,7 +5,7 @@ @use 'module/spacing'; -@mixin _build-link-icon($size-settings, $place, $size:md) { +@mixin _build-link-icon($size-settings, $place, $size:md, $override-icon: true) { $icon-size: icon-size(map_get($size-settings, icon)); @@ -30,7 +30,7 @@ overflow: initial; max-width: 100%; max-height: none; - @include after { + @include icon-content(false, $override-icon) { --icon-size: #{$icon-size}; margin-right: -($icon-margin); margin-left: $icon-margin-x; diff --git a/src/component/link/style/tool/_nest.scss b/src/component/link/style/tool/_nest.scss index 0b6405cbf..709c9d025 100644 --- a/src/component/link/style/tool/_nest.scss +++ b/src/component/link/style/tool/_nest.scss @@ -23,7 +23,7 @@ $is-before: _get-link-is-before($places, $place); $icon-size: _get-link-icon-size($size-settings, $places, $place); @if $place != null { - @include _build-link-icon($size-settings, $place, $size); + @include _build-link-icon($size-settings, $place, $size, $override-icon); } @include icon-style($restrain); @include icon-image($icon, $restrain);