vuejs/docs

aria-labelledby example with id and components

クローズ

#1,510 opened on 2022/02/10

 (1 件のコメント) (0 件のリアクション) (0 人の担当者)Vue (5,040 件のフォーク)user submission
good first issue

Repository metrics

Stars
 (3,231 個のスター)
PR merge metrics
 (平均マージ 54d 19h) (30d で 13 merged PRs)

説明

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.

コントリビューターガイド