Managing Focus Transitions in Slack
Slack built FocusTransitionManager, a React Context-based coordinator that lets sender components request focus moves via transitionFocusTo({focusKey}) and receiver components claim them via shouldTransitionFocus, so keyboard and screen-reader users don't lose focus when React re-renders remove the focused element. Extensions include focusMetadata for targeting specific items, forceFocus for non-keyboard users, an additionalCondition callback to defer focus until data loads, timeouts to reset stale requests, and first-request-wins handling of concurrent requests. It was adopted across 100+ user flows within months, wired into the routing layer to focus the likely next action in each view, and built into Modal so all menus, popovers and modals restore focus reliably.
Related posts
- Building Custom Animations in the Workflow Builder
Slack Engineering mediumAdeptSlack's Workflow Builder added drag-and-drop from a new steps sidebar into workflows by moving react-beautiful-dnd's DragDropContext to wrap the whole builder page, with two draggable/droppable lists. A custom context provider holds drag state fed by the library's responders. On top of that the team built several workarounds: custom transforms to re-center differently sized steps, DOM-measured dynamic placeholders the library doesn't support, and a velocity-based tilt effect driven by requestAnimationFrame. A key lesson was hiding hint boxes in onBeforeCapture rather than onBeforeDragStart, because only the former runs before the library measures the DOM.
- Building accessibility into a canvas-based product
Figma mediumAdept
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.
- 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.
- Fluid layout customization with Splits
Replit mediumAdeptReplit's Workspace now supports Splits, a tiling layout where tabs, panes and files from the filetree can be dragged onto five hit areas of any pane (header to merge, or four conical-section quadrants to split), plus maximize and float modes. The design favours predictability, learnability and fluidity: explicit state visualization, a visible 50px detach radius, continuous resizing during drag, and few special cases, such as always placing auto-created webviews in the top-right node. To get fluid drag behaviour in React, the team used jotai to skip rerenders during drag state updates and wrote custom low-level mouse handlers instead of using a tiling library. Layout is stored as a multi-node tree of Splits and PaneGroups, which drives resize behaviour and simple placement heuristics.
- Building a more accessible GitHub CLI
GitHub Engineering easyNoviceGitHub CLI's Public Preview (v2.72.0, enabled via `gh a11y`) adapts accessibility practice to the terminal, where no WCAG-equivalent standard exists and screen readers must infer structure from a plain character grid. Interactive prompts were rebuilt on Charm's `huh` library so speech synthesis screen readers read them correctly. The redraw-based braille spinner was replaced with a static, context-specific text progress indicator. Markdown colors were realigned to the 16-color ANSI 4-bit palette, informed by Primer, so users can keep contrast against any terminal background and customize hues through their terminal settings. Planned work includes extending these features to CLI extensions and screen-reader-friendly table formatting.