Building accessibility into a canvas-based product
Because Figma renders its canvas itself rather than through HTML, the browser's accessibility tree is nearly empty, so Figma rebuilt accessibility with a hidden but laid-out "Mirror DOM" synced to the scenegraph. It rests on four pieces: an incrementally updated internal accessibility tree of per-layer accessible summaries, a recursive React component that renders ARIA-labelled elements positioned via concatenated affine transforms, two-way sync between canvas selection and keyboard focus, and ARIA live-region announcements that merge repeated events like nudges into one message. Mirror DOM elements are deliberately not visually-hidden, so magnifiers, focus outlines and voice control still get correct spatial positions.
Related posts
- A conversation with Figma's accessibility team
Figma easyNovice
Figma's accessibility engineers and PM reflect on shipping screen reader support for prototypes and a FigJam beta. Open-beta feedback showed the feature worked in VoiceOver but needed fixes for JAWS and NVDA. Low-vision users also rely on visuals alongside the screen reader, so the team added positioning data to the accessibility tree, focus-triggered hover interactions, scroll-following, and focus-aware toolbar hiding. For FigJam, designs are translated into HTML with accessibility metadata, and reading order now uses a spatial heuristic that reads left-to-right and top-to-bottom while keeping sticky clusters together, borrowed from find-and-replace. Open problems include announcing real-time collaborative changes and giving designers control over the generated semantic HTML.
- Considerations for making a tree view component accessible
GitHub Engineering mediumAdeptGitHub's accessible file tree models Windows File Explorer's tree view behavior, since that is what many desktop screen reader users already know. It is built on nested ul/li semantics, which help with less common assistive tech and Forced Color Mode. ARIA tree, treeitem and group roles are layered on top, along with a roving tabindex inside a single-tab-stop composite widget wrapped in a nav landmark. Roving tabindex was chosen because aria-activedescendant failed with VoiceOver. Interoperability fixes include explicit aria-level on each node, aria-labelledby for accessible names that VoiceOver otherwise missed, live-region announcements and focus management for loading states, and JavaScript to replicate middle-click link behavior.
- Accessibility considerations behind code search and code view
GitHub Engineering mediumAdeptGitHub rebuilt code search and code view to remove accessibility barriers that pushed screen reader users toward raw files. After a sort change triggers a full page navigation, focus is restored to the sort dropdown. After a search, focus moves to the results-count header instead of using aria-live announcements, which race with page-title announcements. The file tree became the open-source TreeView component, with typeahead and strict ARIA markup. Code reading uses a hidden <textarea> modeled on Monaco, layered under syntax-highlighted virtualized lines with a synced fake cursor. That design enables native screen reader navigation, find and select-all, but brings costs: scroll syncing, cross-browser quirks, and Firefox text-zoom mismatches.
- Behind the feature: comments, contextually
Figma mediumAdept
Adding general and contextual (canvas-anchored) comments to Figma Community files turned out to be harder on interaction design than on code reuse. A bug bash surfaced UX problems that led to a lightbox-style modal replacing a fullscreen view that was easy to enter but hard to leave, plus pin icons, "See in context" hints and a scroll-back button for contextual comments in the feed. On the frontend, smooth panning between comment locations came from exposing animation parameters in Figma's Skew-based viewer. The hover expansion avoids canvas re-renders by keeping the viewer at full size and shrinking an overlaid border mask, and an intermediary state converts coordinates so CSS can animate the switch from absolute to fixed positioning.
- Version control: Three ways Figma explored horizontal scrolling
Figma mediumAdept
Adding horizontal scrolling to Figma's Layers panel was harder than expected because the list is virtualized (only visible rows render), rows are interactive (hide, lock, collapse, rename), and layer names vary in length. Three prototypes were rejected: sticky edge icons for out-of-view parents, which needed opaque backgrounds that clashed with the row structure; full auto-scroll to a selected layer, which disoriented users; and a rename text box that expanded while scrolling, which flickered because resizing was done in JavaScript. The shipped design leaves blank space above visible layers and resets an in-progress rename on scroll. It auto-scrolls only when a selected layer overflows the left edge by 50px or more, using an invisible render of unrendered rows to measure them for precise alignment.