Library
React Components / v9 (@fluentui/react-components)
System Info
System:
OS: Windows 10 10.0.22621
CPU: (12) x64 Intel(R) Xeon(R) E-2176M CPU @ 2.70GHz
Memory: 12.13 GB / 31.74 GB
Browsers:
Chrome: 105.0.5195.127
Edge: Spartan (44.22621.521.0), Chromium (105.0.1343.33), ChromiumDev (107.0.1379.1)
Internet Explorer: 11.0.22621.1
Are you reporting Accessibility issue?
yes
Reproduction
https://codesandbox.io/s/patient-surf-t1xmq4
Bug Description
Actual Behavior
when button has context menu prop and has no menu then there is aria attribute "aria-haspopup=menu"

Expected Behavior
There should not to be aria attribute "aria-haspopup=menu" when button has only context menu available.
Maybe there can be some case button would have both menus available(menu and contextMenu) in this case I can imagine "aria-haspopup=menu" as valid attribute.
Logs
No response
Requested priority
Normal
Products/sites affected
No response
Are you willing to submit a PR to fix?
no
Validations
Library
React Components / v9 (@fluentui/react-components)
System Info
System: OS: Windows 10 10.0.22621 CPU: (12) x64 Intel(R) Xeon(R) E-2176M CPU @ 2.70GHz Memory: 12.13 GB / 31.74 GB Browsers: Chrome: 105.0.5195.127 Edge: Spartan (44.22621.521.0), Chromium (105.0.1343.33), ChromiumDev (107.0.1379.1) Internet Explorer: 11.0.22621.1Are you reporting Accessibility issue?
yes
Reproduction
https://codesandbox.io/s/patient-surf-t1xmq4
Bug Description
Actual Behavior
when button has context menu prop and has no menu then there is aria attribute "aria-haspopup=menu"
Expected Behavior
There should not to be aria attribute "aria-haspopup=menu" when button has only context menu available.
Maybe there can be some case button would have both menus available(menu and contextMenu) in this case I can imagine "aria-haspopup=menu" as valid attribute.
Logs
No response
Requested priority
Normal
Products/sites affected
No response
Are you willing to submit a PR to fix?
no
Validations