Skip to content

fix(a11y): name text fields and the thumbnail slider - #1896

Merged
l0gicgate merged 1 commit into
lgse:mainfrom
pdwaldrop:fix/1860-name-fields-and-sliders
Oct 25, 2026
Merged

l0gicgate merged 1 commit into
lgse:mainfrom
pdwaldrop:fix/1860-name-fields-and-sliders

Conversation

@pdwaldrop

Copy link
Copy Markdown
Contributor

Description

The other half of the accessible names item in #1860 (the buttons are in #1895): text fields and the thumbnail slider that had only a placeholder, or a label next to them that was not linked to the field, so a screen reader announced them without a name.

Fields that sit under a visible label are now linked to it (accessibility::set_labelled_by), so the name follows the label: Connect to server's address, Compress's archive name, password and confirmation, the sign-in dialog's username, domain and password, the theme editor's color pickers, the Icons thumbnail slider, and the 10xer prompt, which takes its name from its own prompt label. Fields with no label of their own take the text they already show: the filter field (same as its toggle), the search palette, the shortcut reference search, Open With's search, the chooser's Name fields, the theme editor's name, and the drive label fields in Properties and Format Drive. No new strings were added, so no catalog changed.

I found them by walking the widget tree in the states #1860 lists and the dialogs around them. The Actions editor, the Location field, Settings search, the theme search and the exclusions field were already named. Not covered here: the media seek and volume sliders in the preview, which need new strings in all twelve catalogs, the read-only install command field, and the theme editor and chooser names, which I could only check in the code, since I could not open them in the test window.

Visual evidence

N/A: no visual change.

How to test

  1. Open the widget tree (./scripts/qa-drive.sh send '{"query":"tree"}'), or a screen reader.
  2. Press Ctrl+F, Ctrl+K and F1, and open Compress or Connect to server.

Expected result: each field is named after its purpose, for example Filter this pane (Ctrl+F), Search files and folders…, Search actions or keys…, Server address, Archive name. Before this change they had no name.

Covered by the QA scenario fields-and-sliders-named, which fails on the old code. The accessibility and related dialog scenarios and the affected Rust suites pass.

Related issue

Part of #1860

The filter, search palette, shortcut reference, Connect to server, Compress,
Open With, sign-in, theme editor, chooser Name and drive label fields, the
10xer prompt and the Icons thumbnail slider had no accessible name, only a
placeholder or a nearby label that was not linked to them. Name each from the
label beside it, or from the same text it already shows, so screen readers
announce what each field is for.
@github-actions github-actions Bot added the fix label Oct 25, 2026
@l0gicgate

Copy link
Copy Markdown
Contributor

Review

Merged main: no-op. The branch already sits on acb3a32f7, which is current main.

Review against the description and #1860. Every field listed in the description is named in the code:

  • Linked to a visible label (set_labelled_by): Server address; Compress's archive name, password and confirmation; the sign-in fields (through append_authentication_field); the theme editor's color pickers; the Icons thumbnail slider; the 10xer prompt. The 10xer prompt's name follows its label as PromptBar changes the label text for each prompt.
  • Named with text it already shows (set_label): the filter field (same string as its toggle), Ctrl+K, F1, Open With search, the chooser Name fields (matching the labeled_row "Name" heading), the theme name, and the drive label fields (matching their field_block headings).
  • All the strings were already in the twelve catalogs, so no catalog change was needed.
  • This PR and fix(a11y): name icon-only buttons that only had a tooltip #1895 together cover the Accessibility gaps and GTK criticals from QA sweep #1860 accessible-names item. The PR states what it leaves out: the media seek and volume sliders, which need new strings.

Comments and tests. The PR adds no comments. fields-and-sliders-named is the only test added and I kept it. It fails when src/ is reverted to main (columns and icons both time out on "the filter field is unnamed"), and no other scenario covers these fields. It has no cost yet, which the scenario guidance allows until it is measured.

No fixes needed, so nothing was pushed.

Validation

  • ./scripts/qa.sh fields-and-sliders-named toolbar-controls-named: 3 passed
  • The same scenario with src/ reverted to main: 2 failed, as expected
  • Not run locally: Rust suites, fmt and clippy. This review changed no code, and CI ran all of them on this head.

Follow-up (non-blocking). The drive label and Format "Filesystem label" fields use set_label with the same text as their field_block heading. Linking them to the heading would match how the other dialogs are done, but either way gives the same name.

CI: every check is green on 406b3f93d. The QA scenarios job is skipped in CI for PRs, which is why I ran it locally. I approved the fork's CI run to start it.

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants