Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Copy to clipboard with button instead of link #35240

Merged
merged 1 commit into from
Nov 26, 2022
Merged

Conversation

Pytal
Copy link
Member

@Pytal Pytal commented Nov 18, 2022

Before After
image image

@Pytal
Copy link
Member Author

Pytal commented Nov 18, 2022

/backport to stable25

Copy link
Member

@PVince81 PVince81 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@Pytal
Copy link
Member Author

Pytal commented Nov 19, 2022

/rebase

@Pytal
Copy link
Member Author

Pytal commented Nov 21, 2022

  • Fix legacy js failures

@Pytal Pytal added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Nov 23, 2022
Signed-off-by: Christopher Ng <chrng8@gmail.com>
@skjnldsv
Copy link
Member

skjnldsv commented Nov 26, 2022

Noooooooo
There was multiple good reasons :)

  • If the copy fails for browser security reason, you cannot get the link.
  • The fact that it was a link also allowed you to right/middle click and copy or open in a new tab.
  • It also make screen readers and accessibility tools understand the data.

This is not a simple button, the automated copy link is secondary. That is why most UI shows an input AND a button to copy the content. We don't have enough space for that, so a link is the least we can do :)

It should be reverted imho

@skjnldsv
Copy link
Member

On a subsidiary note, it also prevent us from doing testing and retrieving the link.
Copy link is very unreliable on automated e2e testing

Viewer is failing because of this PR, that's how I found it

@Pytal
Copy link
Member Author

Pytal commented Nov 29, 2022

Good points @skjnldsv

Will confirm with the a11y reviewer as this was a specific request made during the audit which we would fail if not done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4. to release Ready to be released and/or waiting for tests to finish accessibility feature: sharing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants