-
-
Notifications
You must be signed in to change notification settings - Fork 66
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 get embedded Font Awesome icons to work at all #306
Comments
It looks like the issue is with the
It never gets removed automatically, but if I remove it manually, everything works and the FA icons get displayed on the story pages. What triggers the event that removes that class, and why might it not be firing? |
Looking at the source code, it looks like Not sure what the purpose of hiding the entire page to begin with, so I'll submit a PR disabling this entire logic. edit: I get a 403 when trying to push my branch, so maybe someone else will have to do it. |
As a temporary workaround, I was able to get things working by adding this to
|
Hey Ege, the idea behind https://fontawesome.com/docs/web/dig-deeper/svg-async The issue might be that you are not using SVG icons? Are you? |
@cblavier No, our kit is configured to use web fonts. |
I just released |
Elixir 1.14.2
Phoenix 1.7.1
LiveView 0.18.17
We have a lot of components in our app that take a
fa_icon
attribute and render it as part of the component. We would like to have its icons rendered in Storybook's stories as well. We haven't been able to get it to work though.Example
%Variation{}
forMyAppWeb.UI.Icon
:This renders the component without the icon:

Now,
fa-user
is part of the free FA icons. Out of curiosity, I tried changing thefont_awesome_plan
to:pro
and gave it afont_awesome_kit_id
(we have confirmed that this kit ID works when the kit is loaded via a <script> tag on the layout). When I did this, the entire storybook page stopped loading. All I see is a white screen with no errors in the browser console or the server terminal.The browser console only shows these warnings, which are also shown without the FA config changes so I'm not sure if they are related:
The text was updated successfully, but these errors were encountered: