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

Accessibility issue: links "click here" #5431

Closed
maro-21 opened this issue Dec 20, 2024 · 4 comments · Fixed by #5447
Closed

Accessibility issue: links "click here" #5431

maro-21 opened this issue Dec 20, 2024 · 4 comments · Fixed by #5447

Comments

@maro-21
Copy link

maro-21 commented Dec 20, 2024

Copy from Translatewiki:

The current message text is:

  • Confirmations.confirm.resend html: If you need us to resend the confirmation email, %{reconfirm_link}.
  • Confirmations.confirm.click here: click here

For accessibility, “click here” should never be a link text, because the link text should always describe the link. A more accessible version of these messages would be:

  • Confirmations.confirm.resend html: If needed, we can %{reconfirm_link} to you.
  • Confirmations.confirm.click here: resend the confirmation email

Rationale from the W3C: Many blind people who use screen readers call up a dialog box that has a list of links from the page. They use this list of links to decide where they will go. But if many of the links in that list simply say "click here" or "more" they will be unable to use this feature in their screen reader, which is a core navigation strategy. That's why it's a failure of 2.4.9 to not provide any way of allowing them to know the destination from the link text alone. It is also true for people who tab through links. If all they hear as they tab through the document is "click here, click here, click here etc." they will become confused.

@peach280
Copy link

I have generated a PR to fix this issue. Please review and provide your valuable feedback

@tomhughes
Copy link
Member

In reality nobody should ever see that version of the page - the only way that is ever rendered is if you somehow arrive at the confirm link without a token parameter in the URL which should never happen.

@AntonKhorev
Copy link
Collaborator

I have generated

Generated with what?

@AntonKhorev
Copy link
Collaborator

In reality nobody should ever see that version of the page - the only way that is ever rendered is if you somehow arrive at the confirm link without a token parameter in the URL which should never happen.

It happens after you fill out the signup from and click "Sign Up". We should probably remove redirects/renders from save_new_user in users controller to make it more clear.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants