vuetifyjs/vuetify

[Feature Request] Add Aria-labels to VTreeview Buttons

Fechada

#21.585 aberto em 17 de jun. de 2025

 (4 comentários) (1 reação) (0 responsável)TypeScript (7.139 forks)batch import
C: VTreeviewT: enhancementa11ygood first issue

Métricas do repositório

Stars
 (40.995 estrelas)
Métricas de merge de PR
 (Mesclagem média 59d 10h) (8 fundiu PRs em 30d)

Description

Problem to solve

Currently when using a VTreeview component the Expand/collapse button for each node of the Tree simply read by a Screen Reader as "Button" without any context as to what it does when activated.

Proposed solution

Add an aria label based on the current state and node label.

So if you have a tree like:

> Red
V Green
   > Orange

The buttons would read as "Expand Red", "Collapse Green", "Expand Orange"

Guia do colaborador