Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add color validation to createColorElement() #178

Merged
merged 1 commit into from
Sep 11, 2017

Conversation

kajda90
Copy link

@kajda90 kajda90 commented Sep 8, 2017

This enhancement prevents silent fallbacking invalid color values to black. Now, if the passed color value does not match hexa RGB format or is not one of the listed scheme colors, a warning appears in console.
The fallback stays the same (black color), however developer is notified of passing invalid value.

@gitbrent gitbrent self-requested a review September 11, 2017 04:51
@gitbrent gitbrent added this to the 1.8.0 milestone Sep 11, 2017
@gitbrent gitbrent merged commit b884c71 into gitbrent:master Sep 11, 2017
@gitbrent gitbrent changed the title Color validation Add color validation to createColorElement() Sep 11, 2017
gitbrent pushed a commit that referenced this pull request Sep 11, 2017
@gitbrent
Copy link
Owner

Thanks @kajda90 !

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants