fluentui icon indicating copy to clipboard operation
fluentui copied to clipboard

[Bug]: tabindex not propagated for Link control

Open tahoon-ms opened this issue 3 years ago • 0 comments

Library

React Components / v9 (@fluentui/react-components)

System Info

Same as CodeSandbox examples on Fluent v9 page

Are you reporting Accessibility issue?

no

Reproduction

https://codesandbox.io/s/broken-snow-uybukv?file=/example.tsx

Bug Description

Actual Behavior

Set tabIndex={-1} on Link. Rendered tabindex property on corresponding HTML element is 0.

Expected Behavior

Rendered tabindex property should be -1.

The usage scenario is to hide the link from screen readers but show it to visual users. This is usually done by setting tabindex=-1 and aria-hidden=true.

Logs

No response

Requested priority

Normal

Products/sites affected

Microsoft Power Apps canvas apps

Are you willing to submit a PR to fix?

yes

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.

tahoon-ms avatar Jan 12 '23 09:01 tahoon-ms