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
feat(css-vars): resolve var() with default value via adapter inside AST nodes
The var() rewriter only walked plain string values in style objects, so var()
calls embedded inside a TemplateLiteral AST node (e.g. inside a styleFn body
like `flexShrink: \`var(--x, ${expr})\``) were never passed to
adapter.resolveValue. When the adapter resolves a var, the default value is now
dropped — the resolved StyleX token supersedes the runtime fallback.
Co-authored-by: Kenneth Skovhus <skovhus@users.noreply.github.com>
0 commit comments