Skip to content

Commit

Permalink
feat: animate input width changes
Browse files Browse the repository at this point in the history
  • Loading branch information
nickofthyme committed Sep 8, 2023
1 parent d20ef3e commit 6155757
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Side Public License, v 1.
*/

import { EuiThemeComputed } from '@elastic/eui';
import { EuiThemeComputed, euiCanAnimate } from '@elastic/eui';
import { css } from '@emotion/css';

import add from '../assets/add.svg';
Expand All @@ -29,6 +29,10 @@ export const fieldAndParamCss = (euiTheme: EuiThemeComputed) => css`
&:focus-within {
flex-grow: 4;
}
${euiCanAnimate} {
transition: flex ${euiTheme.animation.extraFast};
}
`;

export const operationCss = (euiTheme: EuiThemeComputed) => css`
Expand Down

0 comments on commit 6155757

Please sign in to comment.