JSX Styled Component class are like background_blue
while CSS is .bg_blue
#2666
Unanswered
mike-shtil-loop
asked this question in
Q&A
Replies: 1 comment
-
hey, can you make a minimal repro ? one showcasing the issue you're having |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone,
I'm having a scenario where some instances of a styled JSX (React) Panda components inject class names which don't match the global.css selectors.
For example, the global.css style generated is
But some of the instances of this styled component are
While others are the expected
Perhaps a maintainer could comment on what makes Panda seemingly fall back to a snake-case raw CSS property name instead of the shortened ones, for a class name?
I couldn't locate this behavior in the source code
Some extra info:
I'm running a turborepo monorepo, with a Panda setup like here https://github.com/fredericoo/panda-design-system-poc
where I have
apps/main
andpackages/ui
. The issue only happens with components imported intoapps/main
frompackages/ui
.Using tokens from
packages/ui/panda.config.ts
works fine. Also for some instances of the components the class name is generated fine.I don't have any other post-css/atomic CSS libraries. There is some use of Stitches still in the code but I couldn't quite find a connection.
This happens with any property -
font-size
instead offs
etc.Beta Was this translation helpful? Give feedback.
All reactions