Allow setting label for Versions Dropdown
See original GitHub issueđ Bug Report
Prerequisites
- Iâm using the latest version of Docusaurus.
- I have tried the
npm run clearoryarn clearcommand. - I have tried
rm -rf node_modules yarn.lock package-lock.jsonand re-installing packages. - I have tried creating a repro with https://new.docusaurus.io
- I have read the console error message carefully (if applicable)
Description
(A clear and concise description of what the bug is.)
Have you read the Contributing Guidelines on issues?
Yup
Steps to reproduce
Use https://new.docusaurus.io to create a CodeSandbox reproducible demo of the bug.
Versioning crashes CodeSandbox right now. Please use the example repo.
(Write your steps here:)
- Create a project with multi-instance docs. Each set of documentation must be versioned. Documentation is available here.
- Add a
docsVersionDropdownnavbar item for each set of docs as shown here - Resize window to collapse navbar to sidebar
Expected behavior
I expected the current version label to be moved to the sidebar. (Write what you thought would happen.)
Actual behavior
The word âVersionâ replaces the label for the current (or any) version. In projects with multiple docs this creates a really confusing user experience for anyone using the site on mobile.

It turns out this value is hard coded in the classic theme.
It would be great if I could override that label.
Your environment
- Public source code: N/A
- Public site URL: N/A
- Docusaurus version used: 2.0.0-beta 4
- Environment name and version (e.g. Chrome 78.0.3904.108, Node.js 10.17.0): Chrome Version 92.0.4515.131, Node.js v15.5.1
- Operating system and version (e.g. Ubuntu 20.04.2 LTS): MacOSX BigSur 11.4
Reproducible demo
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:9 (1 by maintainers)
Top Results From Across the Web
Create Dependent Drop-Down List in Word - Fillable Forms ...
HOW TO CREATE A DEPENDENT DROP-DOWN LIST IN MS WORD 365 - LEGACY TOOL DROP DOWN FORM FIELD WITH VISUAL BASIC CODE //...
Read more >Video: Drop-down list settings - Microsoft Support
You can use a comma-delimited list, a cell range, or a named range to define the options in a drop-down list. This video...
Read more >Apply sensitivity labels to your files and email in Office
On the Home tab, select Sensitivity. Sensitivity button ¡ Choose the sensitivity label that applies to your file or email. Sensitivity label drop-down...
Read more >Video: Manage drop-down lists - Microsoft Support
Training: To prevent changes to your drop-down list data, you can hide the columns, rows, or the entire worksheet that contains the data....
Read more >Dropdowns - Bootstrap
Dropdowns are toggleable, contextual overlays for displaying lists of links and more. They're made interactive with the included Bootstrap dropdown ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Hmmm⌠I think that the simplest solution would be to add a field called something like
mobileLabelto thedocsVersionDropdownwith a default value ofVersion. Then change the line in the screenshot to@andrewnicols if would help if you could share whatâs the target experience you aim for instead of whatâs not working at the moment. Do you know existing sites implementing exactly the UX you want?
That doesnât seem like a bad default behavior and is consistent with all the other dropdowns we have.
In which case? Who reported what problem exactly?
If your docs is unversioned, why would you use this version dropdown anyway đ¤ˇââď¸ you shouldnât use it.
The core feature of Docusaurus is to be flexible and to allow you to bend it to your custom needs
If the version dropdown item doesnât work for you, itâs possible to add your own custom navbar items: https://github.com/facebook/docusaurus/issues/7227
We could make it a select instead (ie the navbar element is a button instead of a link) but that would be a different navbar item type with a different ux and configuration, and things to take care of like accessibility.
Some users already do this: https://docs.dyte.io/react-native (open-source site)