Closed mietcls closed 1 year ago
Notes:
I also like the github one better
There are limitations in the current UI components we have that make it impossible to create it the way GitHub did it in a decent way (re: table issues etc). I could spend more time in creating it like that. This was the quickest and most durable solution for now that works in all contexts where the button is used.
Story
Add copy link button for public shareable links.
Context
During user testing it was clear people had trouble with copying the shareable link at once. We need to make it more accessible.
Success criteria
Implementation suggestion
Overview: http://localhost:3000/deliver/spaces/ibl.html
Detail: http://localhost:3000/deliver/spaces/folders/folder-name.html
Button
We would employ one big button that has all the information, which is also readable to screen readers.
Overview page
Detail page
Success
Overview page
State changes:
btn-outline-secondary
becomesbtn-outline-success
<i class="if if-copy text-primary"></i>
becomes<i class="if if-check text-success"></I>
<span class="sr-only">Copy public shareable link</span>
becomes<span aria-live="polite">Copied link</span>
Detail page
The alternative state is hidden in the comments.
State changes:
<i class="if if-copy text-primary"></i>
becomes<i class="if if-check text-success"></i>
<span class="btn-text text-primary">Copy public shareable link</span>
becomes<span class="btn-text text-success" aria-live="polite">Copied link</span>
TODO
Figure out aria live button state changing (Miet)