mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-04 09:19:16 +02:00
fix(theme): ignored className attribute on lazy loaded TabItem (#10219)
This commit is contained in:
parent
88788cec90
commit
591914ca5c
2 changed files with 17 additions and 1 deletions
|
@ -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 (
|
||||
<div className="margin-top--md">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue