Skip to content

πŸ› BUG: not support space or multiple line on class when using css-in-js libraryΒ #1120

@d-strygwyr

Description

@d-strygwyr

Describe the Bug

I'm using Panda Css, but when im declare like this

---
import { css } from '.../styled/css'
---

<main class={css({})}> // <- don't have space the types is working
</main>

image

---
import { css } from '.../styled/css'
---

<main class={css({ })}> // <- have space the types have gone, and showing the HTMLAttribute instead of types from panda
</main>

image

---
import { css } from '.../styled/css'
---

<main class={css({

})}> // <- have entered the types has gone, and showing the HTMLAttribute instead of types from panda too
</main>

image

---
import { css } from '.../styled/css'
---

<main class={css({color:'red.100', })}> // <- have space after coma the types have gone, and showing the HTMLAttribute instead of types from panda too
</main>

image

bandicam.2023-09-11.16-55-49-630.mp4

Steps to Reproduce

  1. npm init astro using template
  2. npm install pandacss
  3. Follow the instructions in the documentation
  4. implement on .astro extention

Metadata

Metadata

Assignees

No one assigned

    Labels

    - P3: minor bugAn edge case that only affects very specific usage (priority)needs triageIssue needs to be triaged

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions