-
Notifications
You must be signed in to change notification settings - Fork 63
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
Styles are lost after composing styled component and then using as
prop
#1644
Comments
To add more context:
gets compiled to
As you can see, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
If i have styled component from @compiled/react like H3, and then reuse it to be styled again into Heading and then use
as
prop to render it as h1.i would only get styles of
marginBlock: '0 5px',
in UI renderingthe styles from H3 are lost
Expected behavior
styles from H3 are should also be applied.
Workaround
Using as props before 2nd styled on the component as suggested by @liamqma +++++
The text was updated successfully, but these errors were encountered: