Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
thetaPC
left a comment
There was a problem hiding this comment.
Where are we getting the expectation for this behavior? When I tested the native inputs from W3 examples to verify that we match, but the screen reader is reading the labels first. Based on this, I would expect that the labels are focused first then the input.
AAA had an ADA audit that flagged this behavior as unexpected |
Issue number: resolves internal
What is the current behavior?
When using
ion-inputwith a label on Android, TalkBack treats the visual label text as a separate focusable element. This causes the initial focus to land on the label instead of the input field, creating a confusing experience for screen reader users.What is the new behavior?
The label text wrapper is now hidden from the accessibility tree via
aria-hidden="true", while the native input maintains proper labeling througharia-labelledby. This ensures Android TalkBack focuses directly on the input field while still announcing the label correctly.Does this introduce a breaking change?
Other information
Current dev build: