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

Discussion on fill being the current color #7

Open
randy-r opened this issue Oct 28, 2022 · 3 comments
Open

Discussion on fill being the current color #7

randy-r opened this issue Oct 28, 2022 · 3 comments

Comments

@randy-r
Copy link

randy-r commented Oct 28, 2022

Hello,

Stemmed from my current use cases for this awesome resource, would it be a good thing to add fill="currentColor" to the svg elements in the repo's code base?

@n3r4zzurr0
Copy link
Owner

Thanks for the suggestion. Everyone has their use cases. I'll keep this issue open in case anyone else wants to add to this.

@gadzbi123
Copy link

What do you mean by the variable "currentColor"? Is it the value you want to pass to svg? Or do you want to inherit it from somewhere?

@tiagorangel1
Copy link

What do you mean by the variable "currentColor"? Is it the value you want to pass to svg? Or do you want to inherit it from somewhere?

you don't need to define currentColor, it is a predefined "variable" that corresponds to the color: of the closest parent element with it. see: https://stackoverflow.com/q/13000682/14264568

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

4 participants