-
Notifications
You must be signed in to change notification settings - Fork 950
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
Icons don't show on buttons #3911
Comments
I have the exact same problem. |
@maartenbreddels and @jasongrout Sorry for mentioning you, but I will have a release late this month that updates our env to JupyterNotebook 7, and this error is blocking us; I can make the PR if you want. The only change needed is one line of code. |
I think this makes sense, but deferring to @maartenbreddels who is doing more of the releases these days. Are you proposing adding both prefixes, for backwards compatibility, or changing the prefix? |
@mariobuikhuizen will take a look at this |
I can't reproduce this issue using the versions provided (except for the orion extensions, I can't find those) on Windows or MacOS. |
Hi @mariobuikhuizen, you were right. The Orion extension implemented a theme that overwrites the font and makes the code fail. The change was that the font used was FontAwesome and not Font Awesome 5 Free. Thanks for looking at this; the documentation on the web of Font Awesome 5 makes me think that the |
Description
When adding an icon to a button, the icon is not rendered.
I checked your code and found that the error is caused by this pice of code
In Font Awesome 5, the “fa” prefix has been deprecated, and the new default style is “fas”, which stands for solid icons.
If I manually change the class the icon is rendered correctly
Reproduce
Expected behavior
Show the specified icon in the button
Context
If using JupyterLab
IPython : 8.22.2
ipykernel : 6.29.2
ipywidgets : 8.1.1
jupyter_client : 8.6.0
jupyter_core : 5.7.1
jupyter_server : 2.7.3
jupyterlab : 4.1.4
nbclient : 0.8.0
nbconvert : 7.16.2
nbformat : 5.9.2
notebook : 7.1.1
qtconsole : not installed
traitlets : 5.14.1
Installed Labextensions
The text was updated successfully, but these errors were encountered: