[Docs] Fix accessibility violations reported by axe (contrast, names, alt, lightbox)
Chưa có ai nhận issue nà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
- 53/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- css, javascript, playwright
- Lĩnh vực
- accessibility, documentation, frontend
Hướng nghiên cứu
Start with the listed components and custom.css, then inspect the Playwright smoke-test issue referenced in the acceptance criteria to find the axe CI setup. Check contrast in both themes and test the header, skillicons, theme toggle, and lightbox at 375px and 1280px. Done means zero serious or critical axe violations and a lightbox that opens by keyboard, closes with Esc, and restores focus.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Summary
axe-core 4 over all 38 pages (desktop dark + mobile) reports serious and critical violations; the image lightbox is mouse-only.
Location
docs/src/styles/custom.css:344-352docs/src/components/ControlsTable.astro:66-74docs/src/components/GroupName.astro:9docs/src/components/Header.astro:15docs/src/components/ThemeToggle.astro:15docs/src/components/ThemeToggle.astro:190docs/src/components/Album.astro:120-139docs/src/content/docs/getting-started/introduction.mdx:24-35
Evidence
color-contrast (serious) 84 nodes / 20 pages: inline code #3b82f6 on #1e293b = 3.97:1 (dark)
color-contrast: ControlsTable <th> on /mandlebrot/coloring/, /math-chaos/chaos-equations/
GroupName badge (light theme): text-blue-400 on blue-500/10 over white ~ 2.3:1 (computed)
label-content-name-mismatch 76 nodes: a[href="/"] aria-label='Astro documentation' vs text 'Math Problems'
image-alt (critical) + link-name: skillicons.dev <img> without alt on /getting-started/introduction/
button-name (mobile): kebab menu trigger
Light-theme contrast could not be auto-checked (axe incomplete x118: dotted background gradient). Lightbox: img click handler only, no Esc, no focus move, no role="dialog"; theme toggle sets aria-label="light theme" with aria-live on the button.
Expected
Zero axe violations (serious/critical) in both themes at 375px and 1280px; lightbox operable by keyboard.
Proposed fix
- Raise inline-code and table-header colours to >= 4.5:1 in dark mode; make GroupName colours theme-aware.
- Header logo: drop the
aria-label(visible text is the name). - Give skillicons images alt text (or replace with a text list).
- Rebuild the lightbox on
<dialog>(showModal(), Esc closes, focus returns) and make thumbnails<button>s. - Theme toggle:
aria-pressedor a labelled 3-state switch (light/dark/system); removearia-live. - Remove the background gradient from the content area or set an explicit solid
background-colorso contrast is checkable.
Acceptance criteria
- axe CI job (see Playwright smoke-test issue) passes with 0 serious/critical violations in both themes
- Lightbox opens with Enter/Space, closes with Esc, restores focus
Repository audit, November 2026 · Phase 7 · Docs platform · evidence: reproduced · ref platform-011
Generated by Claude Code
- Ngôn ngữ chính
- C++
- Star
- 2
- Fork
- 1
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
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 ibra-kdbra/Math-Problems
-
area: security-algorithms priority: P1 size: XS type: bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 79/100
ibra-kdbra/Math-Problems#417 ·
-
area: math-chaos priority: P3 size: S type: enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
ibra-kdbra/Math-Problems#397 ·
-
area: docs-site good first issue priority: P3 size: XS type: chore
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
ibra-kdbra/Math-Problems#379 ·
-
area: docs-site good first issue priority: P3 size: XS type: bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
ibra-kdbra/Math-Problems#378 ·
-
area: docs-site good first issue priority: P2 size: XS type: chore
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
ibra-kdbra/Math-Problems#367 ·
Tất cả issue của ibra-kdbra/Math-Problems
Issue tương tự
-
c++ easy first-contributor first-contributors good first issue help wanted up-for-grabs
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 94/100
fork-commit-merge/fork-commit-merge#8709 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
-
Type: Bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug data-types
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 71/100
ClickHouse/clickhouse-odbc#680 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
ionut-mihalache/aqua#31 · 1 bình luận ·