Closed Bug 2056347 Opened 2 months ago Closed 1 month ago

Weather widget [a11y] Missing alternative text

Categories

(Firefox :: New Tab Page, defect)

Firefox 154
defect

Tracking

()

RESOLVED FIXED
157 Branch
Accessibility Severity s2
Tracking Status
firefox157 --- fixed

People

(Reporter: A02291979, Assigned: rhamoui, NeedInfo)

References

(Blocks 2 open bugs)

Details

(Keywords: access, Whiteboard: [hnt])

Attachments

(2 files)

Impacted Section/Element

HNT

Steps to Reproduce

Open DevTools. Inspect the "Weather" widget while its size is set to small. While using a screen reader, navigate into the widget. Compare the visible label to what the screen reader announces.

Expected Behavior

The screen reader announces all of the content visually presented in the widget, including the current weather conditions that are visually represented by a weather icon (for example "Sunny").

Actual Behavior

All information presented visually, except the conditions represented by the weather icon, are exposed to screen reader users.

User Impact

Screen reader users do not receive the current weather conditions because the weather icon lacks a text alternative.

WCAG 2.2 References

Recommendations

Apply role="img" and an aria-label indicating the conditions, e.g., <span class="weatherIcon iconId1 role="img" aria-label="sunny"></span>.

Testing Environment

Any

Assistive Technology Used

Any

Further Reference

Severity

3-Moderate

Component: General → New Tab Page

S2 because there is information which is available to some users but not others.

Accessibility Severity: --- → s2
Summary: [a11y] Missing alternative text → Weather widget [a11y] Missing alternative text

The severity field is not set for this bug.
:thecount, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(sdowne)
Blocks: 2060957
Flags: needinfo?(mcrawford)

FYI - This should be a straight forward fix. We have a hidden element, weather-info-description that contains the conditions string in text. We can add that prop to an ARIA-attr, etc.

Flags: needinfo?(mcrawford)
Whiteboard: [hnt]
Assignee: nobody → rhamoui
Attachment #9632592 - Attachment description: WIP: Bug 2056347 - Add weather forecast description to Weather widget's small size for screenreaders. home-newtab-wattle-reviewers-rotation → WIP: Bug 2056347 - Add weather forecast description to Weather widget's small size for screenreaders. #home-newtab-wattle-reviewers-rotation
Attachment #9632592 - Attachment description: WIP: Bug 2056347 - Add weather forecast description to Weather widget's small size for screenreaders. #home-newtab-wattle-reviewers-rotation → Bug 2056347 - Add weather forecast description to Weather widget's small size for screenreaders. r=#home-newtab-wattle-reviewers-rotation
Pushed by rhamoui@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/ab6a13cbbb70 https://hg.mozilla.org/integration/autoland/rev/475881bf8dda Add weather forecast description to Weather widget's small size for screenreaders. r=mconley
Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 157 Branch
QA Whiteboard: [qa-triage-done-c158/b157]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: