-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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]: className in CardHeader causes vite minify warnings #6930
Labels
bug
Something isn't working
Comments
Have the same warning, the generated css looks like this: .has-\[data-slot\=card-action\]\:grid-cols-\[1fr_auto\]:has(:is()) {
grid-template-columns: 1fr auto;
} For some reason the |
Have the same warning, i came with a little trick but do the work:
and vite build without error |
Changing
to
(moving the |
opened a pr with a fix |
kodiakhq bot
pushed a commit
that referenced
this issue
Mar 20, 2025
when building using vite and tailwind vite plugin this following warning appears ``` rendering chunks (10)...warnings when minifying css: ▲ [WARNING] Unexpected ")" [css-syntax-error] grid-cols-\[1fr_auto\]:has(:is()){grid-template-columns:1fr ^ ``` this is fixed by complying to tailwind new way of writing data attribute documented [here](https://tailwindcss.com/docs/hover-focus-and-other-states#data-attributes) change ``` [data-slot=card-action]: ``` to ``` data-[slot=card-action]: ``` resolves #6930
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Got this component via CLI:
Which causes:
▲ [WARNING] Unexpected ")" [css-syntax-error]
After some investigation, exactly this: has-[data-slot=card-action]:grid-cols-[1fr_auto]
causes warnings.
Affected component/components
CardHeader
How to reproduce
Codesandbox/StackBlitz link
No response
Logs
System Info
Before submitting
The text was updated successfully, but these errors were encountered: