Skip to content

Commit

Permalink
[EuiFilterButton] Fix Kibana min-width overrides
Browse files Browse the repository at this point in the history
- `min-width` is now set on `EuiFilterButtons` even outside of `EuiFilterGroup`s, so CSS needs to update to take that into account
  • Loading branch information
cee-chen committed Jul 25, 2023
1 parent f6320c8 commit 14e7469
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ const MyEuiFilterGroup = styled(EuiFilterGroup)`
`;

const FilterAllButton = styled(EuiFilterButton)`
&,
& .euiFilterButton__textShift {
min-width: 28px;
}
Expand Down

0 comments on commit 14e7469

Please sign in to comment.