Build with XuiView Markdown

Accessible interaction

Make an action understandable before the user presses it, and make its result understandable afterward. Readable labels, adequate target sizes, visible focus, and alternatives to gestures are part of the interaction design.

Start with a usable visual interface

Give controls descriptive text and enough space to distinguish neighboring actions. Let text grow without clipping essential instructions. Use words or shapes alongside color for validation and state; the preferences example states “Sound is on” as well as moving the toggle thumb.

Avoid hiding the only action behind hover. A touch user has no persistent hover state, and a keyboard user may never move a pointer over the control. Provide an explicit action for operations otherwise available only through dragging or a complex gesture.

Respect device preferences where supplied. IDeviceInfo exposes accessibility font scale, high contrast, and reduced motion. A theme can consume those values, but hardcoded custom labels and animations still need their own policy.

Verify keyboard behavior per control

Core's focus service and root support focus traversal, and views can implement focusability and key handling. That infrastructure does not automatically make every painted widget keyboard-operable.

At present, ToolKit's basic Button, Toggle, Checkbox, and ListView implementations are pointer-oriented and do not provide a complete default keyboard interaction model. Test Tab traversal, activation, visible focus, and disabled behavior for the controls you choose. Add a focused custom control or appropriate key handling when a product requires it; do not claim support just because pointer clicks work.

For custom focusable controls, invalidate the focus visual when focus changes, distinguish activation keys from text entry, and keep a keyboard route to every essential action. Modal surfaces also need intentional focus entry and restoration.

Understand native accessibility limits

The current Core view tree does not expose a complete semantic accessibility-node contract that these controls map to UI Automation, VoiceOver, or TalkBack. Canvas text is visual output; it does not by itself create a screen-reader label or an actionable accessibility element.

Some runtime code reads operating-system accessibility preferences or labels native text-input accessories. Those pieces do not amount to a complete accessible application tree. Treat screen-reader support as a concrete product gap to resolve and validate on each target platform.

Test with actual input paths

Exercise the page without a mouse, at larger text sizes, in high contrast, and with reduced motion. Then test the native assistive technology you intend to support. Browser emulation and a static SVG can reveal layout problems, but they cannot establish native accessibility parity.

Record the unsupported paths honestly alongside the implemented ones. This prevents a pleasant-looking demo from being mistaken for a finished accessible control library.