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

Is there a way to keep original colors #145

Open
noradroid opened this issue May 9, 2024 · 0 comments
Open

Is there a way to keep original colors #145

noradroid opened this issue May 9, 2024 · 0 comments

Comments

@noradroid
Copy link

noradroid commented May 9, 2024

I'm submitting a...


[ ] Regression (a behavior that used to work and stopped working in a new release)
[ ] Bug report  
[ ] Performance issue
[x] Feature request
[ ] Documentation issue or request
[ ] Support request
[ ] Other... Please describe:

Current behavior

All colors are removed from the icon svg content and replaced with "currentcolor"

Expected behavior

Provide a toggle / functionality to prevent colors from being replaced from the svg content for specific svg files only.

What is the motivation / use case for changing the behavior?

For the most part, having the icon color replaced with a currentcolor variable provides the ability to apply different colors to each icon. However, I have some specific icons that have gradients in them through <stop> elements, and I would like to keep those gradients instead of having them all replaced by the same color.

I understand that I can just manually update the color within the .ts files, however they would just be replaced everytime the svg-generator runs.

Environment


Angular version: 16.2.12


Browser:
- [x] Chrome (desktop) version XX
- [ ] Chrome (Android) version XX
- [ ] Chrome (iOS) version XX
- [ ] Firefox version XX
- [ ] Safari (desktop) version XX
- [ ] Safari (iOS) version XX
- [ ] IE version XX
- [ ] Edge version XX
 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant