Skip to content
Discussion options

You must be logged in to vote

I'm on symfony/ux-toggle-password 2.30.0 with symfony/ux-icons 2.x.

In 2.x, visible_icon / hidden_icon expect raw SVG markup, not an icon identifier.
The Stimulus controller reads the data-*-icon-value and injects it into innerHTML as-is.
So passing 'bi:lock' renders the literal text bi:lock.

Workaround: render the SVG via ux_icon() in Twig (e.g. through a small form theme override that
converts bi:* to ux_icon('bi:*')|raw) or use the migration approach suggested in the README.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@davidnectarestudio
Comment options

@sergio-santiago
Comment options

Answer selected by davidnectarestudio
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants