Skip to content

Commit

Permalink
fix(link): correction régression icône à droite sur les éléments inte…
Browse files Browse the repository at this point in the history
…ractifs (#461)
  • Loading branch information
lab9fr authored Nov 14, 2022
1 parent 55deff9 commit 77d0858
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/component/link/style/tool/_build.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions src/component/link/style/tool/_icon.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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));

Expand All @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/component/link/style/tool/_nest.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 77d0858

Please sign in to comment.