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 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: