Skip to content

Add screen reader navigation and readable portal action labels - #457

Draft
derekroper wants to merge 1 commit into
thisisgm:mainfrom
derekroper:starchaser-accessibility-and-mnemonics
Draft

derekroper wants to merge 1 commit into
thisisgm:mainfrom
derekroper:starchaser-accessibility-and-mnemonics

Conversation

@derekroper

Copy link
Copy Markdown
Contributor

File navigation and chooser fields need semantic nodes for screen readers to follow selection, focus and text editing. This adds roles, labels, caret/selection information and change-only announcements to the native file list, sidebar, toolbar, menus, previews and chooser. Per-file nodes remain scoped to the held viewport. GTK mnemonic markers are also removed from the portal's accept label, so _Open is displayed and read as Open.

The accessibility work comes from the downstream Starchaser patch, adapted to current main's entry and chooser APIs. Three existing composition ceilings are recorded at their measured sizes; the shared helpers and their tests have their own module.

Validation on current main:

  • CARGO_BUILD_JOBS=4 CARGO_PROFILE_TEST_DEBUG=0 cargo test --frozen -p flea-gui --lib window::accessible::tests: 2 passed, with the rest compiled.
  • python3 tests/portal-mnemonics.py: passed; the same test fails on the original helper. The portal suite now invokes it.
  • tools/flea-file-budget: passed.

This is a draft for upstream review. The latest-main UI has not had a full interactive screen-reader campaign. The downstream Linux build also carries the AccessKit cache-signal tuple fix separately.

@coderabbitai

coderabbitai Bot commented Nov 11, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

thisisgm added a commit that referenced this pull request Nov 14, 2026
Portal accept labels drop GTK mnemonic marks (part of #457).
Unit FX-457-LABEL, reviewed on its own delta.
@thisisgm

Copy link
Copy Markdown
Owner

The readable portal button labels (no mnemonic underscore) landed with credit in ba73638 (v0.4.3); the screen reader navigation is not in this release, so this stays open. Thanks @derekroper! https://github.com/thisisgm/flea/releases/tag/v0.4.3

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants