Closed Bug 1570308 Opened 5 years ago Closed 5 years ago

Add a screen reader digestible form of the tracking protection graphs

Categories

(Firefox :: Protections UI, task, P1)

task

Tracking

()

RESOLVED FIXED
Firefox 70
Tracking Status
firefox70 --- fixed

People

(Reporter: MarcoZ, Assigned: mtigley)

References

Details

(Keywords: access, Whiteboard: [protection-report] [skyline])

Attachments

(1 file, 1 obsolete file)

The graphs, as they are now, are merely a string of disjointed numbers, and some information is probably missing completely.

To fix this, provide an alternative representation in a data table, which could be visually hidden, but be visible to screen readers. Additionally, hide the graphs from assistive technologies via aria-hidden="true" so the disjointed numbers no longer appear. Since this is not simply an image that shows the graphs, but the numbers and visuals are made up of several HTML elements, the aproaches given in this tutorial don't really apply to us. If they did, example 1 approach 1 or approach 3 would be good candidates for implementation.

Bugbug thinks this bug is a task, but please change it back in case of error.

Type: defect → task
Priority: -- → P1

Erica, since I couldn't get this out of my head, I've started on turning the graphs sections into a table (without changing the visuals). For that, a few IDs need to be generated so they can be referenced by the various WAI-ARIA attributes. Through a trick, AKA aria-owns, I make the day for each bar into a row header for that.

The one thing that is missing is an addition I would like that would give me both the tooltip text and the percentage of each bar to a day. For that, the l10n for each of the tooltips would have to be enhanced with an .aria-label section that contains both the text of that tooltip + an addition of " (x%)", where x is obviosly the calculated percentage, so the final result would be "cross-site cookies (40%)". That would be text only visible to screen readers on the same element (the div in the inner-bar) that gets the .title attribute. Is that even possible in one go? Would appreciate some help on that part, since I am not familiar with FTL.

Attachment #9084489 - Flags: feedback?(ewright)

Thanks :marcoZ! I'll be travelling without a laptop or any signal for the next two weeks, please direct any questions to Micah. Otherwise I'll look into this when I'm back.

Flags: needinfo?(mtigley)

I'll be working on this while Erica is away.

Assignee: nobody → mtigley
Status: NEW → ASSIGNED
Flags: needinfo?(mtigley)
Comment on attachment 9084489 [details] [diff] [review]
WIP for an accessible table of the graph

Dealing with this now in bug 1573197.
Attachment #9084489 - Attachment is obsolete: true
Attachment #9084489 - Flags: feedback?(ewright)
Pushed by mtigley@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/37af412cc9f1
make legend understandable to screen readers r=fluent-reviewers,mtigley,flod,MarcoZ
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 70
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: