Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dropdowns (of the other kind) #165

Open
Julian opened this issue Sep 20, 2023 · 0 comments
Open

Dropdowns (of the other kind) #165

Julian opened this issue Sep 20, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@Julian
Copy link

Julian commented Sep 20, 2023

Context

I see sphinx-design ships something called dropdowns, but they seem to be what (at least Bootstrap) calls accordions (I am no UI developer, in case my ignorance needed revealing!).

I'm looking instead for dropdowns of the menu kind, where selecting an option changes what content you see -- i.e. a "souped up" version of tabs for when you have too many tab headings and don't want to display 20 of them next to each other to decide which content to show.

Instead I'd like a <select> where depending on which element is selected you get a different "tab" shown.

Filing this to hear what you think, thanks for the plugin!

Proposal

Add a .. select:: directive which shows one of N possible content tabs, corresponding to N options in a dropdown menu.

Additional "nice-to-have" would be if there was a way to have the dropdown be globally selectable -- i.e. if in one place on the page someone could select one of the N options, and that selection affected all of the selectable widgets on the page (think something like someone selects in one place on the page which programming language they want to see examples shown in, and then all the examples blocks on the page should sync to that selected language).

Tasks and updates

No response

@Julian Julian added the enhancement New feature or request label Sep 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant