vuetifyjs/vuetify

[Feature Request] Add Aria-labels to VTreeview Buttons

已關閉

#21,585 建立於 2025年6月17日

 (4 則留言) (1 個反應) (0 位負責人)TypeScript (7,139 個分叉)batch import
C: VTreeviewT: enhancementa11ygood first issue

倉庫指標

星標
 (40,995 顆星)
PR 合併指標
 (平均合併 59天 10小時) (30 天內合併 8 個 PR)

描述

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"

貢獻者指南