We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi there, I was wondering if support for this feature in React styled-components will be implemented soon. In particular:
export const StyledButton = styled('button', props)` /** some styling here */ `; export const ButtonGroup = styled.div` display: flex; ${StyledButton} + ${StyledButton} { border-top-left-radius: 0; border-bottom-left-radius: 0; margin-left: -2px; } `;
Currently, doing this results in the following CSS being produced after compile for ButtonGroup:
display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex; ): ; return resolvedAttrs: ;
which isn't valid. I know I can technically do
export const ButtonGroup = styled.div` display: flex; button + button { border-top-left-radius: 0; border-top-right-radius: 0; margin-left: -2px; } `;
But ideally I'd like to use the components so that the rendered css references a css rule both by element and the compiled hashed class name.
The text was updated successfully, but these errors were encountered:
Hi, I've realized this is a clone of #97 so I'm going to close this.
Sorry, something went wrong.
No branches or pull requests
Hi there, I was wondering if support for this feature in React styled-components will be implemented soon. In particular:
Currently, doing this results in the following CSS being produced after compile for ButtonGroup:
which isn't valid. I know I can technically do
But ideally I'd like to use the components so that the rendered css references a css rule both by element and the compiled hashed class name.
The text was updated successfully, but these errors were encountered: