Heart badge icons on user profiles shouldn't be pink

AI-generated summary

A bug was reported regarding the new Like-related badges (e.g., Admired, Respected, Gives Back) on user profiles, where the icons incorrectly appear pink instead of the expected bronze, silver, or gold colors. gerhard provided reproduction steps and an image showing the issue, noting that the CSS for i.fa.fa-heart appears to be overriding the badge type styling. While tibarra initially questioned if the pink color was intentional for specific badges, sam confirmed that this is indeed a bug and not the intended design. tibarra offered to fix the issue and, after receiving advice from cpradio on how to grant badges for testing, successfully implemented a solution. The fix is currently pending merge after passing tests in pull request https://github.com/discourse/discourse/pull/4091.

Steps to reproduce
Visit the profile of a user who earned one of the new Like-related badges and take a look at the Badges section (e.g. sam’s badges)

Expected result
The icon color of all the new badges should be bronze, silver or gold.

Actual result
All the new badge icons are pink. :heart_eyes:

7 Likes

By pink you mean the hearts or which ones? Because i see all the other ones in bronze/silver/gold.

1 Like

Yes.

It looks like the CSS for i.fa.fa-heart is over-riding the “badge type” CSS

2 Likes

I think this badges (Admired, Respected, Gives Back, etc.) are meant to be this way, @codinghorror @zogstrip @eviltrout can you tell us?

Nope, this is a bug… not meant to be pink there

5 Likes

I will fix this if it is ok @sam

4 Likes

How can i give myself an Admired badge in the local application for the eviltrout user @sam, to test my solution?

1 Like

If you go to your user’s admin page, you should be able to Grant yourself a badge (so long as you are an Admin/Moderator).

2 Likes

I already fixed it, i’m waiting for the PR to pass the tests and be merged:

https://github.com/discourse/discourse/pull/4091

7 Likes