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

[EuiFieldSearch] Fix padding when isClearable but no value yet #4089

Merged
merged 2 commits into from
Oct 1, 2020

Conversation

cchaos
Copy link
Contributor

@cchaos cchaos commented Oct 1, 2020

Follow up to previous PR

Didn't realize that the padding for isClearable was being applied even before the button exists. Saw this in Kibana:

Screen Shot 2020-09-30 at 21 39 12 PM

The search filed cuts off the placeholder too early.

Before

Screen Shot 2020-09-30 at 22 09 13 PM

After

Screen Shot 2020-09-30 at 22 08 52 PM

And it's still working appropriately when there is a value.

Screen Shot 2020-09-30 at 22 09 44 PM

Checklist

  • Check against all themes for compatibility in both light and dark modes
  • [ ] Checked in mobile
  • Checked in Chrome, Safari, Edge, and Firefox
  • [ ] Props have proper autodocs
  • [ ] Added documentation
  • [ ] Checked Code Sandbox works for the any docs examples
  • Added or updated jest tests
  • [ ] Checked for breaking changes and labeled appropriately
  • [ ] Checked for accessibility including keyboard-only and screenreader modes
  • A changelog entry exists and is marked appropriately

@cchaos cchaos requested a review from thompsongl October 1, 2020 02:20
@kibanamachine
Copy link

Preview documentation changes for this PR: https://eui.elastic.co/pr_4089/

Copy link
Contributor

@thompsongl thompsongl left a comment

Choose a reason for hiding this comment

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

I missed this also. Changes LGTM

@cchaos cchaos merged commit 938e01f into elastic:master Oct 1, 2020
@cchaos cchaos deleted the fix/search-padding-2 branch October 1, 2020 14:52
kshitij86 added a commit to kshitij86/eui that referenced this pull request Nov 29, 2020
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