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 for How to Cite #4236

Open
StephDriver opened this issue Jun 3, 2024 · 1 comment
Open

Copy to clipboard for How to Cite #4236

StephDriver opened this issue Jun 3, 2024 · 1 comment
Labels
a11y Issues that relate to acessibility new feature A new thing that doesn't exist yet VPAT Issue prioritised for VPAT improvements.

Comments

@StephDriver
Copy link
Contributor

StephDriver commented Jun 3, 2024

How to cite options are displayed with an expectation that the user will likely want to use the text elsewhere - i.e will want to copy it.

There should be a 'copy to clipboard' button to make this process more accessible. Currently copying relies on the user to be able to select the appropriate text. This can quite time-consuming and awkward for those relying on assistive technologies, where one might have to navigate to the start and end, checking each is correct.

It is commonplace for there to be 'copy to clipboard' buttons on websites for content expected to be copied to address this.

There is a DOI link included - and we are discussing whether these should be made contextual (#4221) - in regards to copying, also consider whether it is the contextual link or the DOI itself which should be copied - or whether both options are needed.

@StephDriver StephDriver added new feature A new thing that doesn't exist yet a11y Issues that relate to acessibility labels Jun 3, 2024
@joemull
Copy link
Member

joemull commented Jun 7, 2024

In discussion we decided we do want this copy button, and we think the text sent to the clipboard should contain the full URL of the DOI with an anchor tag.

Crossref provides some guidelines on this that suggest forming the link like this:

<a href="https://doi.org/10.5555/12345678" aria-label="DOI for Toward a Unified Theory of High-Energy Metaphysics: Silly String Theory">https://doi.org/10.5555/12345678</a>

@StephDriver StephDriver added the VPAT Issue prioritised for VPAT improvements. label Jun 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a11y Issues that relate to acessibility new feature A new thing that doesn't exist yet VPAT Issue prioritised for VPAT improvements.
Projects
Status: Sent to Dev
Development

No branches or pull requests

2 participants