nos icon indicating copy to clipboard operation
nos copied to clipboard

[UX] Design a state for the copy link having worked

Open setch-l opened this issue 1 year ago • 1 comments

In onboarding users to Nos, multiple people have indicated that the Copy button for the Private Key on settings has no indication that the link has been copied.

AC -

  • Design a ux affordance to let users know they have copied their private key
  • If possible make this affordance work across the app for these types of buttons.

setch-l avatar May 13 '24 22:05 setch-l

Design

Here's a link to these designs on Figma.

I improved the interaction with the Copy button by adding an icon to the default state and generating a new label for the tapped/clicked state.

Image

Current button

The Copy button looks like this:

Image

Default state

I added an icon to the default state, which now looks lie this:

Image

Tapped/Clicked state

A longer label in the default state gives us more room for a longer "Copied!" label on this state:

Image

Haptics

On button press, a Selection haptic feedback is triggered as detailed in Apple's HIG: https://developer.apple.com/design/human-interface-guidelines/playing-haptics#Selection

Button width

The button must keep its same width between both states. On button press, the copy icon is hidden and the text label is centered for the next state. Image

Copy icon

Here's the SVG file for the copy icon:

Image

Chardot avatar May 15 '24 18:05 Chardot