Skip to content

Commit 6bf17dc

Browse files
PolGuixeoliviertassinari
authored andcommitted
[docs] Font vs SVG. Which approach to use? (#12466)
* Update icons.md * all good for me
1 parent 22ac668 commit 6bf17dc

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docs/src/pages/style/icons/icons.md

+7
Original file line numberDiff line numberDiff line change
@@ -107,3 +107,10 @@ Optionally, you can set the icon color using one of the theme color properties:
107107
### [Font Awesome](https://fontawesome.com/icons)
108108

109109
{{"demo": "pages/style/icons/FontAwesome.js", "hideEditButton": true}}
110+
111+
## Font vs SVG. Which approach to use?
112+
113+
Both approaches work fine, however, there are some subtle differences, especially in terms of performance and rendering quality.
114+
Whenever possible SVG is preferred as it allows code splitting, supports more icons, renders faster and better.
115+
116+
For more details, you can check out [why GiHub migrated](https://blog.github.com/2016-02-22-delivering-octicons-with-svg/) from font icons to SVG icons.

0 commit comments

Comments
 (0)