-
Notifications
You must be signed in to change notification settings - Fork 50
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
Dynamic mdi icons #310
base: master
Are you sure you want to change the base?
Dynamic mdi icons #310
Conversation
@ericcornelissen @suda I cannot seem to be able to propagate There is also |
Could you provide a working example outside of Atom (in Codepen or a similar service) that doesn't style the SVG the way you expect it to, that would make it a little easier to understand what isn't working and how experimenting with how it can be resolved. What I can say based just on your comment: Note that for the color you probably need to use the CSS attribute |
Yes, I should do that instead. I thought SVG is like other HTML elements. Isn't there a way to wrap SVG in an HTML element that allows CSS formatting? |
As far as I know, the way you would want it to work is only possible with icon fonts. |
@ericcornelissen This now works. Now we only need to fix the tests! I cannot query the svg element anyhow. 😞 |
Besides this PR, I saw another very cool framework which is called iconify. I am trying to learn how it works. Using that we can expand the number of supported icons and also improve the speed. This is me trying to make it work offline: iconify/iconify#31 |
This defers the loading of mdi icons until they are called. It improves the loading time (50ms->35ms).