Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

UX: Toggle collapse/uncollapse of sidebars

Abierto
#24 0 comentarios 0 reacciones 1 asignado Ver en GitHub

@nortonandreev ya está trabajando en esto.

Desde el 9/5/2025.

Evaluación

Este issue todavía no se ha evaluado.

Descripción

need:feedback type:feature

When the sidebars are collapsed (or uncollapsed), their state is not saved like a toggle, which means that these sections will be collapsed (or uncollapsed) again if you go to pages outside the section in question.

Desired Behavior
The sidebar collapse behaviour should be more like a toggle, remembering the state set by one user even if the user navigates to pages outside that section.

Additional Context
Anyways, this seems to be default Starlight's configuration: the sidebar remains expanded if the user is on a page within the expanded tree; if not, the sidebar gets collapsed, allowing the user to focus on a clear structure.

If we really feel the need to have the sidebar acting like a toggle, we will need to have to implement a state management for the sidebar.

Potentially, a quite naive (but also perhaps the simplest) implementation would be to append a class name to the expanded list(s) and tweak the SidebarSublist.astro component to take into account that.

Anyways, we need to understand if there is a solid reason to do so. Overriding built-in components and implementing custom business logic makes the codebase more bugs-prone, also potentially harder to maintain.

Lenguaje dominante
MDX
Estrellas
8
Forks
4
Merge medio
2 h 34 min
PR fusionados (30 d)
6

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de dusk-network/docs

Todos los issues de dusk-network/docs

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.