codemirror / CodeMirror Public
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 for blind and visually impaired screen reader users #4604
Comments
|
I think @marijnh and I are very interested in CodeMirror being accessible and useful to a broad range of people – supporting |
|
The severe issue is that screen readers report the contents of the
editor to be blank and no cursor navigation or reading of the contents
is possible. The only thing that currently works is pressing CTRL+a to
select all to hear the editor contents which is not really useful.
It does sound like making the default contenteditable would be a major
improvement and step in the right direction.
Currently CodeMirror is simply unusable by an unfortunately large number
of people who depend on accessibility.
Hopefully the contenteditable change will be done soon.
…On 2/25/2017 4:09 AM, Adrian Heine né Lang wrote:
I think @marijnh <https://github.com/marijnh> and I are very
interested in CodeMirror being accessible and useful to a broad range
of people – supporting |contentEditable| is part of this
<https://bugzilla.mozilla.org/show_bug.cgi?id=919711> as far as I
know. Without specific funding we will not be able to address broad
suggestions such as this, though. If there are specific, easy-to-solve
issues, we might be able to fix them on the go.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#4604 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/APDp4pASGsBGoRzBtunrmoQQ9jfcQyWLks5rf_3sgaJpZM4MLxEz>.
|
|
@mjanusauskas this won't be done soon - proper a11y support isn't easy (otherwise everyone would do it!), and the github tutorial doesn't come close to covering what CM will need. I've been doing significant work on a related project (and contributed small fixes back into CM) to do this right -- and I can assure you that contentEditable is just the beginning of what's needed. |
|
@schanzer Thank you for the work you have been doing and for contributing back so many more can benefit from your work. While perhaps not easy, it is certain that incorporating accessibility from the beginning of a design is the best solution to avoiding the far more difficult work of trying to add it in later. |
|
Any estimates on roughly how much funding would be required to fund resolution of this issue? |
|
@adrianheine The WordPress project is looking at integrating CodeMirror into core (see https://github.com/WordPress/codemirror-wp). Given that WordPress puts a high importance on accessibility, there must be interest among the community in funding any needed accessibility improvements as well as funding ongoing maintenance. |
I understand that it will take some work, but choosing to do nothing is actively excluding an entire group of people. The accessibility dev community would likely get involved if an effort was identified. |
|
We are aware of the problems and sympathetic to addressing them. The current architecture of the editor (which is still hugely influenced by the initial 'fake everything because browsers aren't reliable' approach) makes this very hard though. We are considering some radical changes, and with luck, we'll have an announcement about that soon. Pull request for low-hanging improvements are always very welcome (if properly documented so that we understand how hey actually improve things). |
|
@marijnh & @adrianheine - Potential approach to establish a baseline level of accessibility for CodeMirror: Notes:
Approach:
-Any edit to the textarea or CodeMirror instance should update the other demo: https://codepen.io/jasonday/pen/gXdeLm |
|
@marijnh , would you be open to sharing some of the radical changes you're considering? I've made significant headway on a project aimed at improving the screen-reader accessibility of programming in general, which is built entirely around CodeMirror. I'm both curious about what you're thinking, but also just a little worried that any massive API changes will wreak havoc on my codebase. |
We intend to move to contentEditable more completely. There'll be an announcement sometimes in the coming months when we have the design worked out more clearly.
Oh yeah, that will definitely happen, and upgrading will take some work. |
|
@marijnh This issue is really important to the freeCodeCamp.org community, which has many members who have visual impairments or are completely blind. Is there anything we can do to help with this? |
|
@QuincyLarson Yes, there'll be work on a more accessible architecture starting in a few months. If you want to contribute financially or be involved in testing, shoot me an email! |
|
Any progress on this one? |
|
Work on CodeMirror 6 is progressing in this repository. |
|
Thank you, 6.x looks nice from the accessibility perspective. |
|
any update? |
The known issue of lack of compatibility with screen readers and assistive technology completely prevents blind and visually impaired screen reader users from being able to use and participate in the enormous number of online tools and resources that use CodeMirror as their editor.
It would be wonderful if the need for full inclusion and accessibility support could be given priority by the CodeMirror community.
A working example of how this can be done quite successfully can be found here:
https://teachaccess.github.io/tutorial/
The text was updated successfully, but these errors were encountered: