-
-
Notifications
You must be signed in to change notification settings - Fork 67
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
Increase icon flexibility #518
Increase icon flexibility #518
Conversation
I have to step out, but will ensure works as expected for sidebar/page-header icons a bit later. |
All looks great, thanks! ❤️ |
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.
Thanks for your awesome work 🙏
I added some comments and noticed a few other quirks:
validation_helpers.ex
raises when declaring a local icon in a story- we need to relax
heroicons
dependency to allow users to pick the heroicons elixir package or the TailwindCSS one - when declaring a local icon with
{:local, "hero-check-badge", :micro}
Tailwind JIT won't pick thehero-check-badge-micro
variant. This is working with{:local, "hero-check-badge-micro"}
. Should we drop the style option for local_icons?
Do you want to continue, or do you prefer I take over?
@cblavier I'm flexible. It's your lib so I understand if you have a desired path forward for relaxing heroicons, etc. I'll defer to you, but I can cut the requested changes later today if desired. |
Thank you! |
@cblavier Just pushed the following requested changes:
Let me know if I missed anything |
*adds support for color_mode_icons config *adds header color_mode_icon component
fc65fb6
to
c04f66b
Compare
6542185
to
3c7cbff
Compare
3c7cbff
to
2afa130
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #518 +/- ##
==========================================
- Coverage 95.91% 95.90% -0.01%
==========================================
Files 38 38
Lines 2054 2052 -2
==========================================
- Hits 1970 1968 -2
Misses 84 84 ☔ View full report in Codecov by Sentry. |
1c842ff
to
d8d3b38
Compare
d8d3b38
to
50b74c6
Compare
🎉 🔥 ❤️ |
Color mode icons don't render unless using paid FontAwesome plan. Also, the phoenix famework has since changed how it implements heroicons. As a result, this PR makes the following updates:
local_icon
component for custom localized iconscolor_mode_icons
config override