Skip to content

Screen readers: the document exposes no heading, paragraph, cell or image roles or textΒ #3173

Open

Description

@devinprater

Split from #3164 at the maintainers' request.

The canvas node is a Document with a TextPattern that returns the page as one string (2,022 characters from the Studio handbook sample). Under it the tree is only Group, Text, List, ListItem, Table and DataItem nodes, none of them named and none carrying their own text.

There is no Heading (with level), Paragraph, Cell, Row or Image role, so a screen reader can read the page as a block of text but cannot move by heading, hear "heading level 2", or know that a table cell is a cell or a picture is a picture. crates/ui-egui/src/a11y.rs builds this tree.

Suggested fix: set Role::Heading with set_level, Role::Paragraph on body paragraphs, Role::Cell/Row on tables, Role::Image with a label on pictures and charts, and put each paragraph's text on its node.

Related: #488, #3164.

Activity

  1. ticket-craft commented on Oct 19, 2026

    @ticket-craft

    Thanks! This ticket describes several separate problems:

    • Heading and paragraph roles missing from the document tree
    • Table cells and rows have no table roles
    • Pictures and charts have no image role or label

    It helps a lot if each one has its own ticket, so they can be tracked and fixed separately.

    Possibly related: #488, #3164 and #386.

  2. devinprater commented on Oct 25, 2026

    @devinprater
    Author

    I re-measured this on 0.10.0 (commit 9130181, Windows 11 x64, read through Windows UI Automation)
    and it is unchanged.

    Under Document "The Open Studio Handbook" there are 80 nodes:

    Group=36, DataItem=25, ListItem=8, Text=5, List=2, Hyperlink=2, Table=1, Document=1
    

    79 of the 79 children have no name. There is still no Heading, Paragraph, Cell, Row or
    Image role anywhere in the subtree, and the page still reads back as one 2,022 character string
    through TextPattern. So a screen reader can read the page as a block but still cannot move by
    heading, hear a heading level, or know that a table cell is a cell or a picture is a picture.

    All of this is built in one place, crates/ui-egui/src/a11y.rs, so it is one change even though it
    is three symptoms.

    On the bot's request to split: I would rather keep them together, because each of these is the same
    missing role assignment in the same function. If you want them split to track them separately, say
    so and I will file them:

    • heading and paragraph roles with their levels and text
    • table row and cell roles
    • picture and chart image role with a label
  3. added 3 commits that reference this issue on Oct 29, 2026
  4. added
    missing feature
    needs decision
    on Dec 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    missing featuremultiple issuesneeds decisionpriority: high

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions