vuejs/docs

aria-labelledby example with id and components

Fechada

#1.510 aberto em 10 de fev. de 2022

 (1 comentário) (0 reação) (0 responsável)Vue (5.043 forks)user submission
good first issue

Métricas do repositório

Stars
 (3.232 estrelas)
Métricas de merge de PR
 (Mesclagem média 54d 19h) (13 fundiu PRs em 30d)

Description

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.

Guia do colaborador