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

Added support for fullWidth on EuiComboBox #1095

Merged
merged 3 commits into from
Aug 7, 2018

Conversation

cchaos
Copy link
Contributor

@cchaos cchaos commented Aug 7, 2018

Fixes #1062

Link to gif: https://d.pr/free/i/SEuUIY

@cchaos
Copy link
Contributor Author

cchaos commented Aug 7, 2018

This can easily be tested by changing the default value to true: https://github.com/elastic/eui/pull/1095/files#diff-1cc70a22af114baf29d4d6dab3201c29R53

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.

All good.

@@ -6,7 +6,7 @@
* 3. The height can expand, hence auto
*/
.euiComboBoxOptionsList {
@include euiFormControlSize(auto); /* 3 */
@include euiFormControlSize(auto, $includeAlternates: true); /* 3 */
Copy link
Contributor

Choose a reason for hiding this comment

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

Somehow I missed this addition to the mixin. That's really cool 👍

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, it's been really helpful. Eventually I might want to do a check in the mixin to see if the value passed is a bool or string, where the string could match "fullWidth" or "compressed", or an array of stings. So we can be even more particular about which ones to include.

Copy link
Contributor

@chandlerprall chandlerprall left a comment

Choose a reason for hiding this comment

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

change LGTM

@cchaos cchaos merged commit 2312d66 into elastic:master Aug 7, 2018
@cchaos cchaos deleted the combobox-full-width branch August 7, 2018 20:49
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.

3 participants