Skip to content

[Bug]: Unable to copy colors from the v9 documentation #23998

Closed

Description

@petdud

Library

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

System Info

All browsers and OS

Are you reporting Accessibility issue?

yes

Reproduction

https://react.fluentui.dev/?path=/docs/theme-color--page

Bug Description

In the Color section of the v9 documentation: https://react.fluentui.dev/?path=/docs/theme-color--page

When I press key Cmd/Ctrl + C to copy a selected color token or HEX color, it will show "Copied" indicator on the bottom of the section (next to 'Show code'), but it will not copy the selected text of the color, hence unable to paste.

The same goes when I right-click on the color and Copy the selected text - it will not be copied.

Repro steps:

  1. Go to https://react.fluentui.dev/?path=/docs/theme-color--page
  2. Select text from the color palette (HEX or token)
  3. Right-click -> copy or Cmd/Ctrl + C

Actual Behavior

The text is not copied and paste does not work or paste previous copied things.

Expected Behavior

Paste (Cmd/Ctrl + V) will paste the text

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: Fixed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions