Skip to content

fix(core): reset border-color on an empty value - #22

Open
farfromrefug wants to merge 1 commit into
mainfrom
fix/border-color-empty-string-fork
Open

farfromrefug wants to merge 1 commit into
mainfrom
fix/border-color-empty-string-fork

Conversation

@farfromrefug

Copy link
Copy Markdown

Same fix as the upstream PR, cherry-picked on the fork main.

view.style.borderColor = '' threw Expected 1, 2, 3 or 4 parameters. Actual: . An empty or whitespace-only value now resets the four side colors, like unsetValue. Spec added in style-properties.spec.ts.

Not run on this branch: the spec fails to load in a bare vitest config here (circular import through view-common), so it was verified on the upstream-based branch only.

🤖 Generated with Claude Code

Setting borderColor to an empty string threw "Expected 1, 2, 3 or 4
parameters" since the shorthand is split on top-level separators, which
leaves no part for an empty value. Treat it like unsetValue, so a binding
that is still empty (a theme color not resolved yet) no longer aborts the
view creation.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@farfromrefug
farfromrefug force-pushed the fix/border-color-empty-string-fork branch from 6e8a385 to b85d402 Compare November 27, 2026 22:23

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant