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

Remove target from mailto: link #3023

Closed

Conversation

jon-kirwan
Copy link
Contributor

What

Remove target from mailto: link in attachment component.

https://trello.com/c/NF2f49BS/1575-email-links-for-attachments-dont-point-out-they-open-in-a-new-window

Why

When an attachment has an email address for contacting about an accessible format, the email link opens in a new window without informing the user. This can be disorientating for screen reader users who may not know that a window has opened.

Example URL:

@jon-kirwan jon-kirwan changed the title Remove target from mailto link Remove target from mailto: link Oct 17, 2022
@govuk-ci govuk-ci temporarily deployed to components-gem-pr-3023 October 17, 2022 14:30 Inactive
@jon-kirwan jon-kirwan self-assigned this Oct 17, 2022
@jon-kirwan jon-kirwan force-pushed the email-links-for-attachments-open-in-a-new-window branch from 9792278 to 7004c21 Compare October 17, 2022 14:36
@govuk-ci govuk-ci temporarily deployed to components-gem-pr-3023 October 17, 2022 14:37 Inactive
@jon-kirwan jon-kirwan force-pushed the email-links-for-attachments-open-in-a-new-window branch from 7004c21 to c4ee7f9 Compare October 17, 2022 14:37
@govuk-ci govuk-ci temporarily deployed to components-gem-pr-3023 October 17, 2022 14:37 Inactive
@jon-kirwan jon-kirwan force-pushed the email-links-for-attachments-open-in-a-new-window branch from c4ee7f9 to 8ed9d26 Compare October 17, 2022 14:37
@govuk-ci govuk-ci temporarily deployed to components-gem-pr-3023 October 17, 2022 14:38 Inactive
@jon-kirwan jon-kirwan force-pushed the email-links-for-attachments-open-in-a-new-window branch from 8ed9d26 to 9e3c690 Compare October 17, 2022 14:41
@govuk-ci govuk-ci temporarily deployed to components-gem-pr-3023 October 17, 2022 14:41 Inactive
@jon-kirwan jon-kirwan changed the title Remove target from mailto: link Remove target from mailto: link Oct 17, 2022
Copy link
Contributor

@maxgds maxgds left a comment

Choose a reason for hiding this comment

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

Happy to approve this as an improvement but I'm not entirely sure it solves the issue. I'm not clear on what the interaction will be for the user when a new application is launched but I suspect it might be good to indicate that this is going to happen. I feel this needs research though, mailto links are a bit questionable generally.

@jon-kirwan jon-kirwan linked an issue Oct 18, 2022 that may be closed by this pull request
@jon-kirwan jon-kirwan force-pushed the email-links-for-attachments-open-in-a-new-window branch from 9e3c690 to fd97b45 Compare October 26, 2022 17:42
@govuk-ci govuk-ci temporarily deployed to components-gem-pr-3023 October 26, 2022 17:42 Inactive
@jon-kirwan jon-kirwan force-pushed the email-links-for-attachments-open-in-a-new-window branch from fd97b45 to 11600ea Compare October 27, 2022 11:02
@govuk-ci govuk-ci temporarily deployed to components-gem-pr-3023 October 27, 2022 11:02 Inactive
@jon-kirwan
Copy link
Contributor Author

I'm closing this pull request pending further discussion to decide on best practice for this issue. Options to explore include:

  • Don't use :mailto links, let users copy/paste an email address into their client of choice
  • Use standard :mailto links that let the browser do its thing - this will usually be to call out to the operating system and open an email client
  • Use :mailto links that open a new browser tab/window

See find and view: :mailto link behaviour and email links for attachments don't point out they open in a new window for updates.

@jon-kirwan jon-kirwan closed this Oct 27, 2022
@jon-kirwan jon-kirwan deleted the email-links-for-attachments-open-in-a-new-window branch October 27, 2022 11:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Email links for attachments don't point out they open in a new window
3 participants