refactor: Replace icon font with SVG icons #790
Conversation
✅ Deploy Preview for fipguide ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
Hi there! 👋 Thank you for your contribution to the FIP Guide! 🚀 Checklist before merging:
|
therobrob
left a comment
There was a problem hiding this comment.
thank you Moritz :) the icons have an other size than before, is this intended? In addition to the comments below, I noticed that the icons of the highlights are much smaller (14x14px), also of the buttons (15x15px) and dialog-close (15x15px). The line thickness of all icons is also different. The icon of the copy-toast is a little too high up.
assets/sass/contentNavigation.scss
Outdated
| } | ||
|
|
||
| .a-icon { | ||
| font-size: 1.2em; |
There was a problem hiding this comment.
the icon is smaller than before, it should be 20x20px
There was a problem hiding this comment.
Ok, let's sum it up: I initially changed the logic from rem sizing to em sizing. This has the advantage of automatically adjusting the icon size depending on the used font-size.
In the end it resulted in many unwanted changes, so thanks for challenging it. I have now changed it again to the rem approach. This makes it a lot cleaner again.
There was a problem hiding this comment.
Can you verify that it's better now?
To some extend the size of the icons will vary as it's not straightforward to represent the exact size of the font. To be able to control the size of the icons via the font-size attribute as it was done before (and also makes sense to match the current text size for in-line icons), I use the I'll check the mentioned issues and will fix them as best as possible, thanks for checking 👍
I couldn't find a way to derive the icon weight (different file) via the CSS weight / bold property. So for simplicity reasons, I removed the icons with weight 400 for now and just kept using the icons with weight 700; in comparison I liked them more. |
585cdeb to
2a146fd
Compare
@MoritzWeber0 could you please check the images, they are broken. thanks! |
is there a reason, why you removed all commits before? It's more work to check the new changes because I can't see what they are. :(
It's very important to me as a designer not to use odd values. Furthermore, I see no added value in implementing it that way. Can you please explain? |
Are there specific commits you are missing? I still see 13 commits in the PR and can't remember removing any commits internationally.
Explained here: #790 (comment). |






Only load used icons via SVGs instead of loading all icons via the font (this is more efficient as GitHub pages has no proper caching)
Avoid rendering issues when using slow internet connections:
See also this discussion: #419 (comment)