Repository navigation
feat(theme-classic): make first tab the default tab - #5647
Conversation
|
✔️ [V2] 🔨 Explore the source changes: d69cf08 🔍 Inspect the deploy log: https://app.netlify.com/sites/docusaurus-2/deploys/615c13f38ae66400077be4ef 😎 Browse the preview: https://deploy-preview-5647--docusaurus-2.netlify.app |
|
⚡️ Lighthouse report for the changes in this PR:
Lighthouse ran on https://deploy-preview-5647--docusaurus-2.netlify.app/ |
|
Thanks, also noticed that weird behavior 👍
Totally agree with this breaking change, we want to fail fast here and prevent user mistakes |
* Initial work * Little doc fix * Doc fix
Motivation
It's quite weird UX to display no tabs if no
defaulthas been provided—how many users would want only headings with no content anyways? (This behavior is still achievable with<Tabs defaultValue="none">)A further fix I can think of is to throw an error when
defaultValueis non-existent, and usedefaultValue={null}to specially indicate no tabs open by default. This helps to catch typos early. But that could be a minor BC. (The current fix is already a minor behavior inconsistency, but probably with little effect)Have you read the Contributing Guidelines on pull requests?
Yes
Test Plan
Updated all the tabs usage on the website.