Skip to content
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

Merged

Conversation

cjcenizal
Copy link
Contributor

@cjcenizal cjcenizal commented Jul 24, 2017

image

@cjcenizal cjcenizal added the Team:Platform-Design Team Label for Kibana Design Team. Support the Analyze group of plugins. label Jul 24, 2017
@cjcenizal cjcenizal requested a review from snide July 24, 2017 16:22
@cjcenizal cjcenizal force-pushed the k7/reactify-icon-component branch from 137abae to 5ddfd7b Compare July 24, 2017 16:26
Copy link
Contributor

@snide snide left a 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
Copy link
Contributor

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/.

@cjcenizal
Copy link
Contributor Author

@snide Great catch! Done.

Copy link
Contributor

@snide snide left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All good.

@cjcenizal cjcenizal merged commit d90cf40 into elastic:k7-ui-framework Jul 24, 2017
@cjcenizal cjcenizal deleted the k7/reactify-icon-component branch July 24, 2017 19:47
@cjcenizal cjcenizal mentioned this pull request Jul 25, 2017
51 tasks
cjcenizal added a commit to cjcenizal/kibana that referenced this pull request Aug 16, 2017
cjcenizal added a commit to cjcenizal/kibana that referenced this pull request Aug 26, 2017
cjcenizal added a commit that referenced this pull request Sep 19, 2017
* Create React Icon component.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team:Platform-Design Team Label for Kibana Design Team. Support the Analyze group of plugins.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants