vuetifyjs/vuetify

[Feature Request] Add Aria-labels to VTreeview Buttons

Chiusa

#21.585 aperta il 17 giu 2025

 (4 commenti) (1 reazione) (0 assegnatari)TypeScript (7139 fork)batch import
C: VTreeviewT: enhancementa11ygood first issue

Metriche repository

Star
 (40.995 stelle)
Metriche merge PR
 (Merge medio 59g 10h) (8 PR mergiate in 30 g)

Descrizione

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"

Guida contributor