-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Suggestions for toolbar accessibility #2038
Comments
These are good ideas and accessibility is something we want to improve on. Some of the specifics (ex. do native There may be implementation changes to the UI elements coming in 2.0 that I have not decided on yet so that's an unknown factor. |
@jhchen Yes, by using native But in Quill's case, it's not quite enough. For example, native button elements ensure that toolbar buttons can receive focus and respond correctly to keyboard input, but because the only visual indicator of what each button does is an svg icon, there's really no way for a screenreader to figure out what to read. Are there contributors or maintainers who have weighed in on accessibility issues in the past that we can consult? |
In our on-going rich editor implementation accessibility has been an ongoing priority. We ended having a custom enough use case that we ended re-implementing the toolbar though. For us we've just been consulting the WAI-ARIA Authoring Guidelines. The toolbar example was quite helpful. https://www.w3.org/TR/wai-aria-practices-1.1/examples/toolbar/toolbar.html The editor improvements are quite important to us though. I'd be happy to either contribute a PR for those or help test them if you end implementing them before we get there. One key area where I haven't been able to find a definite answer relates to the BlockEmbed. When a user inserts a complex block embed into the document (or one is present there). How do you represent it to a screen reader. Some additional work is already required to have contenteditable/quill treat it as a singular element. I've discussed a little bit moving focus onto these elements with #1961. Right now the biggest issue I see is that when these block embeds have non-editable && focusable elements in them, you can only get to them by tabbing (as if they are at the end of the document, even when they could be in the middle/near the beginning). I'm planning on using arrow keys/click handlers to move focus onto the block embeds. The blocks would all have |
follow-up on accessibility, Is there a way to focus out from Text area on keyboard Tab? |
@venkata82 try something like |
Please keep improving the accessibility of this wonderful editor. |
@jhchen and @brycepj - I work on accessibility and have started using Quill recently, and have a simple suggestion for improving the toolbar buttons. Simply add an Otherwise, per a CSS tricks article on accessible SVGs you should typically use the Here's a GIF showing off how it would look to sighted users if you added a Update: I also wanted to highlight issue #1173, which suggested the |
Would be fantastic if the toolbar used the roving tabindex strategy - tabbing through toolbar buttons to get to the input area has been a painpoint in my experience |
Work? I tried but failed. |
I have all the changes done and tested locally to implement aria-labels for toolbar items but cannot push to the repo to create a PR ( |
@clairefields15 - I don't think you have write access to this repo, you'd need to fork the repository and then make a PR through that. This quickstart might help: https://docs.github.com/en/get-started/quickstart/fork-a-repo |
Ah got it! I'll do that and perhaps add a bit to the contributing documentation about that step. Thanks |
Quill 2.0 has been released (announcement post) with many changes and fixes. If this is still an issue please create a new issue after reviewing our updated Contributing guide 🙏 |
There has clearly been some effort made to make the quill editor and toolbar keyboard-accessible. As it is, you can do pretty much everything Quill has to offer without a mouse 👍
In developing with Quill, however, I've noticed a number of improvements that could be made to make the editor more accessible, particular for screenreaders.
Toolbar Buttons
aria-label
/aria-labelledby
)aria-pressed
)Tooltips
role="tooltip"
andaria-hidden
aria-describedby="tooltip-id"
Select/Dropdowns
:before
)aria-label
)Editor
aria-placeholder
textbox="role"
to the textarea-like boxaria-multiline
aria-readonly
Picker
aria-label
)I'd be happy to help in implementing these -- I just wanted to get feedback from maintainers before working on a PR.
The text was updated successfully, but these errors were encountered: