-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Remove font-awesome #10410
Comments
I think fomantic bundles fontawesome with it - so we could just switch to use their icons. |
Fomantic still uses icon fonts though which are inferior to SVGs. It will still be an improvement if to get rid of the shipped font-awesome because I think we currently load it twice. |
They could be easily replaced using @fortawesome/fontawesome to include only needed svg icons |
I checked those Let's source own own SVGs and re-use octicons where possible. |
What is the problem with js data? This way it would be included in js file using webpack |
It needs a script to extract and one has to deal with their weird format in that script. svg-sprite-loader can only deal with plain Octicons does it right, they publish a directory of |
You just call |
JS injections suck. They flash empty content on page load and do not work with JS disabled. SVG should be server-rendered primarily with ways for JS to do it too for JS-generated content. |
I don't think that it would be too bad that icons would not show up with JavaScript disabled, especially since there is so much things that will not work without JavaScript enabled anyway ;) |
- Related #10410 - I had to add an SVG for an empty checkbox primer/octicons#942 # Before ![image](https://user-images.githubusercontent.com/20454870/235374683-13f355c3-1245-40db-adda-4c710fc80288.png) # After ![image](https://user-images.githubusercontent.com/20454870/235374655-cc637132-f314-424d-9243-13d45b8915d5.png) --------- Signed-off-by: Yarden Shoham <git@yardenshoham.com>
Fixes #10410. This PR removes around 120kB of CSS.
We currently only use 4 icons out of it. I suggest replacing it with individual SVGs using the same build process like for octicons. I did not find a maintained npm repo of FA SVGs so we need to manually collect SVGs from tools like icomoon, or even better, use existing icons from the octicons set.
Here are the unique
fa-*
strings I found in the source:(Last check: 2023-04-30 by @delvh)
The text was updated successfully, but these errors were encountered: