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

Fix #3 #12

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Fix #3 #12

wants to merge 1 commit into from

Conversation

ksyro98
Copy link
Contributor

@ksyro98 ksyro98 commented Jan 14, 2025

Added an icon next to links to visually indicate that the item moves into a new page. (Fixes #3)
It looks like that:
Screenshot from 2025-01-14 22-40-03
Screenshot from 2025-01-14 22-39-53

I've also used aria-hidden="true" so that the icon won't be read by a screen reader.

<span aria-hidden="true"><img src="assets/link_arrow.svg" class="link-icon-large"></span>

@melissaegg
Copy link
Owner

melissaegg commented Jan 15, 2025 via email

@ksyro98
Copy link
Contributor Author

ksyro98 commented Jan 17, 2025

@melissaegg oh, for some reason I didn't think that those also open the content in a new tab 🤦
so currently that's not implemented on this PR
we can fix this in two ways:

Arrows in cards
in order to avoid arrows everywhere we could modify the cards a bit
for example:
Group 134

Opening links on the same tab
another option would be to open the content on the same tab (this would save us from having to modify the aria-label of the cards too)
an accessibility expert had told me a while ago (for a different project) that opening content on a new tab should be avoided whenever possible
at the same time, it makes some sense in this use-case since someone might want to search and open multiple resources
I'm ok with going with whatever you or @ashleypeacock think is best

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.

Link does not visually or programatically communicate a new page opens
2 participants