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
Expected:
const Title = styled("h1")(p => ({ background: "blue" })); const Title2 = styled(Title)({ background: "green" });
Expected: Title2 is green
Resulted: Title2 is blue, because it has 2 class names and one of them loses the specificity war.
Repro: https://codesandbox.io/s/styled-jss-playground-repro-mo3c8
The text was updated successfully, but these errors were encountered:
I am working on a new styled API on top of the new react-jss hooks based API, so I need to check if this also happens there cssinjs/jss#1094
Sorry, something went wrong.
No branches or pull requests
Expected:
Expected:
Title2 is green
Resulted:
Title2 is blue, because it has 2 class names and one of them loses the specificity war.
Repro:
https://codesandbox.io/s/styled-jss-playground-repro-mo3c8
The text was updated successfully, but these errors were encountered: