1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-01-31 19:47:14 +00:00

Replaces custom CSS rules with the @style: filled@ parameter to render the thumbs up icon as filled (#42630).

git-svn-id: https://svn.redmine.org/redmine/trunk@23814 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Marius Balteanu 2025-06-01 21:01:21 +00:00
parent feb751843e
commit 3aecd67e36
2 changed files with 1 additions and 8 deletions

View File

@ -2135,13 +2135,6 @@ color: #555; text-shadow: 1px 1px 0 #fff;
img.filecontent.image {background-image: url(/transparent.png);}
/* Reaction styles */
.reaction-button.reacted .icon-svg {
fill: #126fa7;
stroke: none;
}
.reaction-button.reacted:hover .icon-svg {
fill: #c61a1a;
}
.reaction-button:hover, .reaction-button:active {
text-decoration: none;
}

View File

@ -52,7 +52,7 @@ module ReactionsHelper
def reaction_button_reacted(object, reaction, count, tooltip)
reaction_button_wrapper object do
link_to(
sprite_icon('thumb-up-filled', count.nonzero?),
sprite_icon('thumb-up-filled', count.nonzero?, style: :filled),
reaction_path(reaction, object_type: object.class.name, object_id: object),
remote: true, method: :delete,
class: ['icon', 'reaction-button', 'reacted'],