Semantic-Org / Semantic-UI

Semantic is a UI component framework based around useful principles from natural language.
http://www.semantic-ui.com
MIT License
51.08k stars 4.95k forks source link

[Icon] Use svg instead of icon fonts #5518

Open stevenbriscoeca opened 7 years ago

stevenbriscoeca commented 7 years ago

Hello,

I was wondering why use icon fonts instead of svg? I could not find any issue on this subject.

Thanks!

j-f1 commented 7 years ago

AFAIK Font Awesome 4 only comes in a webfont format.

stevenbriscoeca commented 7 years ago

No but why use don't awesome and not a SVG solution is my question

kevinresol commented 6 years ago

Font awesome 5 now comes with svg support. How can I integrate it into semantic?

stale[bot] commented 6 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 30 days if no further activity occurs. Thank you for your contributions.

kevinresol commented 6 years ago

Don't close

y0hami commented 6 years ago

This would lead to shipping with a lot of assets and I don't think that would be a good idea for most people.

dlynchcodes commented 6 years ago

I too would like to switch to using svg icons to get around a Windows 10+IE11 bug when the Group Policy "Block Untrusted Fonts" is set that causes no external fonts to be rendered in IE11.

If Semantic uses Font Awesome 5, how do I switch to svg icons?

max-carroll commented 3 years ago

I personally want to use SVG icons as other libraries that I may want to inject icons into (e.g. MaterialUI expect an SVG icon). It seems however that semantic-ui uses font awesome anyway now, so perhaps I can just use that library instead of semantic.

Given this though, I suppose it makes sense that semantic-ui would allow SVG icons as props in their components, as this is the way other libraries (such as material-ui) have done it