You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running latest release candidate, types seems to cause issues with mixing props with return type
Expected Behavior
props type is not mixed with return type, as with <Text> where components own color prop is breaking css color type.
extending a styled component shall not require base components props to be defined in the returned object, as with <ExtendingText> and <StyledText>
Actual Behavior
Incoming prop types are overriding the returned styling prop. a property. with the same name as the css property, with string literals gives and error.
extending a styled component requires all base components props to be defined in the style that is returned.
The text was updated successfully, but these errors were encountered:
Environment
System:
Binaries:
npmPackages:
Reproduction
https://codesandbox.io/s/ecstatic-lederberg-y7ldwp
Steps to reproduce
Running latest release candidate, types seems to cause issues with mixing props with return type
Expected Behavior
props type is not mixed with return type, as with
<Text>
where components own color prop is breaking css color type.extending a styled component shall not require base components props to be defined in the returned object, as with
<ExtendingText>
and<StyledText>
Actual Behavior
Incoming prop types are overriding the returned styling prop. a property. with the same name as the css property, with string literals gives and error.
extending a styled component requires all base components props to be defined in the style that is returned.
The text was updated successfully, but these errors were encountered: