Skip to content

Commit

Permalink
[EuiFilterGroup] Fix responsive styles (#6983)
Browse files Browse the repository at this point in the history
* Fix EuiFilterGroup's responsive styling

- I messed up the breakpoint interpretation/logic during its Emotion conversion

* changelog
  • Loading branch information
cee-chen authored Jul 24, 2023
1 parent 8945de5 commit 2121e09
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/components/filter_group/filter_group.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,7 @@ import { CSSProperties } from 'react';
import { css } from '@emotion/react';

import { UseEuiTheme } from '../../services';
import {
logicalCSS,
mathWithUnits,
euiMaxBreakpoint,
} from '../../global_styling';
import { logicalCSS, mathWithUnits, euiBreakpoint } from '../../global_styling';
import { euiFormVariables } from '../form/form.styles';
import { euiFilterButtonDisplay } from './filter_button.styles';

Expand Down Expand Up @@ -51,10 +47,10 @@ export const euiFilterGroupStyles = (euiThemeContext: UseEuiTheme) => {
}
}
${euiMaxBreakpoint(euiThemeContext, 's')} {
${euiBreakpoint(euiThemeContext, ['xs', 's'])} {
flex-wrap: wrap;
}
${euiMaxBreakpoint(euiThemeContext, 'xs')} {
${euiBreakpoint(euiThemeContext, ['xs'])} {
/* Force all tiny screens to take up the entire width */
display: flex;
Expand Down
3 changes: 3 additions & 0 deletions upcoming_changelogs/6983.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
**Bug fixes**

- Fixed `EuiFilterGroup`'s responsive styles

0 comments on commit 2121e09

Please sign in to comment.