-
Notifications
You must be signed in to change notification settings - Fork 841
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
Fix global filter truncation #2194
Conversation
by removing`box-sizing: content-box` which removes the need for calc’d max-widths and fix the flex on teh child button
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.
Verified it works in IE11 and still works in the evergreens.
Unless @snide recalls a reason not to move forward, this LGTM
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.
Most of these fixes will need to be repeated in Kibana
I agree this is minor enough we don't need to call this breaking, Let's just make sure to remember this when we build the next release.
Generally we've made an issue in EUI as a reminder (which is how we've handled backports). I'd recommend making one when you merge.
Code looks fine.
I'm going to assign myself to elastic/kibana#35225 and make a comment/note in there to migrate those fixes to Kibana. |
* [Pattern] Fix truncation of global filters * Fix EuiBadge truncation (esp in IE) by removing`box-sizing: content-box` which removes the need for calc’d max-widths and fix the flex on teh child button
Fixes the other half of #2189 and elastic/kibana#35225
... also finishes the fixes in #2190 for IE by:
Removes
box-sizing: content-box
from EuiBadge@snide If you can recall why that was in there I will try to find another solution. But that part of the styles was really conflicting with IE and forcing all those max-width calcs. Instead, I removed that to fallback to
border-box
and now just settingmax-width: 100%
accounts for all the extras.Fixes the truncation of global filters
BEFORE
AFTER
Firefox
IE
Most of these fixes will need to be repeated in Kibana 😓 but atleast this diff will tell us exactly what to do and we'll need the badge fix in there first.
Checklist
[ ] Checked in dark mode[ ] Props have proper autodocs[ ] Added or updated jest tests[ ] Checked for breaking changes and labeled appropriately[ ] Checked for accessibility including keyboard-only and screenreader modes