Open jira-to-github-migrator[bot] opened 10 months ago
Charlotte Paludo - 27.9.2022, 08:26:00
Proposed solution:
svgr
provides the option to override colors:
<ExampleSvgIcon fill="#333" stroke="#abc" />
This works by mapping specific color codes to variable names, e.g. svgr
can be configured to always replace the color #001
inside a svg file with whatever color is passed to the icon via the fill
variable.
Current problems:
Suggestions:
#001
through #005
)svgr
to replace reserved colors @f1sh1918 @charludo Is a color palette still needed? The current used color palette in the Figma concepts was already created by Nikola or is this issue about an updated color palette request?
I guess the color palett was not prominent enough @f1sh1918 . Do you still need more design input here?
I guess the color palett was not prominent enough @f1sh1918 . Do you still need more design input here?
No idea. My base ticket Was just about not duplicating svgs that just differ in color.
As now it seems quite complicated, i wouldnt put more effort in it
f1sh1918 - 24.5.2022, 13:57:19
Currently we are using multiple svg files for icons that just differ in color f.e:
CSS enables you to use the "currentColor" Attribute to set the fill-color of a svg. So you can use the css color attribute to adjust the color you want to use instead of setting it fixed in the svg file.
Example:
Acceptance Criteria
Environment: - Linked issues:
See how this was done in integreat: https://github.com/digitalfabrik/integreat-app/pull/2378