-
Notifications
You must be signed in to change notification settings - Fork 843
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] Center enter badge in option #5890
Conversation
Preview documentation changes for this PR: https://eui.elastic.co/pr_5890/ |
src/components/combo_box/combo_box_options_list/combo_box_options_list.tsx
Outdated
Show resolved
Hide resolved
84666f9
to
15e1f89
Compare
Preview documentation changes for this PR: https://eui.elastic.co/pr_5890/ |
15e1f89
to
272e4a4
Compare
Preview documentation changes for this PR: https://eui.elastic.co/pr_5890/ |
Preview documentation changes for this PR: https://eui.elastic.co/pr_5890/ |
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.
This looks good to me - super happy we could fix it in ~2 lines of CSS! Since it's a CSS-only change, @miukimiu or @cchaos, do you want to review before merge?
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.
Summary
This PR centers the enter badge in the Combo Box option, by setting
align-self
tocenter
, instead offlex-start
. Because centering the badge would actually cause the badge to not be centered with smallerrowHeight
s, I also increased the defaultrowHeight
to be34
.This is the badge with a default
rowHeight
of29
, after settingalign-self
tocenter
:I believe this can be caused by the margin being set to
-4
for the EuiFlexGroup:This is the badge after changing the default
rowHeight
to34
:Closes #5873
Checklist