Skip to content

Commit 720c8ef

Browse files
feat(/lib/components/timeline): change <Timeline.Body> to a <div> (#603)
This component previously defaulted to `<p>` which is needlessly opinionated. Fixes #602 Co-authored-by: Conner Davis <[email protected]>
1 parent dd19f33 commit 720c8ef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/components/Timeline/TimelineBody.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ export const TimelineBody: FC<TimelineBodyProps> = ({ children, className, theme
1616
const theme = mergeDeep(useTheme().theme.timeline.item.content, customTheme).body;
1717

1818
return (
19-
<p className={classNames(theme, className)} {...props}>
19+
<div className={classNames(theme, className)} {...props}>
2020
{children}
21-
</p>
21+
</div>
2222
);
2323
};

0 commit comments

Comments
 (0)