background image not show (Remix with vanilla-extract) #1209
Unanswered
WreewanMorhee
asked this question in
Q&A
Replies: 1 comment 1 reply
-
in the first code it correctly references the image URL from the playbtnimg variable. but in the second you're trying to reference playbtnimg in a CSS module. but Vanilla Extract doesn't handle asset URLs in the same way as regular JavaScript.
By using .default on the playbtnimg import, you can access the URL directly in the CSS module. This should resolve the issue and correctly reference the image URL. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Every thing is fine if I write directly in inline style like above:
But But But
if I write the code below:
and the background image result show in real world will become:
Obviously, it didn't been handled (?)
why would this happen ?
Remix version: ^2.0.1
Vanilla-extract version: ^1.13.0
Beta Was this translation helpful? Give feedback.
All reactions