Add checkbox aria role to toggleable commands#149
Add checkbox aria role to toggleable commands#149blink1073 merged 3 commits intojupyterlab:masterfrom
Conversation
|
Thanks for working on this! Is it still WIP? |
|
@manfromjupyter If you get a chance would you mind trying this one as well? I'm not able to get it working on my screen reader but I'm not very experienced with screen readers, so I might be missing something. I see the role and the aria-checked labels as attributes when I inspect in the browser. |
|
@marthacryan absolutely. Still triple checking the other one, but after will jump on this one. How can I test? Same binder link just change the branch name? New to binder (but think it's super cool - thank you for setting that up.. makes it so easy to test things). |
|
@manfromjupyter Oh right I forgot this is in Lumino so it's a little more complicated to test. I think last accessibility meeting we were talking with @tonyfast about setting up the ability to create binders that open JupyterLab with changes made to Lumino but as far as I know we don't have anything like that working yet. This section of the documentation https://jupyterlab.readthedocs.io/en/latest/developer/contributing.html#linking-unlinking-packages-to-jupyterlab explains how to set it up, but if you don't have the dev env set up it might be more work than it's worth (but if you are willing to do that, go ahead!). I do have a VM with NVDA set up and I could give testing it a second go, if you advise on how I should be doing it. |
|
@marthacryan my time was a little limited so unfortunately wasn't able to get a dev environment up and running for this. Was a little confused by step 2: "Register a link to the modified external package". Does that mean lumino and if so what directory would that be in? Anyway I can try again on Tuesday if not, I can always test it once it hits JupyterLab or pre-release as there will undoubtedly be other things we can improve also in that general region, or perhaps, for just now until we/I find a more long term solution, could I have you just take a screenshot of the Inspect element view of the element when it is "checked" and then when it's not. If the latter, I can reconstruct it super quick and could then get back to you by tonight potentially. |
|
@manfromjupyter Oh sorry yes the external package is a lumino package, but you only need to do the one that I'm changing here, which is Here's a screenshot though, all of the |
|
@marthacryan, sorry for the delay. Thank you for the history lesson and for the screenshots. Checked this out and it's perfect. Will read for both states as follows for screenreaders:
(if I'm understanding correctly what elements can be checked here). Anyway, nice work. All good on my end. |
|
@blink1073 Looks like the label works, so if the code looks okay then it should be ready to be merged. (If anyone else wants to try locally and make sure they see |
|
|


Follow-up to #129 to add the aria role of checkbox and the checked state to toggleable commands in the command palette.