vuejs/docs

aria-labelledby example with id and components

已关闭

#1,510 创建于 2022年2月10日

 (1 条评论) (0 个反应) (0 位负责人)Vue (5,040 个派生)user submission
good first issue

仓库指标

星标
 (3,230 个星标)
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.

贡献者指南