-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Upgrade @elastic/eui to 85.0.1 #162209
Upgrade @elastic/eui to 85.0.1 #162209
Changes from all commits
491dc61
107b349
7e4eb76
8569585
f6320c8
14e7469
f5a55e0
0d0e093
43116a7
cffdd7c
98f017c
cb499fc
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,7 +47,8 @@ const popoverTitleStyle = css` | |
padding: ${EQUAL_HEIGHT_OFFSET}px 0; | ||
`; | ||
const filterButtonStyle = css` | ||
.euiFilterButton__textShift { | ||
&, | ||
& .euiFilterButton__textShift { | ||
min-width: 0; | ||
line-height: 1; | ||
} | ||
|
@@ -105,7 +106,12 @@ export function FieldTypeFilter<T extends FieldListItem = DataViewField>({ | |
const itemStyle = useMemo( | ||
() => css` | ||
font-size: ${euiTheme.size.m}; | ||
padding: ${euiTheme.size.s} ${euiTheme.size.m}; | ||
// Specificity needed to override Sass styles | ||
// EUI TODO: Remove this selector once EuiContextMenu has been converted to Emotion | ||
&.euiContextMenuItem { | ||
padding: ${euiTheme.size.s} ${euiTheme.size.m}; | ||
} | ||
& + & { | ||
border-top: 1px solid ${euiTheme.colors.lightestShade}; | ||
|
@@ -149,7 +155,7 @@ export function FieldTypeFilter<T extends FieldListItem = DataViewField>({ | |
return ( | ||
<EuiPopover | ||
id="unifiedFieldTypeFilter" | ||
panelClassName="euiFilterGroup__popoverPanel" | ||
panelProps={{ css: { width: euiTheme.base * 18 } }} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks @jughosta I'll look into that! There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The filter button width should be fixed as with 14e7469 - I hadn't realized folks in Kibana were using Regarding the filter item height - this looks like it was affected by #161592 (Sass styling order). I pushed up a specificity override for now (f5a55e0) which we can remove once more of EUI is on Emotion 🤞 Thanks for your eagle eye on these things @jughosta, you're amazing!! There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks for the fixes, @cee-chen! You are amazing! 😉 |
||
panelPaddingSize="none" | ||
anchorPosition="rightUp" | ||
display="block" | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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.
nit: would prefer
18
to be a constant. Not sure what that number is supposed to correspond to.@ryankeairns, you like to call this out often, what do you think?
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.
Y'all are super welcome to set your own constant! The number is what
.euiFilterGroup__popoverPanel
was setting as a width in CSS/Sass (link), it's just not hidden behind an EUI CSS class anymore, as we are no longer providing component-specific CSS utilities to consumers.In any case,
width
is fairly content-specific so we would prefer consumers figure out what width they want to display based on their content and not on a generic.