a11y: add ARIA attributes to explainer cards and CTA banner

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

Chưa có ai nhận issue này.

Đánh giá

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

Hướng nghiên cứu

Start by reading explainer-cards.tsx and the CTA banner in page.tsx:50-54. Add the specified decorative SVG attributes and give the explainer cards semantic structure with a heading or aria-label; done means both components expose the intended information to assistive technology without adding an unnecessary link label.

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

Mô tả

enhancement

Description

Severity: P3 — Accessibility

Two components lack proper accessibility attributes:

Explainer cards (`explainer-cards.tsx`)
  • No semantic landmark, no heading hierarchy
  • Icon SVGs lack `aria-hidden="true"`
  • Screen readers will announce raw SVG path data
  • Cards are invisible to assistive technology structure
CTA banner (`page.tsx:50-54`)
  • SVG icon has no `aria-hidden` or accessible label
  • The `` link has no `aria-label` beyond its text content (minor — "Get started" text is sufficient)

Suggested fix

  • Add `aria-hidden="true"` to all decorative SVGs
  • Wrap explainer cards in a `` with an appropriate heading or `aria-label`

From self-review findings F11 and F12

Ngôn ngữ chính
TypeScript
Star
1.6k
Fork
202
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

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 CopilotKit/OpenGenerativeUI

Tất cả issue của CopilotKit/OpenGenerativeUI

Issue tương tự

Thêm issue về TypeScript

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.