-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[K7] Create React Icon component. #13062
[K7] Create React Icon component. #13062
Conversation
cjcenizal
commented
Jul 24, 2017
•
edited
Loading
edited
137abae
to
5ddfd7b
Compare
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.
Looks great. Think we just need the accessibility stuff.
const svgReference = type ? <use href={`#${typeToIconMap[type]}`} /> : undefined; | ||
|
||
return ( | ||
<svg |
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.
I'd add in a <title>
tag (maybe set a default prop of {name} icon.
).
Might also want an optional <description>
prop.
Here's some tips for accessible SVGs https://www.sitepoint.com/tips-accessible-svg/.
@snide Great catch! Done. |
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.
All good.
* Create React Icon component.
* Create React Icon component.
* Create React Icon component.