It's not obvious that @theme-ui/core
doesn't apply styles.root
.
#2235
Labels
released
This issue/pull request has been released.
Describe the bug
The default 8px margin that Chrome puts on the element is present, even when styling
root
to have margin and padding set to 0.To Reproduce
Steps to reproduce the behavior:
Have
"@theme-ui/core": "^0.14.5"
(not using the complete theme-ui package since the mdx package causes problems with Vite build).Inspect body and find a
margin: 8px
applied by default to the elementExpected behavior
Expected the to have
margin: 0
on the body.Screenshots

Additional context
I'm using React v18 and Vite as a builder. I saw this issue, but it's marked as resolved. Has there been a regression?
The text was updated successfully, but these errors were encountered: