Skip to content
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

EuiComboBox: Add buttons for clearing and opening/closing the combo box #698

Merged
merged 7 commits into from
May 1, 2018

Conversation

nreese
Copy link
Contributor

@nreese nreese commented Apr 24, 2018

fixes #681

screen shot 2018-04-24 at 5 08 09 pm

@nreese nreese requested review from snide and cchaos April 24, 2018 23:02
@snide
Copy link
Contributor

snide commented Apr 24, 2018

@nreese Nice. Mind if @cchaos or I commit directly to clean up the clear button display?

@nreese
Copy link
Contributor Author

nreese commented Apr 25, 2018

go ahead. Thanks

@cchaos
Copy link
Contributor

cchaos commented Apr 25, 2018

Quick question, are we sure we should be flipping the caret? I'm just thinking in terms of consistency with our other dropdowns like context menus and filters:

screen shot 2018-04-25 at 14 24 36 pm

screen shot 2018-04-25 at 14 26 13 pm

@snide
Copy link
Contributor

snide commented Apr 25, 2018

@cchaos I'd keep it pointed down.

@nreese
Copy link
Contributor Author

nreese commented Apr 25, 2018

Should I make that change, or is Design putting something together?

@cchaos
Copy link
Contributor

cchaos commented Apr 25, 2018

@nreese I'll pull something together

@cchaos
Copy link
Contributor

cchaos commented Apr 25, 2018

@nreese I created a PR against your fork

@nreese
Copy link
Contributor Author

nreese commented Apr 26, 2018

@cchaos Thanks for the changes.

Copy link
Contributor

@snide snide left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Only comment is to make the first example have isClearable={true}. We normally like to show the first example with the default props. Right now it's set to false.

@nreese
Copy link
Contributor Author

nreese commented Apr 27, 2018

@snide Any ideas why CI is failing? All tests run locally

@snide
Copy link
Contributor

snide commented Apr 27, 2018

jenkins test this

@snide
Copy link
Contributor

snide commented Apr 27, 2018

Looks like this is happening in a couple PRs due to a docker issue. I'm off tomorrow, but you or @chandlerprall might want to ping the infra channel and @Crazybus (who set some of this up) for assistance. Likely someone there can help you.

If this is blocking you, as long as the tests are passing locally feel free to merge, but usually that team is really quick, so I'm betting they can help out.

@cjcenizal
Copy link
Contributor

jenkins test this

@snide
Copy link
Contributor

snide commented May 1, 2018

jenkins test this

@snide
Copy link
Contributor

snide commented May 1, 2018

@nreese Tests pass on this. Just needs a changelog update, then I think you're good to go.

nreese and others added 6 commits May 1, 2018 16:54
* Added `onClear` prop to `EuiFormControlLayout`

This will allow these extras to properly position according to what is visible and allow for other inputs to utilize it as well.

* Adding `isClearable` back in

* Adding onClose/onOpen back in and allowing a

`onIconClick` prop on the EuiFormControlLayout that will then wrap the icon in a button.
@nreese nreese merged commit cf9475c into elastic:master May 1, 2018
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.

EuiComboBox: Add buttons for clearing and opening/closing the combo box
4 participants