You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found out that light-dark is not transpiled correctly when used inside in border-color.
We have a module on different pages, some of them have color-scheme to only light-mode, some other pages have color-scheme set to light and dark. So my css definition is:
Hey @devongovett, sorry completely oversaw you comment untii now.
I just check again and the issue persists with current next 15.1.4 and react 19.
In the screenshot you can see:
for border-button only the dark color is applied - which is wrong/unexpected here
the defined variable --wcom-border-color has correctly applied the light color, respecting the color-scheme setting for this page.
Maybe we can catch up and try to fix the issue. Also I see this only for next production builds, not dev/watch mode. Might be also something we can dig into.
Hey guys,
I found out that light-dark is not transpiled correctly when used inside in
border-color
.We have a module on different pages, some of them have color-scheme to only light-mode, some other pages have color-scheme set to light and dark. So my css definition is:
But in a page with only light color-scheme, it wrongly applies the dark color only, so the rendered CSS in the browser is:
I also checked, and the normal color-rule correctly applies the light and dark colors, so I suppose, border-bottom is not transpiled correctly.
I fixed this, by defining an extra var right before usage:
I hope this can help trouble shooting the issue. About my project infrastructure (only partially listed deps):
and
experimental.useLightningcss
is enabled in next.config.jsThe text was updated successfully, but these errors were encountered: