TabItem ignores className if lazy attribute is set #10218
Labels
bug
An error in the Docusaurus core causing instability or issues with its execution
status: needs triage
This issue has not been triaged by maintainers
Have you read the Contributing Guidelines on issues?
Prerequisites
npm run clear
oryarn clear
command.rm -rf node_modules yarn.lock package-lock.json
and re-installing packages.Description
When using
<TabItem className="foo">
inside a<Tabs lazy>
, theclassName
attribute is ignored. I'd expect that the behavior is the same as for<Tabs>
(without thelazy
attribute).Reproducible demo
https://codesandbox.io/p/devbox/little-cookies-g2xysx
Steps to reproduce
lazy
toTabs
ItemclassName
toTabItem
Expected behavior
with
styles.module.css
Actual behavior
The className is overwritten with
'margin-top--md'
https://github.com/facebook/docusaurus/blob/main/packages/docusaurus-theme-classic/src/theme/Tabs/index.tsx#L125Your environment
Self-service
The text was updated successfully, but these errors were encountered: