vuejs/docs

aria-labelledby example with id and components

已關閉

#1,510 建立於 2022年2月10日

 (1 則留言) (0 個反應) (0 位負責人)Vue (5,042 個分叉)user submission
good first issue

倉庫指標

星標
 (3,232 顆星)
PR 合併指標
 (平均合併 54天 19小時) (30 天內合併 13 個 PR)

描述

The documentation at https://v3.vuejs.org/guide/a11y-semantics.html#labels shows using aria-labelledby however with Vue Components that breaks down as id is global within the page rather than local in scope to your component. I feel the documentation could do this a more vue way allowing components to be re-used multiple times within the page while still doing aria-labelledby.

For example something like https://github.com/vuejs/vue/issues/5886#issuecomment-308607131 works well.

貢獻者指南