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"

贡献者指南