-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Add screenreader info about links in tabs for enabling navigation with keyboard shortcuts #4996
Conversation
…h keyboard shortcuts
Hey @dawidpieper, I'll schedule this for 1.10.1 :) Have some other things going into that (as mentioned in the release notes). I'll try to get that out in early May, or at least that's the current goal. If something more urgent comes in earlier, I'll see I include this with it! A question, giving the link itself the |
@foosel It's also how I hoped it works, but now it turned out that screenreaders cannot get that it's a link. When we make link with As a result, when I try to navigate with keyboard or rotor shortcuts, the focus just ignores tabs. I can obviously focus them with arrow keys, but to be honest it's wasting a lot of time as I must get there over all tab's content. That's why the keyboard shortcuts were implemented in screenreaders. On the other hand, when we do not assign So the only option I can see to preserve both information is to hide link inside a div. :( |
Sorry, I was to much multitasking and didn't notice that your change exactly fixed what I suggested to do. My fault for doing too much at the same time, sorry for the confusion 😅 I'll look into merging this then ASAP and also backporting it to Oh, as I just cross checked that in the current code... would putting the |
Sorry, now it's me who didn't notice the easiest solution... :) |
🙌 Teamwork 😊 |
* Add screenreader info about links in tabs for enabling navigation with keyboard shortcuts * Move role attribute to the list item
Now also backported for inclusion in 1.10.1. |
What does this PR do and why is it necessary?
In PR #4928 many screenreader related improvements were implemented.
One of them was, as proposed by WCAG, setting correct aria roles and labels.
Unfortunately, after final release of 1.10.0 I found out that this behavior, while with accordance with guidelines, makes it a lot harder to navigate between tabs as they are no longer seen as links by screenreaders. I used to navigate them using keyboard shortcuts or rotor on Mac, but now it is out of question.
This PR tries to make a workaround that allows for such navigation, while being compatible with WCAG and giving proper screenreader feedback.
How was it tested? How can it be tested by the reviewer?
Tested on Windows, Mac, iOS.
Any background context you want to provide?
N/A
What are the relevant tickets if any?
N/A
Screenshots (if appropriate)
N/A
Further notes
I'd like to thank you for your interest in making OctoPrint accessible software, recently many projects (also from the 3d printing world) ignore or assign low priority to a11y-related PRs.
I would be very grateful if that fix could be implemented in maintenance branch (version 1.10.1), as the issue (sorry for not noticing it previously) is quite problematic.