Improve beta menu nav accessibility (#762)

* Add ARIA labels to beta menu btns without text

* Adjust test locator
This commit is contained in:
bymyself
2024-09-08 17:49:43 -07:00
committed by GitHub
parent 616e295262
commit 21c3883cc7
4 changed files with 28 additions and 5 deletions

View File

@@ -29,8 +29,21 @@ export class ComfySplitButton {
this.element = $el(
'div.comfyui-split-button' + (mode === 'hover' ? '.hover' : ''),
[
$el('div.comfyui-split-primary', primary.element),
$el('div.comfyui-split-arrow', this.arrow.element)
$el(
'div.comfyui-split-primary',
{
ariaLabel: 'Queue current workflow'
},
primary.element
),
$el(
'div.comfyui-split-arrow',
{
ariaLabel: 'Open extra opens',
ariaHasPopup: 'true'
},
this.arrow.element
)
]
)
this.popup = new ComfyPopup({