Pages have no landmarks (main, banner, contentinfo) and no link to skip to the content

Đang mở
#682 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@guidol-ive đang làm issue này rồi.

Từ ngày 28/10/2026.

  • #685 của @guidol-ive — đang mở

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
javascript
Lĩnh vực
accessibility

Hướng nghiên cứu

The issue names data/themes/default/hypha.html and the #header, #page, #main, and #footer regions. Read how the theme renders these regions and check the open pull request #685 for work already underway. Done means pages gain the requested landmark roles and a keyboard-focus-only “Skip to content” link while existing theme markup stays unchanged.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Component: User interface Impact: Low Level: Easy Type: Bug Value: Visitors

Problem

A Hypha page has no landmarks: no <main>, <header> or <footer>, and no role attributes on the divs of the theme (#header, #page, #footer in data/themes/default/hypha.html). There is also no link to skip to the content.

  • A screen reader user cannot jump to the main content or the header (Lighthouse and axe: "Document should have one main landmark", "Page should contain a level-one heading inside a landmark", "Bypass blocks").
  • Keyboard users have to tab through the header, the menu and the command bar on every page.
  • Search engines and AI agents that read the HTML cannot tell the content from the navigation around it. A page of a large publisher uses <main>, <header>, <footer>, <nav>, <article> and <time> throughout.

Expected

Without changing the themes (existing themes keep their divs):

  • #header gets role="banner", the content (#page, or #main when a theme has no #page) gets role="main" and #footer gets role="contentinfo", unless the theme already has such an element or role.
  • The first element of <body> is a link "Skip to content" to that main region, visible only when it has the keyboard focus.
Ngôn ngữ chính
JavaScript
Star
5
Fork
9
Merge trung bình
18 giờ 49 phút
Pull request đã merge (30 ngày)
13

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của PlanBCode/hypha

Tất cả issue của PlanBCode/hypha

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.