-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Closed
Labels
Description
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
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- The provided reproduction is a minimal reproducible example of the bug.
Reactions are currently unavailable
