Closed Bug 1162180 Opened 10 years ago Closed 10 years ago

[accessibility][gaia-switch] Make sure gaia-switch is accessible to screen reader.

Categories

(Firefox OS Graveyard :: Gaia::Components, defect)

All
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: yzen, Assigned: gasolin)

References

Details

(Keywords: access)

Attachments

(4 files)

Ensure labeling works well with the switch Ensure switch has all necessary semantics of a switch/checkbox Ensure checked/unchecked state is announced.
Could you help verify if the switch button has expected behavior in Screen Reader? (local test result: Screen Reader speak switch button as `check` button and speak the checked/unchecked/unavailable state)
Attachment #8605653 - Flags: feedback?(yzenevich)
(In reply to Fred Lin [:gasolin] from comment #1) > Created attachment 8605653 [details] [review] > pull request redirect to github > > Could you help verify if the switch button has expected behavior in Screen > Reader? > > (local test result: Screen Reader speak switch button as `check` button and > speak the checked/unchecked/unavailable state) Hi Fred, thanks for looking into this. I just realized we already support proposed specification for ARIA switch role (see http://rawgit.com/w3c/aria/master/aria/aria.html#switch). It is essentially a subclass of a checkbox role and uses aria-checked in a similar fashion. The PR itself is missing actual role semantics on the gaia-switch element. I think what you want is to add role="switch" attribute to it so it is accessible to the screen reader as it isn't right now.
Attachment #8605653 - Flags: feedback?(yzenevich)
Thanks for feedback. I try to use `role=swich` but the FxOS ScreenReader does not respond for that element. Switch back to `role=checkbox` works well.
Assignee: nobody → gasolin
@Marco I found you on phonebook, do you know if Screen Reader support the `role=swich` on FxOS?
Flags: needinfo?(mzehe)
Hi Fred, If it doesn't, it's a bug and should be fixed. :) But fortunately, we have control over it in the accessible/AccessFu folder in Gecko. Yura, want to implement support for the role and add tests so this can be used in FX OS?
Flags: needinfo?(mzehe) → needinfo?(yzenevich)
(In reply to Marco Zehe (:MarcoZ) from comment #5) > Hi Fred, > > If it doesn't, it's a bug and should be fixed. :) But fortunately, we have > control over it in the accessible/AccessFu folder in Gecko. > > Yura, want to implement support for the role and add tests so this can be > used in FX OS? Yes we should be able to add it shortly. Will make a bug for that
Flags: needinfo?(yzenevich)
Depends on: 1166321
Please close this bug if attachment 8605653 [details] [review] was the only dependency.
(In reply to Wilson Page [:wilsonpage] from comment #8) > Please close this bug if attachment 8605653 [details] [review] was the only > dependency. Ill test it around and will if all's good
Attached file Github pull request.
Attachment #8614131 - Flags: review?(wilsonpage)
Comment on attachment 8614169 [details] [review] gh-pages update with PR #8 included This doesn't require review, please just push to gh-pages frequently. If this could be automated, even better :)
Attachment #8614169 - Flags: review?(wilsonpage)
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
(In reply to Wilson Page [:wilsonpage] from comment #12) > Comment on attachment 8614169 [details] [review] > gh-pages update with PR #8 included > > This doesn't require review, please just push to gh-pages frequently. If > this could be automated, even better :) Hi Wilson, I don't have the perms for pushing to gaia-components, would you be able to push for me in this case?
(In reply to Yura Zenevich [:yzen] from comment #15) > (In reply to Wilson Page [:wilsonpage] from comment #12) > > Comment on attachment 8614169 [details] [review] > > gh-pages update with PR #8 included > > > > This doesn't require review, please just push to gh-pages frequently. If > > this could be automated, even better :) > > Hi Wilson, I don't have the perms for pushing to gaia-components, would you > be able to push for me in this case? Done. And added you as 'owner' to give you push rights.
Attachment #8695447 - Flags: review?(wilsonpage)
Attachment #8695447 - Flags: review?(wilsonpage)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: