You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for opening your first issue here! Engagement like this is essential for open source projects! 🤗
If you haven't done so already, check out EBP's Code of Conduct. Also, please try to follow the issue template as it helps other community members to contribute more effectively.
If your issue is a feature request, others may react to it, to raise its prominence (see Feature Voting).
+1 for this. It still fails when using 6.0.0beta2 (latest) min.css. Additionally, there is something rendering for the RTD CI on my PR, but it doesn't look right.
I noticed that different themes of the sphinx-design docs rendered differently (with respect 2 the fa* roles), but they all seem to show something incorrect. So, I pushed forward and tried the icons in the sphinx-immaterial theme (using 6.0.0beta2), and it does work. However, the size is unaffected despite whatever I put in the fa* role's args.
Yeh cheers I'll try to look into it soonish. Really that's why I prefer the octicon icons and soon #41, since here the svg's are directly packaged and so it's easier to ensure consistency
# note: fa is deprecated in v5, fas is the default and fab is the other free option
app.add_role(style, FontawesomeRole(style))
I'm not sure if there is a newer implication since the latest FA release is v6.1.1. Nonetheless, I think fa class should be added to all FA roles for better backward compatibility, but it isn't required for v6 (maybe only for v5).
Activity
welcome commentedon Oct 28, 2021
Thanks for opening your first issue here! Engagement like this is essential for open source projects! 🤗
If you haven't done so already, check out EBP's Code of Conduct. Also, please try to follow the issue template as it helps other community members to contribute more effectively.
If your issue is a feature request, others may react to it, to raise its prominence (see Feature Voting).
Welcome to the EBP community! 🎉
2bndy5 commentedon Nov 13, 2021
+1 for this. It still fails when using 6.0.0beta2 (latest) min.css. Additionally, there is something rendering for the RTD CI on my PR, but it doesn't look right.
I noticed that different themes of the sphinx-design docs rendered differently (with respect 2 the
fa*roles), but they all seem to show something incorrect. So, I pushed forward and tried the icons in the sphinx-immaterial theme (using 6.0.0beta2), and it does work. However, the size is unaffected despite whatever I put in thefa*role's args.renders like

chrisjsewell commentedon Nov 13, 2021
Yeh cheers I'll try to look into it soonish. Really that's why I prefer the octicon icons and soon #41, since here the svg's are directly packaged and so it's easier to ensure consistency
pradyunsg commentedon May 12, 2022
The problem here might be that sphinx-design isn't adding the html_css_files for any theme other than alabaster. :)
sphinx-design/docs/conf.py
Lines 17 to 20 in 2cdadca
chrisjsewell commentedon May 12, 2022
That looks like the one cheers! 😅
2bndy5 commentedon May 12, 2022
Using latest docs with alabaster theme:

Probably should note that this is rendered in Firefox.
pradyunsg commentedon May 12, 2022
Ah, then there's possibly a more foundational issue here. :)
[-]fontawesome not working with furo theme[/-][+]Font Awesome Icons are not working[/+]2bndy5 commentedon May 12, 2022
might be a breaking change in the FA CSS. I added the
font-familyproperty to the.fasrule and I get the icon to show in the Alabaster themeAn icon {fas}`spinner;sd-bg-primary sd-bg-text-primary`, some more text.rendered

pradyunsg commentedon May 12, 2022
Alternatively, adding a
faclass to the generated element also works. :)2bndy5 commentedon May 13, 2022
@pradyunsg I found this comment
sphinx-design/sphinx_design/icons.py
Lines 27 to 29 in 43bb2cc
I'm not sure if there is a newer implication since the latest FA release is v6.1.1. Nonetheless, I think
faclass should be added to all FA roles for better backward compatibility, but it isn't required for v6 (maybe only for v5).