Browser: Chrome 132.0.6834.159
OS: Windows
Hi bricks team,
If we use SVG icons for the Password toggle icons, its color cannot be controlled using the Typography Color control.
Browser: Chrome 132.0.6834.159
OS: Windows
Hi bricks team,
If we use SVG icons for the Password toggle icons, its color cannot be controlled using the Typography Color control.
Hi Hosein,
Thanks for your report!
The typography settings only affect the icon-font icons i-tag. You can change the color of the SVG via its stroke or fill properties, depending on what kind of SVG it is. Theoretically, we could apply the color to .show-password, but then your SVG would either have to contain a fill=“currentColor” attribute, or you would have to set the SVG fill to currentColor. But that would be two steps instead of giving the SVG fill a color directly.
Best regards,
timmse
Hi timmse, Thanks for the reply.
Yes, the currentColor attribute already exists in SVG. In fact, this is a similar report to this one, which was fixed in bricks 1.12.