diff --git a/packages/docusaurus-theme-classic/src/theme/Tabs/index.tsx b/packages/docusaurus-theme-classic/src/theme/Tabs/index.tsx index 383e2ee3ed96..3e2da1b43226 100644 --- a/packages/docusaurus-theme-classic/src/theme/Tabs/index.tsx +++ b/packages/docusaurus-theme-classic/src/theme/Tabs/index.tsx @@ -122,7 +122,9 @@ function TabContent({ // fail-safe or fail-fast? not sure what's best here return null; } - return cloneElement(selectedTabItem, {className: 'margin-top--md'}); + return cloneElement(selectedTabItem, { + className: clsx('margin-top--md', selectedTabItem.props.className), + }); } return (