-
Notifications
You must be signed in to change notification settings - Fork 261
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
Why white spaces and ";" there is? error? #580
Comments
Hello @erkanunluturk! I'm having issues with The maintainer himself (@giuseppeg) has this RFC up:
can be found. Question to @giuseppeg: should we be able to do it this way AND why does |
@kkortes implicit roots i.e. css without a selector are not officially supported. As for the other issue I recommend that you define the styles in two separate rules (using two classes) and add the className conditionally: <div className={`root ${vCenter ? 'vcenter' : ''}`}>
{children}
<style jsx>{`
.root {
width: 100%;
padding: 0 1rem;
}
.vcenter { display: flex; align-items: center; }
`}</style>
</div> |
Implicit roots aren't the problem me and @erkanunluturk are facing. The loose
with
(notice I use selector |
Do you want to request a feature or report a bug?
a bug
What is the current behavior?
there is empty space when variable is not fulfilled
renders to:
example source: nextjs site source (container component)
Environment (include versions)
Did this work in previous versions?
I don't know
The text was updated successfully, but these errors were encountered: