-
Notifications
You must be signed in to change notification settings - Fork 541
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
Styling update #404
Styling update #404
Conversation
packages/react-icons/package.json
Outdated
@@ -40,7 +40,8 @@ | |||
"yargs": "^14.0.0" | |||
}, | |||
"peerDependencies": { | |||
"@griffel/react": "^1.0.0" | |||
"@griffel/react": "^1.0.0", | |||
"react": "^17.0.1" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should match Fluent's range:
"react": "^17.0.1" | |
"react": ">=16.8.0 <18.0.0", |
@@ -6,7 +6,9 @@ const useRootStyles = makeStyles({ | |||
display: 'inline', | |||
lineHeight: 0, | |||
|
|||
"@media screen and (-ms-high-contrast: black-on-white)": {fill: 'windowtext'} | |||
"@media (forced-colors: active)": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we could be more specific and only target the svg
element here. It's the actual element that has the color inherit issue
w3c/csswg-drafts#6310
https://bugs.chromium.org/p/chromium/issues/detail?id=1242706
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should target the svg itself, there is no wrapper around it
…-icons into styling-update
This PR adds react as a peer dependency and adds default styling to set
forced-color-adjust: auto