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: Level links are now links #1030

Merged
merged 2 commits into from
Oct 20, 2022
Merged

Accessibility: Level links are now links #1030

merged 2 commits into from
Oct 20, 2022

Conversation

ulyssear
Copy link
Contributor

Part of issue #960

Replaced div elements to links with "#" as href value.
I checked on my side, no problem has been created with this modification.

@netlify
Copy link

netlify bot commented Oct 19, 2022

Deploy Preview for xenodochial-hugle-b9ec84 ready!

Name Link
🔨 Latest commit fbbd04c
🔍 Latest deploy log https://app.netlify.com/sites/xenodochial-hugle-b9ec84/deploys/63516ac0319ead0009e144a6
😎 Deploy Preview https://deploy-preview-1030--xenodochial-hugle-b9ec84.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@ulyssear ulyssear mentioned this pull request Oct 19, 2022
11 tasks
@pcottle
Copy link
Owner

pcottle commented Oct 20, 2022

Alright I tested as well and looks like everything is functional. I'm trying to be a bit more cautious/safe with these accessibility PRs given that some browsers didn't support the other ones, but anchor tags are pretty standard.

The only weird thing is that you can middle-click the level links now, and it opens up a new tab with just the #:
https://deploy-preview-1030--xenodochial-hugle-b9ec84.netlify.app/#

thoughts on that? I actually think it would be awesome if we could customize the link target to be a command that launches just that level, like so:
https://learngitbranching.js.org/?NODEMO&command=level%20intro3

@ulyssear
Copy link
Contributor Author

The only weird thing is that you can middle-click the level links now, and it opens up a new tab with just the #:
https://deploy-preview-1030--xenodochial-hugle-b9ec84.netlify.app/#

Oh, it's true the # does not prevent new tabs to be opened, the value javascript:void(0) can be set instead.

thoughts on that? I actually think it would be awesome if we could customize the link target to be a command that launches just that level, like so:
https://learngitbranching.js.org/?NODEMO&command=level%20intro3

I like the idea, but we have to find something to prevent the page from loading just to run commands if the user is already on learngitbranching. I think we can create a new issue to talk about this.

@pcottle
Copy link
Owner

pcottle commented Oct 20, 2022

Ok cool, could we switch to the JavaScript void then? Just so the new tab behavior isn't rough around the edges

@pcottle
Copy link
Owner

pcottle commented Oct 20, 2022

works great! thanks a bunch

@pcottle pcottle merged commit 34accac into pcottle:main Oct 20, 2022
@pcottle pcottle mentioned this pull request Oct 21, 2022
This pull request was closed.
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.

2 participants