fix(theme): forward className prop in theme-classic's Heading (#8350)

Fixes https://github.com/facebook/docusaurus/issues/8327
This commit is contained in:
Josh Goldberg 2022-11-16 11:52:49 -05:00 committed by sebastienlorber
parent 21ad8832b3
commit 5d2dd9b6b4

View file

@ -30,6 +30,7 @@ export default function Heading({as: As, id, ...props}: Props): JSX.Element {
hideOnScroll
? styles.anchorWithHideOnScrollNavbar
: styles.anchorWithStickyNavbar,
props.className,
)}
id={id}>
{props.children}