Skip to content

[Bug]: Legends used for Charts have hardcoded role as link which leads to accessibility issue #24692

@kumaras16

Description

@kumaras16

Library

React / v8 (@fluentui/react)

System Info

npx: installed 1 in 3.495s

  System:
    OS: Windows 10 10.0.22000
    CPU: (16) x64 Intel(R) Xeon(R) W-2245 CPU @ 3.90GHz
    Memory: 22.40 GB / 63.60 GB
  Browsers:
    Edge: Spartan (44.22000.120.0), Chromium (104.0.1293.54)
    Internet Explorer: 11.0.22000.120

Are you reporting Accessibility issue?

yes

Reproduction

Bug Description

Actual Behavior

LineChart have legends present at the bottom. In case of Overflow legends are shown as a group with title as {Number} more. role for this html element is hardcoded as link which is an accessibility issue because it's not redirecting to another page.

Expected Behavior

role here should be button as onHover of that button we are showing overflowing legends or it should take role as an parameter

Logs

No response

Requested priority

High

Products/sites affected

Sharepoint admin center

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.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions