-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
fix(Icon): Icon component PropType update to FontAwesome 4.7.0 #1372
Conversation
SUI doesn't use font-awesome css classes directly, they are aliased to more "semantic" names. Example: FASUISee the line comment at the top of the SUI icons arrays which indicates where the names should be retrieved from in SUI core, namely, See https://github.com/Semantic-Org/Semantic-UI/blob/master/dist/components/icon.css#L486 Sidenote, looks like this file was updated 23hrs ago :) Thanks for the quick response to the change! |
This actually now has me wondering if/how we can achieve this programmatically. Perhaps that is for another PR, but it would be handy to auto parse this data from the installed |
Ok, I will change it. For now, manually... |
Codecov Report
@@ Coverage Diff @@
## master #1372 +/- ##
=======================================
Coverage 99.74% 99.74%
=======================================
Files 140 140
Lines 2345 2345
=======================================
Hits 2339 2339
Misses 6 6 Continue to review full report at Codecov.
|
class names are now 1:1 to this from SUI-css |
Just one lint issue to fix
|
Also could you please put https://github.com/blog/1506-closing-issues-via-pull-requests |
Also, please update Icon typings file. |
lint fix
@levithomason Done /** Name of the icon. */
name?: string; and for me it's enough. If we change it to SUI.ICONS_AND_ALIASES then users can't set their own custom names for Icon component |
@kamdz Nevermind, I forgot that we don't have icons list in typings. |
|
done |
Thanks much! |
Released in |
…tic-Org#1372) * Icon component PropType update to FontAwesome 4.7.0 * changed names from FA to SUI * Update SUI.js * Update SUI.js lint fix * remove trailing space
…tic-Org#1372) * Icon component PropType update to FontAwesome 4.7.0 * changed names from FA to SUI * Update SUI.js * Update SUI.js lint fix * remove trailing space
fixes #1371
I took names and aliases from changelog on here http://fontawesome.io/whats-new/