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

#387 Links Section is added #388

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

LaxRaj
Copy link

@LaxRaj LaxRaj commented Jan 5, 2024

Added the Links Section

Link to issue

Closes #387

Checklist before requesting a review

  • I have performed a self-review of my code.
  • Followed the repository's Contributing Guidelines.
  • I ran the app and tested it locally to verify that it works as expected.
  • I have checked my code with an automatic accessibility tool such as Axe Dev Tools or Wave
    and it shows no errors.

Additional Information (Optional)

The data I put in was not thorough as the web-app, So there might be a consistency issue. But it is up to date and defines accessibility issues clearly while using all those target attributes.

Copy link

github-actions bot commented Jan 5, 2024

Hello @LaxRaj, thanks for raising a pull request in this project. The maintainers of this project are volunteers so please be understanding if it takes time before you get a response. We still appreciate your help with creating pull requests!

Copy link
Contributor

@at-the-vr at-the-vr left a comment

Choose a reason for hiding this comment

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

Hey Lakshya 👋 great start with the PR. I see you haven't used any formatter with the changes. I will suggest you to use Prettier Extension (on your preferred editor) and just format LinksTemplate.tsx and push the changes here.

@@ -169,6 +169,38 @@ other places on the web */`}
</li>
</ul>
</TemplateSection>
{/* For issue #387 */}
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think this comment is necessary

Copy link
Author

Choose a reason for hiding this comment

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

Alright removed that! and formatted the LinksTemplate.tsx

Copy link
Member

@EmmaDawsonDev EmmaDawsonDev left a comment

Choose a reason for hiding this comment

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

The purpose of this website is to inform people about accessibility issues and give them examples of how to code in an accessible way.

I know there was no information in the issue (my fault, I was intending to write this section myself and created the issue as a reminder to myself) but I was thinking that this section would discuss the accessibility issues with opening links in new tabs/windows such as this not being the default behaviour of links so expectation is that they open in the same tab/window. By hijacking that expectation it can cause disorientation for people with cognitive problems or screen reader users that can't see the screen etc. It also removes choice for people as it is always possible to right click and open the link in a new window if you choose to but by adding the target removes the choice for those who want it to open in the same tab/window.

However, sometimes you don't have a choice (be that a stubborn designer or PO or some other constraints) so there should be examples of what to do If you must open links in a new tab/window eg. the pros/cons of adding an icon at the end of the link text or (opens in new window) either visibly or hidden.

Also, please remove the yarn.lock file from your PR.

@LaxRaj
Copy link
Author

LaxRaj commented Jan 9, 2024

Requested changes are updated. So far it's good. let me know if there is anything else you want me to work on or change.

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 this pull request may close these issues.

Add section to links page about opening links in new tabs/windows
3 participants