-
Notifications
You must be signed in to change notification settings - Fork 839
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[EuiColorPicker] Add isClearable
and placeholder
options
#3689
Conversation
Preview documentation changes for this PR: https://eui.elastic.co/pr_3689/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code changes LGTM; pulled & tested locally
@cchaos any thoughts on the color swatch in the input being able to update to whatever a matching auto/placeholder value would be? (would need to be another value provided by the app)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had thought about this too. For now, lets just get these new settings up and continue that convo afterward. There is a nice thing to being able to customize that icon, but would it be unexpected that the custom icon changes to the swatch color after one was chose? |
Waiting on the placeholder swatch/icon conversation sounds good! |
Certainly can. I'll go ahead and add it. |
Preview documentation changes for this PR: https://eui.elastic.co/pr_3689/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome!
Preview documentation changes for this PR: https://eui.elastic.co/pr_3689/ |
Preview documentation changes for this PR: https://eui.elastic.co/pr_3689/ |
Summary
Closes #3683 by adding two additional props to:
isClearable
)placeholder
)Checklist
- [ ] Check against all themes for compatibility in both light and dark modes- [ ] Checked in mobile- [ ] Checked in IE11 and Firefox