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

SVGアイコンの塗りつぶしを制御 #20

Closed
qrac opened this issue Nov 4, 2018 · 0 comments
Closed

SVGアイコンの塗りつぶしを制御 #20

qrac opened this issue Nov 4, 2018 · 0 comments

Comments

@qrac
Copy link
Owner

qrac commented Nov 4, 2018

image

Feather – Simply beautiful open source icons

fill 属性がインラインで付与されているアイコンのSVGに fill: currentColor; が当たると意図通りのデザインを保てないため、fill 属性が無いものだけにスタイルを当てる。

Before

svg {
  fill: currentColor;
}

After

svg:not([fill]) {
  fill: currentColor;
}
qrac added a commit that referenced this issue Nov 4, 2018
@qrac qrac closed this as completed Nov 4, 2018
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