Skip to content

Accessibility

Audience: everyone, and anyone assessing the product for procurement · ~7 min read · Prerequisites: Editor basics

What it is

struktJS is designed so that the whole product can be used from the keyboard, with sufficient colour contrast, a visible focus indicator and no required mouse gestures for editing. The projectional editor is an unusual interface (you edit a structure, not a text file), so this page says plainly what works, what is still limited, and how to check for yourself.

The formal statement of conformance (WCAG 2.2 level A and AA, with the evidence behind each rating) is the Accessibility conformance report. Short version: the standalone and embedded web views are tested against WCAG 2.2 AA with automated tools in both the dark and light theme; testing with screen readers has not been done yet, and the report marks every criterion that depends on it as not evaluated.

When you'd use it

  • You use the keyboard only, or a switch device that emulates one.
  • You need larger text, higher contrast, or less motion.
  • You use a screen reader or magnifier (read Known limitations first).
  • You are filling in an accessibility questionnaire (VPAT, EN 301 549) for your organisation.

Keyboard

Everything in the editor is reachable from the keyboard; the full list is in the Editor keyboard reference (also Help > Keyboard Shortcuts).

  • Tab / Shift+Tab move between cells inside the editor, including keywords and punctuation. They never leave the editor.
  • Esc leaves the editor: focus moves to the next control after it (the side tool buttons, status bar and so on). If you are in the middle of a cell edit, a pending delete or a selection, Esc cancels that first and keeps focus on the cell; press it again to leave.
  • Outside the editor, Tab and Shift+Tab work as in any web page. In the standalone and embedded views every control shows a focus ring (checked by an automated test); the Theia shell's own controls use Theia's focus styling.
  • The completion list (Ctrl+Space) is driven with the arrow keys, Enter and Esc; it never takes focus away from the cell.

Seeing the editor better

  • Zoom and narrow windows. At 200% browser zoom no control text is clipped, and at 320 CSS pixels wide the page does not scroll sideways: the side panels then overlay the editor instead of squeezing it. The editor's own canvas may scroll horizontally for long lines, as any code editor does. (Checked in the standalone and embedded views; Theia's own layout has its own zoom behaviour.)
  • Text spacing. Overriding line height, letter and word spacing (for example with a browser extension) does not cut off text.
  • Tooltips. The quick-documentation tip (double-click a cell or Ctrl+Q) and the diagram toolbar's button tips stay while you move the pointer onto them, and Esc closes them without moving the pointer or the focus.

  • Theme. Choose a light, dark or high-contrast theme (Theia: File > Preferences > Color Theme). Text colours in all themes are tuned to reach a contrast of 4.5:1 against the surface they sit on; check this in your own theme if you installed one.

  • Windows High Contrast / forced colours. The editor draws selection, focus, error and warning marks with outlines and borders, which survive forced colours. Errors are a solid line, warnings a dashed line, so they differ by shape and not only by colour.
  • Text size. The editor font size and line height are preferences; see Preferences and Themes and appearance.
  • Reduced motion. struktJS follows your operating system's "reduce motion" setting and also has its own switch, described in Themes and appearance.

With a screen reader

The editor is a labelled group of editable text cells. When a cell receives focus, the screen reader reads the cell's own name (for example "Reference"), then a description made of the enclosing node types ("Assign in If"), a sentence from the concept itself when its language provides one, the whole formula in words when the cell sits inside a typeset formula ("Formula: fraction 1 over 2 end fraction"), and any check message on those nodes (the word "Warning" or "Error", then the check's own message). Structural edits that move focus (wrapping in an operator, accepting a completion) are announced through a live region. The completion list is exposed as a listbox whose highlighted option is announced as you move.

Diagrams are a named group (for a flowchart: "Flowchart") with a description that lists the nodes and the connections between them ("Diagram with 4 nodes and 3 connections. Nodes: … Connections: A to B; …") followed by the diagram's keyboard keys. Typeset formulas carry the standard MathML text alternative, and a formula with editable cells inside is a named group so the cells stay reachable.

Screen reader tree (experimental)

Turn on Screen reader tree in the Settings (Theia: struktJS > Accessibility > Expose Tree) to expose the program as a tree: each node becomes a tree item with its level, its position among its siblings ("2 of 5") and, for nodes that can fold, whether it is expanded. It changes only what assistive technology is told: focus, Tab, Esc and every shortcut work exactly as without it. It is off by default and has not been tested with a screen reader yet; try it and tell us what it does. Nodes inside a diagram or a formula are not separate tree items; the diagram or formula stands for them.

Known limitations

These are real; they are not hidden by the conformance report.

  • Not yet tested with NVDA, JAWS or VoiceOver. The behaviour above is verified in the browser's accessibility tree; the screen-reader experience itself has not been evaluated. Expect rough edges.
  • By default the program is exposed as a flat sequence of text and editable cells, not as a tree: structure comes from the cell descriptions. The opt-in Screen reader tree adds a tree, but it is unverified with a screen reader.
  • Text alternatives are generated, not authored. A diagram's description is a list of its nodes and connections, and a formula's is its MathML read aloud as words; a language can supply better text for its own concepts (see Accessibility for language authors), and the standard languages mostly do not yet.
  • Dragging is never required. In the explorer, open a row's menu with the Menu key or Shift+F10 and choose Move to Folder… or Move to Another Model…. In a diagram, right-click a node for Move Left/Right/Up/Down (the command palette, Ctrl+K, offers the Move entries too), and connect two nodes with Connect to… on the bar above the selected node, then a click on the target, or use the keyboard: focus the diagram, [ and ] select a node, Space adds it to a group, the arrow keys move the node or group (Shift for bigger steps), C, [/], Enter connects it to another node, and F2 or Enter edits its label in place.
  • The Theia shell (menus, dialogs, explorer, toolbar) comes from Eclipse Theia 1.76.0. An automated scan of the Theia browser IDE in its four built-in themes found no problems in struktJS's own parts and several in Theia's: tab bars, toolbars and menus use ARIA roles their parents do not permit, toolbar buttons contain a nested focusable element, the Settings editor has unlabelled inputs, and the command palette has a few low-contrast items in the Light theme. These are reported in docs/accessibility-theia-audit.md for upstream. The macOS desktop app (both the development build and the packaged app) was scanned the same way and shows the same results; its native menu bar and window chrome have not been checked, and neither have the Windows and Linux builds.

How to check it yourself

The repository has two automated suites you can run:

npx playwright test tests/test-ui-a11y-audit.spec.js      # axe: WCAG 2.0–2.2 A/AA rules, 9 views (incl. a diagram and a formula) x dark/light
npx playwright test tests/test-ui-a11y-keyboard.spec.js   # no keyboard trap, visible focus, forced-colors
npx playwright test tests/test-ui-a11y-adaptable.spec.js  # 200% zoom, 320px reflow, text spacing, hover content, focus not obscured

Manual screen-reader script

Someone with a screen reader should repeat this for each release and record the result in the conformance report.

  1. Open Load Sample… > Guided tour. Confirm the screen reader announces the editor as "Code editor, group" and mentions Escape.
  2. Press Tab through the first line. Each stop should read the cell's name, then its description.
  3. Change shown = total to total = total. Move to a cell in that line. The description should include "Warning:" and the check's message.
  4. Put the cursor in an empty slot and press Ctrl+Space. Move with the arrow keys; each option should be read. Enter accepts it.
  5. Press Esc twice. Focus must leave the editor and land on a control, not on the page body.
  6. Repeat 1–5 with the system theme set to high contrast.

Where to report a problem

Accessibility problems are bugs. Report them through the channel in your support agreement, with the assistive technology and version you used and the steps to reproduce.