-
Notifications
You must be signed in to change notification settings - Fork 863
[EuiComboBox] Center enter badge in option #5890
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
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/ |
cee-chen
left a comment
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?
elizabetdev
left a comment
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-selftocenter, instead offlex-start. Because centering the badge would actually cause the badge to not be centered with smallerrowHeights, I also increased the defaultrowHeightto be34.This is the badge with a default
rowHeightof29, after settingalign-selftocenter:I believe this can be caused by the margin being set to
-4for the EuiFlexGroup:This is the badge after changing the default
rowHeightto34:Closes #5873
Checklist