-
-
Notifications
You must be signed in to change notification settings - Fork 98
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
I want to setup both background image and positioning but I get error of tailwindcss/no-contradicting-classname
.
I need to use CSS vartiables as I want the URL to be dynamic (see here).
To Reproduce
Use the following code:
<section
style={{ '--bg-small': `url(foo.jpg)` } as CSSProperties}
className={`bg-[image:var(--bg-small)] bg-center`}
/>
Expected behavior
Code should work without an error.
Additional context
bg-[url(...)]
with bg-center
works fine though.
jonosmith, vrumger, JamesBliss, benmag and pnavarrc
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working