Skip to content

Dropdowns (of the other kind) #165

Description

@Julian

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions