Repository navigation
app_audit on Android reports Label in Name: a control whose description leaves out the words it shows (WCAG 2.5.3) - #249
Merged
Merged
Conversation
…on leaves out the words it shows (WCAG 2.5.3)
A person using speech says what they see. On Android the caption and the
description are separate in the tree, so a description without the
caption's words is reported as LabelInName. One caption only, glyphs, a
card's several lines, a switch's ON/OFF and text fields left alone.
MobiumApp's Screen Reader Demo ("Submit form" captioned Send) is the
control, captured as mobiumapp-spoken-uia2.xml; ten apps on the emulator
and every captured hierarchy give none.
lana-20
added a commit
to mobiumdev/mobium-app
that referenced
this pull request
Oct 21, 2026
…since mobiumdev/mobium#249 added Label in Name (#33)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Step 4 of docs/ACCESSIBILITY.md. Someone using voice control says what they see, so a button showing Send but named Submit form can't be reached by "tap Send". On Android the caption and the description are separate in the tree, so
app_auditnow reports the mismatch asLabelInName.The rule: a control with a description and exactly one caption (its own text, or the one text inside it that isn't a control of its own) is reported when the description doesn't hold the caption's words in order. Case and punctuation don't matter, and "Resend" doesn't hold "Send".
Left alone:
Limit: a caption the app draws isn't in the tree. Google's Calculator draws its keys, so its "AC" named "all clear" can't be judged. iOS usually has one label for both, so nothing is added there.
Measured on the Android 15 emulator:
internal/uitree/testdata/mobiumapp-spoken-uia2.xml.Checks:
audit.shnow expects the demo's three findings, PASS on emulator-5554. The tests cover each case above and fail when the rule or the switch exception is removed.make cigreen. Not run on the Pixel.