-
-
Notifications
You must be signed in to change notification settings - Fork 38
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
Marged styles using with cx
is defferent from using styled
#56
Comments
cx
is defferent with using styled
cx
is defferent from using styled
Hi @kazukinagata,
Thank you for showing your apreciation! Sorry, I dont have time to actually deal with this issue right now but reading through it I noticed: - return <img src={src} className={cx(className, classes.img)} />;
+ return <img src={src} className={cx(classes.img, classeName)} />; The |
@garronej You were right! I'm a newbie to emotion, so it was very helpful to learn from you. |
First of all, thanks for creating a great library!
I'm migrating a project from using jss towards tss-react but I'm struggling with the different style order when using
cx
.Codesandbox is here.
I have two components (Parent and Child), and I want to override the
objectFit
property ofimg
tag from Parent.The style generated by cx is as follows.
Using
styled
instead ofmakeStyles
get the expected result.The text was updated successfully, but these errors were encountered: