-
-
Notifications
You must be signed in to change notification settings - Fork 9.9k
TabItem ignores className if lazy attribute is set #10218
Copy link
Copy link
Closed
Labels
bugAn error in the Docusaurus core causing instability or issues with its executionAn error in the Docusaurus core causing instability or issues with its executionstatus: needs triageThis issue has not been triaged by maintainersThis issue has not been triaged by maintainers
Metadata
Metadata
Assignees
Labels
bugAn error in the Docusaurus core causing instability or issues with its executionAn error in the Docusaurus core causing instability or issues with its executionstatus: needs triageThis issue has not been triaged by maintainersThis issue has not been triaged by maintainers
Type
Fields
Give feedbackNo fields configured for issues without a type.
Have you read the Contributing Guidelines on issues?
Prerequisites
npm run clearoryarn clearcommand.rm -rf node_modules yarn.lock package-lock.jsonand re-installing packages.Description
When using
<TabItem className="foo">inside a<Tabs lazy>, theclassNameattribute is ignored. I'd expect that the behavior is the same as for<Tabs>(without thelazyattribute).Reproducible demo
https://codesandbox.io/p/devbox/little-cookies-g2xysx
Steps to reproduce
lazytoTabsItemclassNametoTabItemExpected behavior
with
styles.module.cssActual 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