-
Notifications
You must be signed in to change notification settings - Fork 253
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
Error when adding duplicate identifiers in CSS objects #758
Comments
Thanks for raising this issue. Unfortunately, that's a limitation of the JS object syntax. With the const Button = styled('button', { minHeight: '100vh' }, { minHeight: '-webkit-fill-available' }) But the Would that be a good solution for you? Meanwhile, if you need this to work today, you can do: globalCss({
body: {
// hack into the object string as raw CSS
minHeight: '100vh; min-height: -webkit-fill-available;'
}
}) Note: styled-components allow infinite args for their global css API https://codesandbox.io/s/funny-frog-txtcm?file=/src/App.tsx /cc @jonathantneal |
These make sense and work for me, thanks! And yeah I think EDIT: Accidentally closed, reopening for your proposed |
I’m open to supporting n styles in |
Hi! This has been released to Stitches v1.1.0
|
Bug report
Describe the bug
Doing a 100vh fix based on this article, https://css-tricks.com/css-fix-for-100vh-in-mobile-webkit/ , and trying to put two rules , as instructed, I get an error.
To Reproduce
Expected behaviour
I'm not sure why this is required, but in this scenario I'd expect to be able to pass an array in order to set multiple rules for a single CSS property. Similar to:
'@font-face': [{}, {}, {}]
, I'd expect to be able to do :Screenshots
The text was updated successfully, but these errors were encountered: