mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-09 09:30:06 +00:00
Improve beta menu nav accessibility (#762)
* Add ARIA labels to beta menu btns without text * Adjust test locator
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user