[UX]: Add Active Section Highlighting to Docs Sidebar
维护者通常 1 天内回复
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 48/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 冷清
调研方向
先定位文档侧边栏和主内容导航的入口;issue 没有指定具体的文件或测试。跟踪当前小节链接和滚动的工作方式,然后验证滚动和点击会更新侧边栏中的活动项,使其保持可见,并在小节之间切换。
由索引模型根据 Issue 内容生成。
描述
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.
- 主要语言
- MDX
- 星标
- 2.3k
- 派生
- 3.4k
- 平均合并
- 22 小时 59 分钟
- 30 天内合并 PR
- 22
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
webpack/webpack.js.org 的其他 Issue
-
a11y: keyboard focus is lost when clicking Table of Contents (TOC) anchor links可能已有人在做 @AnushkaShendge 于 30 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
webpack/webpack.js.org#8458 ·
维护者通常 1 天内回复
-
Improvement: make the Ctrl + K shortcut less visually distracting可能已有人在做 @Jenil1105 于 189 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 64/100
webpack/webpack.js.org#8254 · 1 条评论 ·
维护者通常 1 天内回复
-
Enhancement: Theme colors are defined but not consistently used, causing duplicated manual dark-mode overrides可能重新可做 @ShaikArsalan347 于 13 天前认领,目前没有进行中的 PR。 未关闭
难度 4/5 3-5 天 新手友好度 52/100
webpack/webpack.js.org#8496 · 3 条评论 ·
维护者通常 1 天内回复
-
Proposal: Arabic translation for webpack.js.org documentation可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 5/5 一周以上 新手友好度 25/100
webpack/webpack.js.org#8246 · 15 条评论 ·
维护者通常 1 天内回复
-
Feedback on the front page UX for getting started with Webpack可能重新可做 @snitin315 于 631 天前认领,目前没有进行中的 PR。 未关闭
webpack/webpack.js.org#7510 · 7 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
查看 webpack/webpack.js.org 的全部 Issue
相似的 Issue
-
Documentation
难度 2/5 1-3 小时 新手友好度 84/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
Cojekt/LibreDental#258 ·
维护者通常 1 天内回复
-
factory-active task-identify-harness-labels-done task-identify-issue-type-done
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 1 天内回复
-
marketing
难度 2/5 1-3 小时 新手友好度 88/100
维护者通常 1 天内回复