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

Native icon support in text component or labels #95

Closed
neshorg opened this issue Dec 6, 2022 · 7 comments
Closed

Native icon support in text component or labels #95

neshorg opened this issue Dec 6, 2022 · 7 comments
Labels
enhancement New feature or request

Comments

@neshorg
Copy link

neshorg commented Dec 6, 2022

Hello, I was wondering if we can use the same icons from buttons (e.g. prefix or suffix) in other components as well (or any text/label field option available in any component)?

When trying to copy & paste the icon from button prefix field into text component value I'll get the text representation of the icon:
{{ "/icon:solid/Close" }} instead of the icon itself.

As a work-around I've used the windows standard icons, but those don't go well in the same theme as the awesome icons you've already provided for other components (button, toggle and so on).

@lmx1117
Copy link
Collaborator

lmx1117 commented Dec 6, 2022

Unlike emoji which can be copied/paste to text, the icon is a svg image, so currently we are only able to add icon for specific scenes, may I ask where you want to use the icon specifically?

@neshorg
Copy link
Author

neshorg commented Dec 6, 2022

That explains a lot.

In my case I have a few areas where I'd like to use them, so I'll give an example with the screenshot below:
image
*As you can see, I've now used the standard windows emoji's in the dropdown & text components.

I'm currently testing an app where I'd like to add the {{ "/icon:solid/Users" }} next to the string (text component) of 'Total users'.
On the other hand I'd like to add icons to the dropdown menu as well to make things a little more interesting but also to make it more intuitive for the user to recognize the icons.

For example, I could remove the "logout" button which would create more space in my header by placing an extra option below in the dropdown menu called "logout". Hence, here I'd then use the same icon I've used now on the actual logout button: {{ "/icon:solid/SignOutAlt" }}

@lmx1117
Copy link
Collaborator

lmx1117 commented Dec 7, 2022

This seems like a reasonable request, we will add icon to dropdown in next version, as for the text component, it can be a little complex and may take some time, please stay tuned😉

@neon-balcony neon-balcony added the enhancement New feature or request label Dec 7, 2022
@neshorg
Copy link
Author

neshorg commented Dec 7, 2022

Thank you for considering this request, I'm already happy with openblocks in general..so anything extra is much appreciated.
I will stay tuned 👍🏽

@agaitan026
Copy link

+1

gitbook-com bot pushed a commit that referenced this issue Dec 23, 2022
@lmx1117
Copy link
Collaborator

lmx1117 commented Dec 30, 2022

Hi everyone, this issue is already solved, please check it out, and thanks again for your excellent advice and patience🤩

@neshorg
Copy link
Author

neshorg commented Jan 6, 2023

Hello @lmx1117, being able to use the icons in the dropdown component is amazing!!
I'm looking forward to seeing this in other components as well 😊

@neshorg neshorg closed this as completed Jan 6, 2023
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

4 participants