Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/body/src/__snapshots__/body.spec.tsx.snap
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html

exports[`<Body> component > renders correctly 1`] = `"<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><!--$--><body>Lorem ipsum<!--/$--></body>"`;
exports[`<Body> component > renders correctly 1`] = `"<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><!--$--><body class="p-0">Lorem ipsum<!--/$--></body>"`;
2 changes: 1 addition & 1 deletion packages/body/src/body.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export type BodyProps = Readonly<React.HtmlHTMLAttributes<HTMLBodyElement>>;
export const Body = React.forwardRef<HTMLBodyElement, BodyProps>(
({ children, style, ...props }, ref) => {
return (
<body {...props} ref={ref} style={style}>
<body className="p-0" {...props} ref={ref} style={style}>
{children}
</body>
);
Expand Down