File tree Expand file tree Collapse file tree 3 files changed +22
-3
lines changed Expand file tree Collapse file tree 3 files changed +22
-3
lines changed Original file line number Diff line number Diff line change @@ -102,6 +102,9 @@ export class ComfyButton implements ComfyComponent<HTMLElement> {
102
102
this . element . removeAttribute ( 'title' )
103
103
}
104
104
} )
105
+ if ( tooltip !== undefined ) {
106
+ this . element . setAttribute ( 'aria-label' , tooltip )
107
+ }
105
108
this . classList = prop ( this , 'classList' , classList , this . updateClasses )
106
109
this . hidden = prop ( this , 'hidden' , false , this . updateClasses )
107
110
this . enabled = prop ( this , 'enabled' , enabled , ( ) => {
Original file line number Diff line number Diff line change @@ -29,8 +29,21 @@ export class ComfySplitButton {
29
29
this . element = $el (
30
30
'div.comfyui-split-button' + ( mode === 'hover' ? '.hover' : '' ) ,
31
31
[
32
- $el ( 'div.comfyui-split-primary' , primary . element ) ,
33
- $el ( 'div.comfyui-split-arrow' , this . arrow . element )
32
+ $el (
33
+ 'div.comfyui-split-primary' ,
34
+ {
35
+ ariaLabel : 'Queue current workflow'
36
+ } ,
37
+ primary . element
38
+ ) ,
39
+ $el (
40
+ 'div.comfyui-split-arrow' ,
41
+ {
42
+ ariaLabel : 'Open extra opens' ,
43
+ ariaHasPopup : 'true'
44
+ } ,
45
+ this . arrow . element
46
+ )
34
47
]
35
48
)
36
49
this . popup = new ComfyPopup ( {
Original file line number Diff line number Diff line change @@ -47,7 +47,8 @@ export class ComfyWorkflowsMenu {
47
47
this . buttonProgress
48
48
] ) ,
49
49
icon : 'chevron-down' ,
50
- classList
50
+ classList,
51
+ tooltip : 'Click to open workflows menu'
51
52
} )
52
53
53
54
this . element . append ( this . button . element )
@@ -85,6 +86,7 @@ export class ComfyWorkflowsMenu {
85
86
const active = this . app . workflowManager . activeWorkflow
86
87
this . button . tooltip = active . path
87
88
this . workflowLabel . textContent = active . name
89
+ this . workflowLabel . ariaLabel = `Active workflow: ${ active . name } `
88
90
this . unsaved = active . unsaved
89
91
90
92
if ( this . #first) {
@@ -523,6 +525,7 @@ export class ComfyWorkflowsContent {
523
525
$el ( 'i.mdi.mdi-18px.mdi-magnify' ) ,
524
526
$el ( 'input' , {
525
527
placeholder : 'Search' ,
528
+ role : 'search' ,
526
529
value : this . filterText ?? '' ,
527
530
oninput : ( e : InputEvent ) => {
528
531
this . filterText = e . target [ 'value' ] ?. trim ( )
You can’t perform that action at this time.
0 commit comments