Skip to content

Commit 6cf84fc

Browse files
committed
[PR feedback] serializeStyles explanation
1 parent 00370b5 commit 6cf84fc

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

packages/eui/src/components/date_picker/react_date_picker.styles.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88

99
// Needs to use vanilla `css` to pass a className directly to react-datepicker
1010
import { css } from '@emotion/css';
11+
// Emotion can handle serializing objects passed directly to css``, but not objs nested
12+
// in another function util, so we need to serialize some style objects manually
1113
import { serializeStyles } from '@emotion/serialize';
1214

1315
import { UseEuiTheme } from '../../services';

0 commit comments

Comments
 (0)