-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Closed
Labels
[Feature] Component SystemWordPress component systemWordPress component system[Package] Components/packages/components/packages/components[Status] In ProgressTracking issues with work in progressTracking issues with work in progress[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended
Description
Part of #34284
Why
The recently added g2 ColorPicker
has a minor UX issue when copying the color value to the clipboard (first reported in #33714 (comment)):
- User clicks on the color, value is copied in the clipboard. The tooltip changes from "Copy" to "Copied!"
- User interacts with other parts of the UI, maybe copies another string of text
- User remembers that they need the color value, and so they hover over the color string again. But the tooltip keeps saying "Copied!", instead of "Copy"
What
To solve this issue, we could simply introduce a timer which resets the UI and shows again the "copy" button after a certain amount of time has passed (e.g. 3 seconds)
A/C
- The UI of the "Copy" button resets (allowing the user to click the button again) after 3 seconds from the previous button click/press
- The "Copy!" button keeps copying the value to the clipboard as before
Metadata
Metadata
Assignees
Labels
[Feature] Component SystemWordPress component systemWordPress component system[Package] Components/packages/components/packages/components[Status] In ProgressTracking issues with work in progressTracking issues with work in progress[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended