".&" in compiled CSS
Hi all, I purchased the Metronic template and used the HTML version, I'm getting CSS syntax errors, every time I build, in /dist/assets/css/styles.css:
.kt-menu-item.active > .kt-menu-link.& {
border-radius: var(--radius);
} I'm getting this error in both my VS Code and whenever I run
npm run build (I used it with Anguar following this guide: https://keenthemes.com/metronic/tailwind/docs/getting-started/integration/angular):
â² [WARNING] Expected identifier but found "&" [css-syntax-error]
I'm not a CSS expert, but can anyone tell me if there is a special purpose for that syntax and if I can remove those tags with the error? Claude seemed to suggest that they can be removed. Thanks!
Replies (1)
Hi Vincent Lee
Thank you for your feedback. The .& syntax is valid Tailwind CSS v4 syntax for @custom-variant blocks. We will fix it for Angular.
Thanks