Improve heading semantics

Đang mở
#181 4 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 8 ngày

@stephaniehobson đang làm issue này rồi.

Từ ngày 4/11/2026.

  • #475 của @stephaniehobson — đang mở

Đánh giá

Độ khó
1/5
Thời gian dự kiến
Dưới một giờ
Mức phù hợp với người mới
50/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
javascript
Lĩnh vực
accessibility, frontend

Hướng nghiên cứu

Open src/components/views/MetricOverview.js at the referenced heading and compare it with the surrounding heading structure shown in the issue. Change the heading level only if needed to remove the h3-to-h5 jump, then verify the metrics page no longer triggers the aXe heading-level warning.

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

Mô tả

to do

aXe is telling me on https://metrics.mozilla.com/protected/usage-report-demo/dashboard/user-activity that "Heading levels should only increase by one". I think this is because we have an <h3> 👉 <h5>, but not an intermediate <h4> tag.

<h3 id="metrics-heading">Metrics</h3>
...
<h5 class="striped"><span>Yearly Active Users</span></h5>

I reckon we should possibly bump this from an H5 to an H4:

https://github.com/mozilla/ensemble/blob/9ebbb3dba9c0b82a674b3482a7288c46b20de0c2/src/components/views/MetricOverview.js#L91

Ngôn ngữ chính
JavaScript
Star
21
Fork
7
Merge trung bình
7 ngày 6 giờ
Pull request đã merge (30 ngày)
5

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

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 mozilla/ensemble

Tất cả issue của mozilla/ensemble

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.