Skip to content
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

CSS not working while migration from babel to swc compliler #835

Open
vishalmanjrekar opened this issue May 31, 2023 · 1 comment
Open

Comments

@vishalmanjrekar
Copy link

vishalmanjrekar commented May 31, 2023

Do you want to request a feature or report a bug?

BUG

What is the current behavior?

export const itemStyle = css`
   {
    .item {
      display: flex;
      flex: 0 48%;
      position: relative;
      justify-content: center;
      align-items: center;
      height: 92px;
      margin-bottom: 12px;
      border-radius: 6px;
      background-color: #a9a9a9;
      background-position: center;
      background-repeat: no-repeat;
      background-size: cover;
    }
}`
``` `
#### If the current behavior is a bug, please provide the steps to reproduce and possibly a minimal demo or testcase in the form of a Next.js app, CodeSandbox URL or similar

#### What is the expected behavior?
CSS style should apply

#### Environment (include versions)

- Version of styled-jsx (or next.js if it's being used):5.12
- Browser:
- OS:

#### Did this work in previous versions?
Working fine with babel compiler
@huozhi
Copy link
Member

huozhi commented Jun 13, 2023

Can you provide a full reproduction?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants