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

[BUG] bg-center mark as conflicting with bg-[image:xxx] #260

Closed
moshest opened this issue Jul 5, 2023 · 1 comment
Closed

[BUG] bg-center mark as conflicting with bg-[image:xxx] #260

moshest opened this issue Jul 5, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@moshest
Copy link

moshest commented Jul 5, 2023

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.

@moshest moshest added the bug Something isn't working label Jul 5, 2023
@francoismassart
Copy link
Owner

@moshest => npm i [email protected]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants