-
Notifications
You must be signed in to change notification settings - Fork 74
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
Icon implementation strategy #217
Comments
cc @aselbie |
Closed
Okay, finally getting around to this What I like
What I don't understand
What like less
|
So further work:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Let's do icons, better.
The approach I want to take is inspired from (private repo) https://github.com/opentable/buffet/pull/74
The principal things I want to enable are:
Some choices (or limitations) I want to adhere by:
In summary, the idea is:
I want to make sure we hit everything we want in React, and then have some level of fallbacks that are less performant and/or less functional.
So, in React, we'll:
svg use
to actually display itFor pure CSS fallback,
background-uri
Here's what I think we need to do in this repo:
svggo
code to optimize only what we wantyaml
code to generate the entire SVG includingviewbox
@jrolfs 's PR #200 is a good start, which I might base off of.
The text was updated successfully, but these errors were encountered: