[UX]: Add Active Section Highlighting to Docs Sidebar
I maintainer di solito rispondono entro 1 giorno
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 48/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Tranquilla
- Ambito
- documentation, frontend
Direzione di ricerca
Inizia individuando la barra laterale della documentazione e i punti di ingresso della navigazione del contenuto principale; l’issue non indica file o test specifici. Traccia il funzionamento attuale dei link alle sezioni e dello scorrimento, quindi verifica che lo scorrimento e i clic aggiornino l’elemento attivo nella barra laterale, lo mantengano visibile e consentano di passare da una sezione all’altra.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Description
Currently, when reading through a documentation page (e.g., /output), the sidebar navigation on the left does not visually indicate which section the user is currently viewing. As the user scrolls through the main content, the sidebar remains static with no active state feedback, making it difficult to:
- Know where you are: There is no visual distinction (highlight, bold, color change, or animation) on the sidebar item corresponding to the section currently visible in the viewport.
- Jump to a desired section: Without a clear active indicator, users cannot quickly orient themselves within long documentation pages.
- Track scroll progress: When the main content is scrolled and a new section (e.g., "Entry" → "Output" → "Loaders") enters the viewport, the sidebar does not automatically scroll to keep the active item visible, nor does the active highlight transition from one subheading to another.
Current Behavior
- The sidebar lists all page sections and subheadings (e.g., Entry, Output, Loaders, Plugins, Mode, etc.) as static links. Scrolling through the main content does not update any visual state in the sidebar.
- There is no animation or transition effect when moving between sections.
Proposed feature
- As the user scrolls through the main documentation content, the sidebar should highlight the currently active section
- The active highlight should smoothly transition from one section to the next as the user scrolls past section boundaries.
- Clicking a sidebar item should scroll the main content to the corresponding section and immediately update the active state.
Inspo
The tailwind CSS docs implement this pattern effectively with a smooth scroll-tracking sidebar.(see on the right side of page--this page section.)
Results
This enhancement would significantly improve the reading and navigation experience on long documentation pages, especially for new users who are trying to orient themselves within the webpack documentation.
- Lingua principale
- MDX
- Stelle
- 2.3k
- Fork
- 3.4k
- Merge medio
- 22h 59m
- PR unite (30g)
- 22
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di webpack/webpack.js.org
-
a11y: keyboard focus is lost when clicking Table of Contents (TOC) anchor linksForse già presa @AnushkaShendge l’ha presa 30 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
webpack/webpack.js.org#8458 ·
I maintainer di solito rispondono entro 1 giorno
-
Improvement: make the Ctrl + K shortcut less visually distractingForse già presa @Jenil1105 l’ha presa 189 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
webpack/webpack.js.org#8254 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Enhancement: Theme colors are defined but not consistently used, causing duplicated manual dark-mode overridesForse di nuovo libera @ShaikArsalan347 l’ha presa 13 giorni fa e non c’è nessuna pull request aperta. Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 52/100
webpack/webpack.js.org#8496 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Proposal: Arabic translation for webpack.js.org documentationForse già presa Una pull request collegata a questa issue è aperta o già unita. Aperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
webpack/webpack.js.org#8246 · 15 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Feedback on the front page UX for getting started with WebpackForse di nuovo libera @snitin315 l’ha presa 631 giorni fa e non c’è nessuna pull request aperta. Aperta
webpack/webpack.js.org#7510 · 7 commenti · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di webpack/webpack.js.org
Issue simili
-
Documentation
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
Cojekt/LibreDental#258 ·
I maintainer di solito rispondono entro 1 giorno
-
factory-active task-identify-harness-labels-done task-identify-issue-type-done
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
vercel/ai#25685 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
marketing
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
I maintainer di solito rispondono entro 1 giorno