---
title: "Considerations for making a tree view component accessible"
description: "GitHub's accessible file tree models Windows File Explorer's tree view behavior, since that is what many desktop screen reader users already know."
url: "https://swe.quest/articles/considerations-for-making-a-tree-view-component-accessible-d55d10f05de5e995"
canonical: "https://github.blog/engineering/user-experience/considerations-for-making-a-tree-view-component-accessible/"
source: "GitHub Engineering"
published: "2025-01-28"
difficulty: "medium"
kind: "Case study"
reading_minutes: 10
tags: ["accessibility","frontend","design-systems"]
---

# Considerations for making a tree view component accessible

A post on [GitHub Engineering](https://swe.quest/sources/github.md), published 2025-01-28, 10 min read, Case study. Original: [https://github.blog/engineering/user-experience/considerations-for-making-a-tree-view-component-accessible/](https://github.blog/engineering/user-experience/considerations-for-making-a-tree-view-component-accessible/)

## Summary

GitHub'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.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Accessibility](https://swe.quest/tags/accessibility.md) (Web & mobile)
- [Frontend](https://swe.quest/tags/frontend.md) (Web & mobile)
- [Design systems](https://swe.quest/tags/design-systems.md) (Web & mobile)

## Prerequisites

- HTML semantics
- ARIA roles and attributes
- screen reader basics

## Keywords

WAI-ARIA, ARIA Authoring Practices Guide, VoiceOver, NVDA, JAWS, Primer, Forced Color Mode, roving tabindex

## Related posts

- [Accessibility considerations behind code search and code view](https://swe.quest/articles/accessibility-considerations-behind-code-search-and-code-view-4501ed426b29574e.md): GitHub Engineering · 2023-07-06 · Medium · 10 min read · Accessibility, Frontend, Browsers, Design systems
  GitHub rebuilt code search and code view to remove accessibility barriers that pushed screen reader users toward raw files.
- [Exploring the challenges in creating an accessible sortable list (drag-and-drop)](https://swe.quest/articles/exploring-the-challenges-in-creating-an-accessible-sortable-list-drag-and-drop-94e021953e35b2e4.md): GitHub Engineering · 2024-07-09 · Medium · 7 min read · Accessibility, Frontend, Browsers
  Building a keyboard-, screen-reader- and voice-control-accessible sortable list surfaced several non-obvious pitfalls, each with a concrete fix. role='application' is applied only to the drag trigger and only while dragging, so arrow keys can be reassigned without breaking screen reader navigation.
- [Building accessibility into a canvas-based product](https://swe.quest/articles/building-accessibility-into-a-canvas-based-product-b9de69277feff18d.md): Figma · 2026-07-01 · Medium · 9 min read · Accessibility, Frontend, Browsers, React
  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.
- [A conversation with Figma's accessibility team](https://swe.quest/articles/a-conversation-with-figma-s-accessibility-team-4d7c0aee064f1f20.md): Figma · 2022-11-17 · Easy · 9 min read · Accessibility, Frontend
  Figma's accessibility engineers and PM reflect on shipping screen reader support for prototypes and a FigJam beta.
- [Creating an accessible search experience with the QueryBuilder component](https://swe.quest/articles/creating-an-accessible-search-experience-with-the-querybuilder-component-ffcb7d20ca7f5c3b.md): GitHub Engineering · 2022-12-13 · Medium · 9 min read · Accessibility, Frontend, Design systems, Search
  GitHub's QueryBuilder is a combobox-based search input built to stay accessible while supporting per-character styling, suggestions with different actions, and grouped results.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
