Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add accessible labels to buttons on Officer Profile screen #415

Closed
CR96 opened this issue Oct 17, 2020 · 7 comments · Fixed by #431
Closed

Add accessible labels to buttons on Officer Profile screen #415

CR96 opened this issue Oct 17, 2020 · 7 comments · Fixed by #431
Assignees
Labels
enhancement New feature or request

Comments

@CR96
Copy link
Contributor

CR96 commented Oct 17, 2020

Is your feature request related to a problem? Please describe.
Buttons should have descriptive labels for Android TalkBack users.

Describe the solution you'd like
Add labels to Close and Change Profile Picture buttons.

@CR96 CR96 added the enhancement New feature or request label Oct 17, 2020
@Sheeri
Copy link
Collaborator

Sheeri commented Oct 19, 2020

Hello @CR96 , thanks for offering to work on this! I have assigned it to you.

@Sheeri
Copy link
Collaborator

Sheeri commented Oct 19, 2020

Should the toggles also have labels? Right now the screen reader says "on switch" if the toggle is set to off, and 'off switch' if the toggle is set to on - but because there are 2 toggles ('at sea/not at sea' and 'dark mode') I worry that it's not clear what the user is turning on and off.

e.g. should we have: 'On switch for at sea', 'Off switch for not at sea', 'on switch for dark mode', 'off switch for dark mode'?

Please proceed with work on this, your other work was fantastic! Will merge soon.

@Sheeri Sheeri unassigned CR96 Oct 19, 2020
@Sheeri
Copy link
Collaborator

Sheeri commented Oct 19, 2020

(oh, @CR96 I'm sorry for assuming you wanted to work on that - I have unassigned)

@CR96
Copy link
Contributor Author

CR96 commented Oct 19, 2020

@Sheeri No you're good! I was planning to open a PR for this

@Sheeri
Copy link
Collaborator

Sheeri commented Oct 20, 2020

Great, @CR96 you've been assigned this one.

@CR96
Copy link
Contributor Author

CR96 commented Oct 24, 2020

Should the toggles also have labels? Right now the screen reader says "on switch" if the toggle is set to off, and 'off switch' if the toggle is set to on

The screen reader announces items as "State: Component," so it's saying "Off: Switch" as in "switch is off." TalkBack on Android 11 announces them as expected in my case.

but because there are 2 toggles ('at sea/not at sea' and 'dark mode') I worry that it's not clear what the user is turning on and off.

What I can do is add the android:labelFor property to the toggle switches. This will prompt TalkBack to read the labels when a switch is in focus, e.g. "Off: Switch for Dark Mode."

@Sheeri
Copy link
Collaborator

Sheeri commented Oct 26, 2020

Yes, that would be perfect - exactly what I was thinking, something so that there's a distinction between the two toggle switches.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants