shuding/nextra

a11y keyboard navigation and screen reader improvements

Open

#3,721 建立於 2024年11月20日

在 GitHub 查看
 (6 留言) (0 反應) (0 負責人)TypeScript (1,413 fork)user submission
enhancementhelp wanted

倉庫指標

Star
 (13,807 star)
PR 合併指標
 (平均合併 6天 16小時) (30 天內合併 3 個 PR)

描述

Some accessibility fixes I'm planning on patching when I've got some time, jotting it down as a start...

  • Skip to content for keyboard navigation (something like GDS) WONT FIX : this is avaliable in v4
  • Missing aria-label
    • Search box input
    • Breadcrumb (follow NHS / APG) -- also change div to nav
  • SVGs add role="presentation" when pre-described by other content
    • Top nav grouped dropdown, chevron icon
    • Light/dark mode icon
    • Sidebar collapse icon (more investigation needed to see if this is actually required)
  • ARIA hidden element must not be focusable or contain focusable elements
    • "Scroll to top"

貢獻者指南