Someone use this css trick ? Not working for me (img profil with edit button)

Hello, someone know if this trick still working ?

Thank you for comebacks !

Yes, I just tested it and it works.

why itā€™s not working for me ? Maybe a cache problem ?

I donā€™t know. Did you set it up as per the instructions?

Yes of course, all is good, but I still see the svg icon.


  • Do you have any other CSS on the same screen?
  • Do you have any visibility conditions on your rich text component?

Yes I have others CSS, BTW if i delete all is still the same problem.

No i dont have condition on my rich component.

Iā€™m not sure, then. Iā€™m no expert when it comes to CSS. All I can say is that it works fine for me.

Iā€™m not sure what the problem is on your side. There is another spill out in my dashboard, maybe you should try to remove the asterisk after data-test to [data-test=ā€œnav-button-Editā€].

Hello everyone, after a little in-depth research on my part because this problem was quite weird, I found the solution (or not) to my problem.

The fact is that the CSS tag you use is the following ā€œnav-button-editā€, but when the application is translated into French natively by glide the CSS tag (I donā€™t know why) is also translated, which gives ā€œnav-button-Modifier lā€™Ć©lĆ©mentā€, which is a problem in itself, letā€™s imagine that we have users who have their browser in English or another language for those who use the CSS tag, then the CSS code does not will not work.

So, I suppose you have to integrate into your glide template all the versions of the languages in your template (at least the main languages spoken in the world).

I donā€™t know if itā€™s normal for the Glide to translate CSS tags (I had never seen that before).

If anyone has any ideas, Iā€™m all ears.

1 Like

They do translate elements, Iā€™m not sure what itā€™s for, but native ā€œbuttonsā€ (Edit/Done/Submit etc) will work that way.

Yes, they translate elements, but in that case they also translate the ā€œCSS data-testā€. Iā€™m not sure if this is normal, because the css are the same. In a normal case still all time in English version.

I wonder if they actually have different elements for each language, instead of just translating the text inside that element. That would probably explain the different class names if they are different elements all together.

This is exactly the question I was asking myself, there is no point in translating the class when they just have to translate the text of the element. The only plausible explanation is in the event of a change in reading (for example reading left, right etc.) I do not understand why they translate class.

2 Likes