Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: How to use font icon in generated elements? #679

Closed
AmaiKinono opened this issue Oct 3, 2024 · 2 comments
Closed

Question: How to use font icon in generated elements? #679

AmaiKinono opened this issue Oct 3, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@AmaiKinono
Copy link
Contributor

"Font icon" is just single-colored icon baked into a font file, so basically I'm wondering how to put text into generated elements, like selectarrow.

I've tried to programmatically set inner RML of selectarrows, but seems that doesn't work.

It would be simple if we have ::before and ::after pseudo elements. Maybe allowing text to be used as decorator also solves the problem.

@mikke89 mikke89 added the enhancement New feature or request label Oct 3, 2024
@mikke89
Copy link
Owner

mikke89 commented Oct 3, 2024

Hey. Yeah, variations of this topic comes up from time to time. See e.g. #399 and #655, and this: #348 (reply in thread). So it's definitely on our radar.

mikke89 added a commit that referenced this issue Dec 15, 2024
@mikke89
Copy link
Owner

mikke89 commented Dec 15, 2024

Maybe allowing text to be used as decorator also solves the problem.

Just added this feature in 66d0b7c:

decorator: text("Hello 🌎 world!" blue bottom right);

With that, I am considering this one resolved. The ::before and ::after pseudo elements are still on our radar, as those might be useful for other reasons too.

@mikke89 mikke89 closed this as completed Dec 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants