We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c4b3347 commit b5e0849Copy full SHA for b5e0849
packages/theme-provider/src/index.ts
@@ -11,10 +11,15 @@ import { Global } from '@emotion/core'
11
12
const BodyStyles = () =>
13
jsx(Global, {
14
- styles: (theme: Theme) => {
15
- if (theme.useBodyStyles === false || (theme.styles && !theme.styles.root))
+ styles: emotionTheme => {
+ const theme = emotionTheme as Theme
16
+ if (
17
+ theme.useBodyStyles === false ||
18
+ (theme.styles && !theme.styles.root)
19
+ ) {
20
return false
- const boxSizing = theme.useBorderBox === false ? null : 'border-box'
21
+ }
22
+ const boxSizing = theme.useBorderBox === false ? undefined : 'border-box'
23
24
return css({
25
'*': {
0 commit comments