nextcloud / nextcloud/text

Accessibility: explain how to leave code blocks without tab key

Open
#4,618 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

1. to develop accessibility bug regression
Dominant language
JavaScript
Stars
659
Forks
133
Avg merge
1d 20h
Merged PRs (30d)
110

Description

As WCAG states

... if it requires more than unmodified arrow or tab keys or other standard exit methods, the user is advised of the method for moving focus away." (https://www.w3.org/WAI/WCAG21/Understanding/no-keyboard-trap.html) this technically meets requirements

But it would be ideal to add an aria-describedby on the code block pointing it to a description informing the user that the arrow keys can be used to move focus out of the code block, any additional recommendations @michaelnissenbaum?

Originally posted by @Pytal in https://github.com/nextcloud/text/issues/4520#issuecomment-1658929799

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the code-block implementation and its keyboard-focus handling in the JavaScript editor. Review the linked WCAG guidance and determine how an accessible description can explain the arrow-key exit method; done means the code block exposes that guidance and the keyboard behavior can be verified with assistive technology.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
accessibility, frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.