From 4b97f5cb7a2655992d66c0fb5abf343cdaee49eb Mon Sep 17 00:00:00 2001 From: jgo Date: Wed, 29 Oct 2025 16:20:19 +0100 Subject: [PATCH] bugfix: icon --- .../default/scss/components/favorite-button-ajax.scss | 8 ++++++-- .../Resources/views/layouts/default/page/layout.html.twig | 4 ++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/Synolia/Bundle/FavoriteBundle/Resources/public/default/scss/components/favorite-button-ajax.scss b/src/Synolia/Bundle/FavoriteBundle/Resources/public/default/scss/components/favorite-button-ajax.scss index b6f2973..0ab055b 100644 --- a/src/Synolia/Bundle/FavoriteBundle/Resources/public/default/scss/components/favorite-button-ajax.scss +++ b/src/Synolia/Bundle/FavoriteBundle/Resources/public/default/scss/components/favorite-button-ajax.scss @@ -7,7 +7,11 @@ bottom: $favorite-button-position-bottom; left: $favorite-button-position-left; } - .isFavorite { - fill: currentColor; + &__icon { + fill: transparent; + stroke: currentColor; + &.isFavorite { + fill: currentColor; + } } } diff --git a/src/Synolia/Bundle/FavoriteBundle/Resources/views/layouts/default/page/layout.html.twig b/src/Synolia/Bundle/FavoriteBundle/Resources/views/layouts/default/page/layout.html.twig index 1285a6f..6f70fff 100644 --- a/src/Synolia/Bundle/FavoriteBundle/Resources/views/layouts/default/page/layout.html.twig +++ b/src/Synolia/Bundle/FavoriteBundle/Resources/views/layouts/default/page/layout.html.twig @@ -12,11 +12,11 @@ 'data-page-component-init-on': 'asap', 'data-page-component-view': 'synoliafavorite/js/app/views/favorite-button-view-ajax', 'data-page-component-options': options|json_encode, - '~class': ' favorite-button favorite-button--' ~ class_prefix + '~class': ' btn btn--plain btn--no-padding favorite-button favorite-button--' ~ class_prefix }) %} {% endblock %}