Accessibility
XR adds its own barriers on top of the web's: arms get tired, hands shake, text is fewer pixels, and motion the user did not cause can make them feel sick. This page lists what vue-xr-ui does by default, what you can switch, and what it cannot do yet.
Built in
| Need | What the kit does |
|---|---|
| Large enough targets | Every control is at least theme.interaction.minTarget (44 dmm, about 4.4 cm at 1 m), so a shaky fingertip or ray still hits it. |
| Readable text | Body text is 18 dmm, the smallest (caption) 14 dmm. Panels scale with their distance, so text reads the same size wherever they are. See Testing on a Quest. |
| Contrast | Both themes meet WCAG AA: 4.5:1 for every text colour on every surface it is used on (including white on the accent), 3:1 for the focus ring. A unit test checks each pair. withAccent() picks white or near-black text, whichever reads better on your colour. |
| Any input | Mouse, controller ray, hand ray with pinch, fingertip poke, and the keyboard. One event for all of them. |
| Slow presses | A press counts on release however long it is held, and a drag never selects. See Input. |
| Keyboard focus | Tab order, Enter / Space, arrows, and a visible focus ring. Dialogs keep focus inside. |
| One hand, seated | <XrHandMenu hand="right"> for left-handed use; <XrFollow> brings content back in front of a seated user who cannot turn round. |
| A way out | <XrExitButton> and <XrSessionMenu> (palm pinch asks to leave), as the system gesture is unreliable with hands. |
Reduced motion
With the operating system's or browser's "reduce motion" setting on, <XrFollow> jumps back in front of the viewer instead of gliding, and buttons do not grow on hover. Apps can set it themselves, for example from a comfort setting:
createApp(App).use(createXrUi({ reducedMotion: true }))
// or later, from a toggle in your settings panel
const reducedMotion = useXrReducedMotion()
reducedMotion.value = trueUse useXrReducedMotion() in your own animations too. The indeterminate progress bar and spinner keep moving: they tell the user that something is happening.
Labels for icon-only buttons
An icon alone is a guess. Give icon-only buttons a tooltip with the same words a label would have, and a name so tests can find them:
<XrTooltip text="Clear history">
<XrButton name="clear" variant="ghost" :icon="Trash2" />
</XrTooltip>Not yet
Screen readers do not see inside a WebGL canvas, and the WebXR browsers have no accessibility tree for XR content. vue-xr-ui does not mirror the scene into the DOM yet, so blind users cannot use a vue-xr-ui interface. If your app needs that, keep its essential tasks available in a regular web page too.