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)
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.
Assignee | ||
Comment 1•10 years ago
|
||
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)
Reporter | ||
Comment 2•10 years ago
|
||
(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.
Reporter | ||
Updated•10 years ago
|
Attachment #8605653 -
Flags: feedback?(yzenevich)
Assignee | ||
Comment 3•10 years ago
|
||
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 | ||
Updated•10 years ago
|
Assignee: nobody → gasolin
Assignee | ||
Comment 4•10 years ago
|
||
@Marco I found you on phonebook, do you know if Screen Reader support the `role=swich` on FxOS?
Flags: needinfo?(mzehe)
Comment 5•10 years ago
|
||
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)
Reporter | ||
Comment 6•10 years ago
|
||
(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)
Comment 7•10 years ago
|
||
Comment on attachment 8605653 [details] [review]
pull request redirect to github
LANDED https://github.com/gaia-components/gaia-switch/commit/c28980752749d6787a812a6368689cee3c7e55cf
Attachment #8605653 -
Flags: review+
Comment 8•10 years ago
|
||
Please close this bug if attachment 8605653 [details] [review] was the only dependency.
Reporter | ||
Comment 9•10 years ago
|
||
(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
Reporter | ||
Comment 10•10 years ago
|
||
Attachment #8614131 -
Flags: review?(wilsonpage)
Reporter | ||
Comment 11•10 years ago
|
||
Attachment #8614169 -
Flags: review?(wilsonpage)
Comment 12•10 years ago
|
||
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)
Comment 13•10 years ago
|
||
Comment on attachment 8614131 [details] [review]
Github pull request.
LANDED https://github.com/gaia-components/gaia-switch/commit/a4af52c07cdb15a5988d50bf0deca7257d1f3a51
Attachment #8614131 -
Flags: review?(wilsonpage) → review+
Comment 14•10 years ago
|
||
Updated•10 years ago
|
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Reporter | ||
Comment 15•10 years ago
|
||
(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?
Comment 16•10 years ago
|
||
(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.
Reporter | ||
Comment 17•10 years ago
|
||
Attachment #8695447 -
Flags: review?(wilsonpage)
Reporter | ||
Updated•10 years ago
|
Attachment #8695447 -
Flags: review?(wilsonpage)
Comment 18•10 years ago
|
||
Comment on attachment 8695447 [details] [review]
npm3 integration tests.
https://github.com/fxos-components/gaia-switch/commit/076f44da6c60349f1c820fe60bf90bd0a74341fa
Attachment #8695447 -
Flags: review+
You need to log in
before you can comment on or make changes to this bug.
Description
•