add aria labels on vue node widgets (#6032)

## Summary

Adds aria labels to buttons and widgets without pre-existing text
labels.

┆Issue is synchronized with this [Notion
page](https://www.notion.so/PR-6032-add-aria-labels-on-vue-node-widgets-28a6d73d36508198a1c0ef7098ad24e8)
by [Unito](https://www.unito.io)
This commit is contained in:
Christian Byrne
2025-10-12 17:44:03 -07:00
committed by GitHub
parent 01b4ad0dbb
commit 0497421349
12 changed files with 31 additions and 2 deletions

View File

@@ -3,7 +3,12 @@
<label v-if="widget.name" class="text-sm opacity-80">{{
widget.name
}}</label>
<Button v-bind="filteredProps" size="small" @click="handleClick" />
<Button
v-bind="filteredProps"
:aria-label="widget.name || widget.label"
size="small"
@click="handleClick"
/>
</div>
</template>