-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
A11y: Accessibility in general and minimal keyboard usability #1046
Comments
Just another thought: Instead of overloading the demos and still having them as clean and minimal as possible, it could be nice to have one full-blown "Accessibility example" in the docs + on the landing page. This could provide the needed "best practice for accessibility". Nevertheless, to make the demos usable with keyboard, we still need the above mentioned minimal setup, especially the interaction to select the first button in the toolbar. |
Thank you for this research! We should really improve that. I think it’s pretty hard to integrate some of these tips in a headless editor but an accessibility example sounds like a great idea! |
(Adding this here instead of creating another issue) Since tiptap doesn't use a regular semantic role="textbox" aria-multiline="true" I've been able to pass these attributes as Additionally, for the read-only state ( Is it an issue that should be reported to the Prosemirror project instead? |
Thanks, grest suggestion! From reading the link, I’d say we should add aria-placeholder to the placeholder extension too. @philippkuehn upstream issue, tiptap core default or tiptap default extension? |
Update: after testing with AXE DevTools, Maybe the attributes described above could be added to the parent div instead? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
The issues are still occuring |
This issue is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 7 days |
the current documentation says that this is being worked on:
...but this issue says the opposite. is accessibility officially not planned, or was that just a housekeeping close of this issue? or maybe i've missed something entirely? |
Just wanted to note for future reference, #5398 this PR fixes the floating bubble menu issue in AXE. It is, as of today, part of the v3.0.0-next.1 release |
General
In your (great!) documentation in the accessibility part you currently link to WCAG 3.0 in general but not to ATAG 2.0 (Authoring Tool Accessibility Guidelines) which would be the important part for an editor. Those guidelines should be added.
You write:
I know that Tiptap's concept is to be headless and that the visual and semantical representation of the editor is not part of TipTap's core. But I think, that in the short run the demos in the docs (being best practices) should be as accessible as possible, because...
Keyboard usability
One central part for accessibility is the usability with keyboard. I already opened https://github.com/ueberdosis/tiptap-next/issues/239 to provide focus styles but the demo editors should provide the following minimal functions, too:
tabindex="0"
and an additional class to provide the needed focus styles) . Currently you can only select buttons in the toolbar and the content area. (This will be needed later for some ARIA stuff.)Alt
-F10
. (After checking TinyMCE, CKEditor and WordPress' Gutenberg Editor this seems to be industry standard). Important: The current selection in the editor should be untouched!Esc
should bring you back to the last selection in the content area.Of course this is just as minimal starting point and there are lots of things to consider, e. g.:
role="toolbar" aria-orientation="horizontal
for the toolbar...just to name a few. I hope to find more time to help out. :)
The text was updated successfully, but these errors were encountered: