-
Notifications
You must be signed in to change notification settings - Fork 842
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
[EuiSuggest] Fix labelDisplay and add labelWidth and descriptionDisplay props #4180
Conversation
Preview documentation changes for this PR: https://eui.elastic.co/pr_4180/ |
Preview documentation changes for this PR: https://eui.elastic.co/pr_4180/ |
Preview documentation changes for this PR: https://eui.elastic.co/pr_4180/ |
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.
Preview documentation changes for this PR: https://eui.elastic.co/pr_4180/ |
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.
Looks great. I just have one last suggestion as I was confirming the class name logic.
Preview documentation changes for this PR: https://eui.elastic.co/pr_4180/ |
Summary
This PR:
labelDisplay
was not being passed fromEuiSuggest
toEuiSuggestItem
labelWidth
prop so consumers can set label to a width lower or higher than 50%. The motivation behind this is a use case reported in Kibana where it seems like labels are unnecesarily taking up too much space as they are using the current default (i.e. 50%).descriptionDisplay
prop to handle cases with really long descriptionsNote: Need to fix one failing test
Fixes #4173
Checklist
- [ ] Checked Code Sandbox works for the any docs examples- [ ] Checked for breaking changes and labeled appropriately- [ ] Checked for accessibility including keyboard-only and screenreader modes