Show flag as button or image?

Created on 16 May 2016, almost 9 years ago
Updated 17 February 2025, about 2 months ago

Just an easy request: I would like to display the link as a button.

Maybe this could be as an image or as css in combination with a fontawesome library, or a js on/off button.
The idea is simple, just display the link as a #hexcolor button to flag, or a #otherhexcolor button to unflag.
Already found some info for D7 here , but i don't know how to alter this for D8.

I see that the flag.html.twig uses replacement links, but i'm not keen with messing with the module files.
<a{{ attributes.addClass('flag') }}>{{ title }}</a>

I understand there is already a request for a checkbox, but that is not what i'm looking for.
Somebody care to talk me through? Or set this as an option in future releases?
Thx in advance.

💬 Support request
Status

Fixed

Version

4.0

Component

Documentation

Created by

🇧🇪Belgium VBN

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024