Closed
Bug 1055355
Opened 11 years ago
Closed 11 years ago
[SMS] Make recipients field and suggestions accessible
Categories
(Firefox OS Graveyard :: Gaia::SMS, defect)
Tracking
(b2g-v2.1 fixed, b2g-v2.2 fixed)
RESOLVED
FIXED
2.1 S4 (12sep)
People
(Reporter: eeejay, Assigned: eeejay)
References
Details
(Keywords: access, Whiteboard: [b2ga11y p=1])
Attachments
(1 file)
46 bytes,
text/x-github-pull-request
|
steveck
:
review+
fabrice
:
approval-gaia-v2.1+
|
Details | Review |
When navigating to the "Message" field at the bottom of the thread view or compose new message view double tapping does nothing. I think a role of "textbox" on the edidable content is required.
Assignee | ||
Comment 1•11 years ago
|
||
Attachment #8474914 -
Flags: review?(schung)
Comment 2•11 years ago
|
||
Comment on attachment 8474914 [details] [review]
Link to Github pull-request: https://github.com/mozilla-b2g/gaia/pull/23013
Hi Eitan, I left some comment on github, please request review again when you're ready, thanks!
BTW, about the attachment inside contentEditable element, it seems another bug to me if double-tap could not work. Could you please confirm if it's a general issue or problem specific to message app?
Attachment #8474914 -
Flags: review?(schung)
Flags: needinfo?(eitan)
Assignee | ||
Comment 3•11 years ago
|
||
Thanks, Steve.
Yeah, we don't really support rich text editing well. So, there is definitely an issue there. I'll come up with another patch and flag it for review.
Flags: needinfo?(eitan)
Assignee | ||
Comment 4•11 years ago
|
||
(In reply to Steve Chung [:steveck] from comment #2)
> BTW, about the attachment inside contentEditable element, it seems another
> bug to me if double-tap could not work. Could you please confirm if it's a
> general issue or problem specific to message app?
So it took me a while to hunt down the issue. It is not the attachment that is the issue. It is rather a focus problem from bringing up an activity. The screen reader won't restore keyboard focus to the app, and so the IME does not work. I filed another bug for that against the screen reader.
Depends on: 1058750
Assignee | ||
Comment 5•11 years ago
|
||
I took the liberty of doing a bunch of accessibility tweaks for the compose screen. There are still issues with focus/ime that will need to be resolved on the screen reader end. Also, The recipients field needs another round of work that is probably too high risk at this point in the cycle, so I spun off bug 1059060 for that.
The changes in the PR include:
- Give textbox roles to editable fields.
- Change placeholder styling to not interfere with the screen reader by altering the entry.
- Removed MMS label 0 font size hack.
- Made contact suggestions listbox options.
Assignee | ||
Updated•11 years ago
|
Attachment #8474914 -
Flags: review?(schung)
Comment 6•11 years ago
|
||
Thanks for the great efforts on it, I believe we definitely need to create separate bugs to address other issues. However we also got composer visual refresh issue bug 1048845 in review and it might cause some conflicts. So we will land the new layout first and you could address the a11y issue once for all instead of creating follow up bug. Sorry for the inconvenience.
Assignee | ||
Updated•11 years ago
|
Summary: [SMS] Message entry area cannot be activated with a screen reader → [SMS] Make recipients field and suggestions accessible
Assignee | ||
Comment 7•11 years ago
|
||
Hey Steve,
I made sure to coordinate with Oleg on bug 1048845. I just updated the pull request, and worked on all the other accessibility issues in the compose screen:
- Change placeholder styling to not interfere with the screen reader by altering the entry.
- Made contact suggestions listbox options.
- Made recipient field accessible.
The last one is probably the biggest and least trivial change. Besides the role markup (button for assimilated contacts, and textbox for editable node), we needed to give the textbox minimal space. I achieved this with a flex view and some margin hacks that are similar to what was there before.
Flagging you here so that you will remember to review this. Thanks!
Flags: needinfo?(schung)
Comment 8•11 years ago
|
||
Comment on attachment 8474914 [details] [review]
Link to Github pull-request: https://github.com/mozilla-b2g/gaia/pull/23013
Sorry for the late reply, it looks really great and thanks for the further improvement in subject placeholder! It would be perfect if you could rebase to master(some conflicts here) and add unit test for additional recipient role changes. Please request the last review(I think it should be) and we could land this in master.
Attachment #8474914 -
Flags: review?(schung)
Flags: needinfo?(schung)
Assignee | ||
Comment 9•11 years ago
|
||
[Blocking Requested - why for this release]:
This accounts for a round of accessibility improvements for the SMS app that are required for the screen reader. The changes here are critical for basic functionality. The review process started a while ago, but slipped the branching deadline.
blocking-b2g: --- → 2.1?
Comment 11•11 years ago
|
||
[Blocking Requested - why for this release]:(In reply to Wesley Huang [:wesley_huang] from comment #10)
> triage: this is more like a feature.
This is part of the goal to make the core apps Messaging, Phone, Contacts, and Settings fully accessible for version 2.1. Re-requesting 2.1 blocking.
blocking-b2g: backlog → 2.1?
Assignee | ||
Updated•11 years ago
|
Attachment #8474914 -
Flags: review?(schung)
Comment 12•11 years ago
|
||
Hi Eitan, the patch is great! but sorry I still have some questions for you on github. The main concern is the role presentation for other list item, and they seems no need to expose in ally tree either. Could you please confirm it? Thanks!
Flags: needinfo?(eitan)
Assignee | ||
Comment 13•11 years ago
|
||
(In reply to Steve Chung [:steveck] from comment #12)
> Hi Eitan, the patch is great! but sorry I still have some questions for you
> on github. The main concern is the role presentation for other list item,
> and they seems no need to expose in ally tree either. Could you please
> confirm it? Thanks!
Replied in the PR.
Elements with role presentation get removed from the a11y tree, their descendants still stay though. It is a way to sanitize the tree.
In the case here we have ul -> li -> a. Since a is the actionable node, it should have an appropriate role of 'option'. The spec says that 'options' need a parent of 'listbox', since the DOM parent is an li, we need to remove it and make the ul (with role 'listbox') the direct parent in the a11y tree, this is done via the 'presentation' role which basically says the element is there for layout purposes only. I hope that clears in up further.
Flags: needinfo?(eitan)
Comment 14•11 years ago
|
||
(In reply to Eitan Isaacson [:eeejay] from comment #13)
> (In reply to Steve Chung [:steveck] from comment #12)
> > Hi Eitan, the patch is great! but sorry I still have some questions for you
> > on github. The main concern is the role presentation for other list item,
> > and they seems no need to expose in ally tree either. Could you please
> > confirm it? Thanks!
>
> Replied in the PR.
>
> Elements with role presentation get removed from the a11y tree, their
> descendants still stay though. It is a way to sanitize the tree.
>
> In the case here we have ul -> li -> a. Since a is the actionable node, it
> should have an appropriate role of 'option'. The spec says that 'options'
> need a parent of 'listbox', since the DOM parent is an li, we need to remove
> it and make the ul (with role 'listbox') the direct parent in the a11y tree,
> this is done via the 'presentation' role which basically says the element is
> there for layout purposes only. I hope that clears in up further.
Thanks for the explanation. Although we have same ul -> li -> a structure in the Thread list codebase, but we didn't use <a> for handling the events, so it's fine without attentional role for elements currently. r=me and really appreciate your help :)
Comment 15•11 years ago
|
||
Comment on attachment 8474914 [details] [review]
Link to Github pull-request: https://github.com/mozilla-b2g/gaia/pull/23013
BTW, I think it's 2.1 blocker(if we really want to address a11y issue in 2.1) instead of feature because this makes user unable to complete recipient input under a11y senario.
Attachment #8474914 -
Flags: review?(schung) → review+
Assignee | ||
Comment 16•11 years ago
|
||
Assignee | ||
Updated•11 years ago
|
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 17•11 years ago
|
||
Comment on attachment 8474914 [details] [review]
Link to Github pull-request: https://github.com/mozilla-b2g/gaia/pull/23013
[Approval Request Comment]
[Bug caused by] (feature/regressing bug #):
[User impact] if declined: Screen reader users will not be able to sent SMS messages
[Testing completed]: Introduced unit tests, and they pass on tbpl b2g-inound.
[Risk to taking this patch] (and alternatives if risky): Minor risks due to styling changes.
[String changes made]: None.
Attachment #8474914 -
Flags: approval-gaia-v2.1?
Updated•11 years ago
|
Attachment #8474914 -
Flags: approval-gaia-v2.1? → approval-gaia-v2.1+
Comment 18•11 years ago
|
||
Updated•11 years ago
|
blocking-b2g: 2.1? → ---
Comment 19•11 years ago
|
||
Removing the flag, as it's already landed in 2.1
You need to log in
before you can comment on or make changes to this bug.
Description
•