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
Current behavior:
Can't use !important with quoted content in the css prop. Throws a runtime error about the quoted content
!important
css
You seem to be using a value for 'content' without quotes, try replacing it with `content: '""•" !important"'`
To reproduce:
Codesandbox repro https://codesandbox.io/p/sandbox/emotion-issue-template-forked-r5ld57?file=%2Fsrc%2FApp.tsx%3A48%2C10
className={css` b:before { content: "•" !important; } `}
css={{ ["b:before"]: { content: '"•" !important', // This crashes display: "inline", marginRight: "1ch", }, }}
content: "var(--bullet) !important"
Expected behavior:
Doesn't crash + produces valid content with the quoted content and !important like
Environment information:
react
@emotion/react
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Current behavior:
Can't use
!important
with quoted content in thecss
prop. Throws a runtime error about the quoted contentTo reproduce:
Codesandbox repro
https://codesandbox.io/p/sandbox/emotion-issue-template-forked-r5ld57?file=%2Fsrc%2FApp.tsx%3A48%2C10
Expected behavior:
Doesn't crash + produces valid content with the quoted content and !important like

Environment information:
react
version: 17/18@emotion/react
version: 11.11.4The text was updated successfully, but these errors were encountered: