-
-
Notifications
You must be signed in to change notification settings - Fork 117
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
CSS Classes and issues with alignment #15
Comments
In version 2 icons will have class names that match prefixes, such as You can also add custom classes to placeholder, for example Inline method should behave the same everywhere. All it does is adds |
I've been thinking of how to disable inline mode in a more elegant way in upcoming version 2 of project and would love to hear your feedback since you are facing related issue. Current idea:
With that implementation |
I can add my own classes? I think I tried that and my classes disappeared. I’ll try again. As for the cleanup maybe classes like: Or you want inline to be the default with extra text for non inline? |
You should be able to add your own classes. If not, its a bug that I'll need to fix. Adding classes definitely works in version 2 that is currently in development. Using |
Tested custom classes - they do work correctly. So you can add custom classes to placeholders and use those classes to target specific icons in css. |
Version 2.0.0-beta.1 has been published. It has all changes mentioned above. |
nice. Thanks |
Thanks for making this!
I think life would be easier if the svg had a class of the icon name?
Instead we have to use
svg[data-icon="ic:round-access-time"]
which is much harder to write than:
.ic-round-access-time
And most of the time I wrap the svg in a span. Would be nice if there was a way to auto wrap it with data-wrap="span" or something. And the span can have the class.
Last, when using the inline method I find that the icon is randomly off here and there... its strange..
Notice the top one is different than the lower ones. All have the same markup and css.
For now I am setting inline false and using css to move it around.
The text was updated successfully, but these errors were encountered: