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 e10e882 commit 421c6d4Copy full SHA for 421c6d4
packages/theme-provider/src/index.js
@@ -16,6 +16,7 @@ const BodyStyles = () =>
16
boxSizing,
17
},
18
body: {
19
+ margin: 0,
20
variant: 'styles.root',
21
22
})(theme)
packages/theme-provider/test/index.js
@@ -134,6 +134,16 @@ test('renders global styles', () => {
134
expect(style.lineHeight).toBe('1.5')
135
})
136
137
+test('resets body margin', () => {
138
+ const root = render(
139
+ <ThemeProvider>
140
+ <h1>Hello</h1>
141
+ </ThemeProvider>
142
+ )
143
+ const style = window.getComputedStyle(root.baseElement)
144
+ expect(style.margin).toBe('0px')
145
+})
146
+
147
test('does not render invalid global styles', () => {
148
const root = render(
149
<ThemeProvider theme={{}}>
0 commit comments