Skip to content

Accept 8-digit hex colors with alpha in blueprint validation - #127

Open
Chessing234 wants to merge 1 commit into
omacom:mainfrom
Chessing234:fix/hex-color-accept-alpha
Open

Accept 8-digit hex colors with alpha in blueprint validation#127
Chessing234 wants to merge 1 commit into
omacom:mainfrom
Chessing234:fix/hex-color-accept-alpha

Conversation

@Chessing234

Copy link
Copy Markdown

Summary

  • Templates already use #RRGGBBAA, but validation rejected anything longer than #RRGGBB.
  • Accept 3/4/6/8-digit hex and cover it with a unit test.

Test plan

  • go test ./internal/color/...
  • Import a blueprint that uses #00000000

Templates already use #RRGGBBAA, but IsHexColor rejected anything longer than #RRGGBB, so alpha imports failed.

Signed-off-by: Taksh <takshkothari09@gmail.com>
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