-
Notifications
You must be signed in to change notification settings - Fork 734
fix: [web] svg class selector #2720
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
Conversation
@@ -19,6 +19,7 @@ | |||
"@react-native-community/netinfo": "^9.3.0", | |||
"react": "^17.0.2", | |||
"react-dom": "^17.0.2", | |||
"react-native": "npm:react-native-web@0.19.4", |
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.
What's that?
Why do we need this?
@@ -301,7 +301,13 @@ class Button extends PureComponent<Props, ButtonState> { | |||
} else { | |||
if (Constants.isWeb) { | |||
return ( | |||
<Icon style={iconStyle} tintColor={Colors.$iconDefault} source={iconSource} testID={`${testID}.icon`}/> | |||
<Icon | |||
id={`button_icon_${this.props.id}`} |
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.
Where the id
prop is coming from?
have you declared in Button props? or in Icon component's props?
}); | ||
}; | ||
|
||
const className = `${props?.id ?? 'svg-icon'} `; |
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.
maybe generate an uniq random id so each classname will have a different scope
@mendyEdri @OrenZak |
from my side yes, we will switch to prod |
why its not relevant ? @AmitShwarts , have you done something related to that ? |
We thought this PR supposed to replace yours |
Hey guys, I didn't know about this PR and we merged yesterday a different PR that solves this and some more bugs in web svg image. |
Description
Changelog
Additional info