fluentui icon indicating copy to clipboard operation
fluentui copied to clipboard

[Bug]: V9 : Attribute aria-haspopup="menu" is available when button has only context menu available

Open kolaps33 opened this issue 3 years ago • 0 comments

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"

image

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

  • [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • [X] The provided reproduction is a minimal reproducible example of the bug.

kolaps33 avatar Sep 22 '22 08:09 kolaps33