Skip to content

Dropdowns (of the other kind) #165

Closed as not planned
Closed as not planned

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

Activity

  1. added
    enhancement
    on Sep 20, 2023
  2. chrisjsewell commented on Jul 12, 2026

    @chrisjsewell
    Member

    Closing as out of scope after the triage in #265: menu-style dropdowns are interactive navigation widgets rather than content components, and keeping this extension CSS-first (no JS-driven widgets beyond tab sync) is a deliberate constraint — nav menus are better served at the theme level. Related consolation: an accordion grouping for the existing dropdowns is planned (zero-JS via native <details name=…>), see #265 §5. Thanks for the suggestion and the clear write-up of the distinction!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions