File tree Expand file tree Collapse file tree 6 files changed +6
-6
lines changed
@headlessui-react/src/components
@headlessui-vue/src/components Expand file tree Collapse file tree 6 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -1027,7 +1027,7 @@ let Button = forwardRefWithAs(function Button<TTag extends ElementType = typeof
1027
1027
id,
1028
1028
type : useResolveButtonType ( props , data . buttonRef ) ,
1029
1029
tabIndex : - 1 ,
1030
- 'aria-haspopup' : true ,
1030
+ 'aria-haspopup' : 'listbox' ,
1031
1031
'aria-controls' : data . optionsRef . current ?. id ,
1032
1032
'aria-expanded' : data . disabled ? undefined : data . comboboxState === ComboboxState . Open ,
1033
1033
'aria-labelledby' : labelledby ,
Original file line number Diff line number Diff line change @@ -664,7 +664,7 @@ let Button = forwardRefWithAs(function Button<TTag extends ElementType = typeof
664
664
ref : buttonRef ,
665
665
id,
666
666
type : useResolveButtonType ( props , data . buttonRef ) ,
667
- 'aria-haspopup' : true ,
667
+ 'aria-haspopup' : 'listbox' ,
668
668
'aria-controls' : data . optionsRef . current ?. id ,
669
669
'aria-expanded' : data . disabled ? undefined : data . listboxState === ListboxStates . Open ,
670
670
'aria-labelledby' : labelledby ,
Original file line number Diff line number Diff line change @@ -371,7 +371,7 @@ let Button = forwardRefWithAs(function Button<TTag extends ElementType = typeof
371
371
ref : buttonRef ,
372
372
id,
373
373
type : useResolveButtonType ( props , state . buttonRef ) ,
374
- 'aria-haspopup' : true ,
374
+ 'aria-haspopup' : 'menu' ,
375
375
'aria-controls' : state . itemsRef . current ?. id ,
376
376
'aria-expanded' : props . disabled ? undefined : state . menuState === MenuStates . Open ,
377
377
onKeyDown : handleKeyDown ,
Original file line number Diff line number Diff line change @@ -616,7 +616,7 @@ export let ComboboxButton = defineComponent({
616
616
id,
617
617
type : type . value ,
618
618
tabindex : '-1' ,
619
- 'aria-haspopup' : true ,
619
+ 'aria-haspopup' : 'listbox' ,
620
620
'aria-controls' : dom ( api . optionsRef ) ?. id ,
621
621
'aria-expanded' : api . disabled . value
622
622
? undefined
Original file line number Diff line number Diff line change @@ -527,7 +527,7 @@ export let ListboxButton = defineComponent({
527
527
ref : api . buttonRef ,
528
528
id,
529
529
type : type . value ,
530
- 'aria-haspopup' : true ,
530
+ 'aria-haspopup' : 'listbox' ,
531
531
'aria-controls' : dom ( api . optionsRef ) ?. id ,
532
532
'aria-expanded' : api . disabled . value
533
533
? undefined
Original file line number Diff line number Diff line change @@ -317,7 +317,7 @@ export let MenuButton = defineComponent({
317
317
ref : api . buttonRef ,
318
318
id,
319
319
type : type . value ,
320
- 'aria-haspopup' : true ,
320
+ 'aria-haspopup' : 'menu' ,
321
321
'aria-controls' : dom ( api . itemsRef ) ?. id ,
322
322
'aria-expanded' : props . disabled ? undefined : api . menuState . value === MenuStates . Open ,
323
323
onKeydown : handleKeyDown ,
You can’t perform that action at this time.
0 commit comments