[UX]: Add Active Section Highlighting to Docs Sidebar
Maintainer thường phản hồi trong vòng 1 ngày
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 48/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Ít trao đổi
- Lĩnh vực
- documentation, frontend
Hướng nghiên cứu
Bắt đầu bằng cách xác định sidebar của tài liệu và các điểm vào điều hướng của nội dung chính; issue không nêu tên các tệp hoặc bài kiểm thử cụ thể. Theo dõi cách các liên kết đến section và thao tác cuộn hiện đang hoạt động, sau đó xác minh rằng việc cuộn và nhấp chuột sẽ cập nhật mục đang hoạt động trong sidebar, giữ mục đó luôn hiển thị và chuyển tiếp giữa các section.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- MDX
- Star
- 2.3k
- Fork
- 3.4k
- Merge trung bình
- 22 giờ 59 phút
- Pull request đã merge (30 ngày)
- 22
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của webpack/webpack.js.org
-
a11y: keyboard focus is lost when clicking Table of Contents (TOC) anchor linksCó thể đã có người làm @AnushkaShendge đã nhận 30 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
webpack/webpack.js.org#8458 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Improvement: make the Ctrl + K shortcut less visually distractingCó thể đã có người làm @Jenil1105 đã nhận 189 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
webpack/webpack.js.org#8254 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Enhancement: Theme colors are defined but not consistently used, causing duplicated manual dark-mode overridesCó thể làm lại được @ShaikArsalan347 đã nhận 13 ngày trước và không có pull request nào đang mở. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 52/100
webpack/webpack.js.org#8496 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Proposal: Arabic translation for webpack.js.org documentationCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
webpack/webpack.js.org#8246 · 15 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Feedback on the front page UX for getting started with WebpackCó thể làm lại được @snitin315 đã nhận 631 ngày trước và không có pull request nào đang mở. Đang mở
webpack/webpack.js.org#7510 · 7 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của webpack/webpack.js.org
Issue tương tự
-
Documentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Cojekt/LibreDental#258 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
factory-active task-identify-harness-labels-done task-identify-issue-type-done
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
vercel/ai#25685 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
marketing
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 1 ngày