-
Notifications
You must be signed in to change notification settings - Fork 28
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
Update to HeroIcons v2.1.5 #39
Conversation
@@ -112,7 +112,7 @@ defmodule Heroicons do | |||
""" | |||
end | |||
|
|||
<%= for {func, [outline, solid, mini, micro]} = icon when not is_nil(micro) <- @icons do %> | |||
<%= for {func, [outline, solid, mini, micro]} = _icon when not is_nil(micro) <- @icons do %> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
both changes in this file fix a compile warning
Was about to submit a PR for this, I know that the default in Phoenix now is to use Tailwind and the icons with CSS, but as someone that don't use Tailwind in my current project, this package is still very useful. :) @mveytsman can we get this merged, please? |
@goncalotomas thank you! Do you mind fixing the failing tests? |
These test failures are pretty interesting in that they relate to the order of attributes after being rendered out, e.g. it seems that in OTP versions before 26 the svg will render out to:
and after OTP26 it renders out to this:
The main difference being that the TL;DR If we make the tests work for current OTP/Elixir, they break in the older versions and vice versa. There's a decision to make, and I see three ways forward:
All of these have different trade-offs, so I'll leave it up to @mveytsman to decide :) Have a great day! |
@goncalotomas thank you so much for figuring this out and writing it up! I think the right move is to keep this in mind and fix it next release, I'll see about improving the tests! |
Published! |
A few new icons have been added since
2.1.1
. This PR updates the project dependencies and moves the current HeroIcons version to2.1.5
. Open to feedback of course :)