Repository navigation
fix(a11y): name text fields and the thumbnail slider - #1896
Conversation
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.
ReviewMerged Review against the description and #1860. Every field listed in the description is named in the code:
Comments and tests. The PR adds no comments. No fixes needed, so nothing was pushed. Validation
Follow-up (non-blocking). The drive label and Format "Filesystem label" fields use CI: every check is green on |
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
./scripts/qa-drive.sh send '{"query":"tree"}'), or a screen reader.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