Page MenuHomePhabricator

Ensure Wikimedia Portal article statistics are read out correctly by assistive tech
Closed, ResolvedPublic

Description

Description

Screenreaders cannot properly read the article statistics on www.wikipedia.org because spaces are used instead of commas. I.e. "1 000 000" is read out as "one, zero, zero, zero, zero, zero, zero" instead of "one million".

This has currently been tested in Safari/VO and Chrome/VO

Screen Shot 2021-05-20 at 11.48.23 AM.png (492×952 px, 44 KB)

Screen Shot 2021-05-20 at 10.55.50 AM.png (1×2 px, 321 KB)

Suggested changes

  • Update the numbers from "1 650 000+" to "1,650,000+"
  • Ensure the numbers are localized correctly, ie using toLocaleString

Developer notes

  • The code that needs to be updated helpers.formatNumber in hbs-helpers.global.js

Acceptance criteria

  • Article statistics are read out as numbers rather than digits on major screenreader combinations

Event Timeline

bwang renamed this task from Use commas in Wikimedia Portal article statistics to Ensure Wikimedia Portal article statistics are read out correctly by assistive tech.Aug 13 2021, 5:20 PM
bwang updated the task description. (Show Details)

Change 983142 had a related patch set uploaded (by WQuarshie; author: WQuarshie):

[wikimedia/portals@master] Article statistics ensuring scrren readers can properly read out numbers on wikipedia.org

https://gerrit.wikimedia.org/r/983142

Change 983142 merged by jenkins-bot:

[wikimedia/portals@master] Article statistics ensuring scrren readers can properly read out numbers on wikipedia.org

https://gerrit.wikimedia.org/r/983142

Jdrewniak subscribed.

Just deployed this today. Looks good!