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
Cannot modify an icon's colour or size (class="icon") #135
Comments
Hey @jeffreyselby I don't know why the size would not work, I just tested it. The inline-style however wouldn't work on a background image. Have a read over at the GUI docs to find out how you can style the icons. I leave this open for now to find out what your problem with the size is. |
Regarding the icon size I was able to resolve the matter. Sorry for the misleading comment above. |
No worries, we'll be refining the content in the getting-started page soon. To colour it all you have to do is use direct embedding.
.icon.icon-remove .icons-background {
fill: rebeccapurple;
} |
I manage to provide color to the icon, but is the below the recommended way or is there an easier approach. .my-div span path {
fill: #ff0000;
color:blue;
} <div class="my-div">
<span class="icon icon-remove icon-size-lg" data-grunticon-embed></span>
</div> Just saw your comment above. Will take a look. |
Yes. Apart from the |
I tried out your method and it worked fine. Your method is cleaner, so I'll stick to that. Thanks for your help! |
The following tag renders correctly in GEL Version 1.
<span class="icon icon-remove icon-size-md" style="color:red"></span>
The same code does not render correctly in GEL Version 2. Both size (icon-size-md) and color (red) are ignored.
Could you please check this.
Thanks,
Jeff
The text was updated successfully, but these errors were encountered: