Skip to content

fix: sanitize invalid text colors before TextStyle - #178

Merged
dazzatronus merged 1 commit into
mainfrom
fix/sanitize-invalid-text-color
Sep 8, 2026
Merged

fix: sanitize invalid text colors before TextStyle#178
dazzatronus merged 1 commit into
mainfrom
fix/sanitize-invalid-text-color

Conversation

@dazzatronus

Copy link
Copy Markdown
Contributor

Summary
Incomplete hex like short fill values caused Pixi Color to throw in TextStyle.
Sanitize fill stroke and background via sanitizeColor with white fallback.
Verify with the color-utils unit tests.

Incomplete hex values such as #00 caused Pixi Color to throw when
building TextStyle during reconfigure. Normalize fill/stroke/background
colors through sanitizeColor and fall back to white when invalid.
@dazzatronus
dazzatronus merged commit 82aedbc into main Sep 8, 2026
1 check passed
@dazzatronus
dazzatronus deleted the fix/sanitize-invalid-text-color branch September 8, 2026 08:33
@github-actions

github-actions Bot commented Sep 8, 2026

Copy link
Copy Markdown

🎉 This PR is included in version 2.19.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant