-
Notifications
You must be signed in to change notification settings - Fork 4k
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
feat(typings): add icon names for Icon #2167
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vincealdrin Thanks for PR, I left only one comment about naming.
In fact, this will not cover all possible values. Typings allow mail outline
while outline mail
is also valid. But, I'm sure that we don't need to cover these cases.
src/elements/Icon/Icon.d.ts
Outdated
@@ -45,7 +45,7 @@ export interface IconProps { | |||
loading?: boolean; | |||
|
|||
/** Name of the icon. */ | |||
name?: string; | |||
name?: SemanticICONNAMES; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we rename it to SemanticICONS
? It will have more parity with SemanticCOLORS
, SemanticWIDTHS
, etc.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah sure
Codecov Report
@@ Coverage Diff @@
## master #2167 +/- ##
=======================================
Coverage 99.76% 99.76%
=======================================
Files 151 151
Lines 2606 2606
=======================================
Hits 2600 2600
Misses 6 6 Continue to review full report at Codecov.
|
Released in |
No description provided.