Using material icon font for buttons #533
dbauszus-glx
started this conversation in
Show and tell
Replies: 3 comments
|
Thanks for your question. So, what part is not working? In you screenshot I do see a sync icon, only, it is a bit small compared to the other icons. |
0 replies
|
It's all working. I just wanted to share this with others if they search for this in the issues. I will close this. Do you have a tips and tricks label for this kind of issue? |
0 replies
|
Ah, thanks 👍 . I'll move this into the "Discussions" > "Show and tell" section. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I had a look at a couple of issues in regards of adding icons from an icon font like material [Google] but didn't find any satisfactory answer. I was able to work this out and would like to share my approach which may help others.
I push a text type button into the items in the onRenderMenu method.
The text content [eg sync] is the icon name.
I add a className for this text button.
I set the Material Symbols Outlined font-family as !important to overide the inherited font in the css class specificity.
All reactions