Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upCreate icon components #41
Comments
|
cc @NejcZdovc for feedback post-discussion this morning where the requirements were stated. I think Solution 1 is going to be the best purely to avoid including all the SVG code for every single icon in the app's bundle, and not just the ones that the app imports. If I'm overthinking it and there's an easy way to avoid that then please let me know. Perhaps @NejcZdovc you could elaborate on why it's a problem to have each icon as a separate component and be able to do |
|
Yeah I agree with solution 1, because we can't control bundle in solution 2. |
|
Closed via #54 |
Goals
Icon components that share the Brave look and feel, and can be used independently or incorporated in to other Components
Requirements
Not required
Solution option 1 (modeled on https://github.com/jacobwgillespie/styled-icons/)
<svg />.Icon component
./icons/arrow-right.js (generated from script via sketch)
Consumer
Solution option 2
Icon component
colorproperty for stroke color.Consumer
Iconcomponent is referenced at all.