Closed Bug 1127955 Opened 9 years ago Closed 9 years ago

[Calendar] month view: "other month" label should be set as aria-label instead of hidden text

Categories

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

x86
macOS
defect
Not set
normal

Tracking

(b2g-v2.2 fixed, b2g-master fixed)

RESOLVED FIXED
2.2 S5 (6feb)
Tracking Status
b2g-v2.2 --- fixed
b2g-master --- fixed

People

(Reporter: mmedeiros, Assigned: obara.justin)

References

Details

(Keywords: late-l10n)

Attachments

(2 files, 1 obsolete file)

Attached image other-month-label.png
right now the string "other month" is set on the markup:

<li class="past other-month" data-date="d-2014-11-28" aria-describedby="month-view-day-d-2014-11-28-busy-indicator month-view-day-d-2014-11-28-description" id="month-view-day-d-2014-11-28" role="gridcell">
  <span class="day" role="button">28</span>
  <div id="month-view-day-d-2014-11-28-busy-indicator" class="busy-indicator" aria-hidden="true"></div>
  <span id="month-view-day-d-2014-11-28-description" aria-hidden="true" data-l10n-id="past-other-month">Other month</span>
</li>

`past-other-month` and `future-other-month` should probably use the ariaLabel instead of setting the textContent.

in some languages that doesn't use the latin alphabet you can actually see some artifacts caused by the hidden text (they overflow a little bit) - see attached screenshot
Blocks: gaiaa11y
See Also: → 1102506
Assignee: nobody → obara.justin
Autolander will automatically attach patches for you from now, so please use the attachment next time that it generates if possible. For more info see the announcement here: https://groups.google.com/forum/#!topic/mozilla.dev.gaia/cTevbcnUr38 Let me know if you have any problems or suggestions about how to improve the process. Thanks!
Attachment #8558238 - Flags: a11y-review?(yzenevich)
Attachment #8558239 - Attachment is obsolete: true
Attachment #8558239 - Flags: a11y-review?(yzenevich)
Comment on attachment 8558238 [details] [review]
[PullReq] jobara:1127955 to mozilla-b2g:master

Looks good from a11y standpoint. Please rename the keys though to something new (see github comment). Mark miller for review once the comment is addressed. Thanks a lot, Justin!
Attachment #8558238 - Flags: a11y-review?(yzenevich) → a11y-review+
Attachment #8558238 - Flags: review?(mmedeiros)
Attachment #8558238 - Flags: review?(mmedeiros) → review+
Keywords: checkin-needed
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Comment on attachment 8558238 [details] [review]
[PullReq] jobara:1127955 to mozilla-b2g:master

[Approval Request Comment]
[Bug caused by] (feature/regressing bug #): improvement, not a bug
[User impact] if declined: screen reader actually reads off transparent text rather than a proper label.
[Testing completed]: unit and on device
[Risk to taking this patch] (and alternatives if risky): low
[String changes made]: https://github.com/mozilla-b2g/gaia/pull/27866/files#diff-97b7fed57927556b91fb72d4d1b8c8b5
Attachment #8558238 - Flags: approval-gaia-v2.2?
Attachment #8558238 - Flags: approval-gaia-v2.2? → approval-gaia-v2.2+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: