LearnNewsExamplesConnect
Frontmatter
assignees[]
createdAtOct 20, 2026, 10:43 AM
updatedAtOct 20, 2026, 12:33 PM
githubUrlhttps://github.com/neomjs/neo/issues/19878
authorneo-opus-ada
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtOct 20, 2026, 12:33 PM

A header menu option with one match reads "1 matches" to screen readers

Closed v13.3.0/archive-v13-3-0-chunk-2 bughelp wantedgood first issuehacktoberfestaigridaccessibility
neo-opus-ada
neo-opus-ada commented on Oct 20, 2026, 10:43 AM

Context

Welcome! This is a small, self-contained accessibility fix in the grid header menus that Neo.mjs 13.3 introduces (#19643). You need a fork, Node and the dev server; no Agent OS, Docker or AI tooling.

A header menu lists a column's values, each with the number of rows that match it. A screen reader announces each option by its aria-label, which src/list/ValuePicker.mjs builds in createPooledItem():

node['aria-label'] = this.getOptionLabel(item.record) + ', ' + (item.record.count ?? 0) + ' matches';

So a value with exactly one match is announced as "sloemo01, 1 matches".

The Problem

To see it:

  1. npm install, then npm run server-start.
  2. Open http://localhost:8080/examples/grid/issues/index.html, hover the Author header and click its ▾.
  3. Inspect the sloemo01 option in DevTools: aria-label="sloemo01, 1 matches".

The tests currently expect the wrong text: test/playwright/e2e/grid/HeaderMenuStateNL.spec.mjs contains 1 matches twelve times, so they would also fail once the label is fixed. Those expectations change together with the label.

The Architectural Reality

  • The label belongs to the option row the value picker renders (createPooledItem() in src/list/ValuePicker.mjs). The visible row shows only the number; only the aria-label has the word.
  • test/playwright/unit/list/ValuePicker.spec.mjs already reads the label ('Value 0, 20000 matches'), so a unit case can cover the singular form; unit tests run locally without anything else installed.
  • HeaderMenuStateNL.spec.mjs belongs to the browser tier that the maintainers' CI runs on every pull request. You do not need to run it locally; updating its expected strings is enough.

The Fix

  1. In createPooledItem(), use match when the count is 1 and matches otherwise: "0 matches", "1 match", "2 matches".
  2. Add a unit case to test/playwright/unit/list/ValuePicker.spec.mjs for a value with one match.
  3. In test/playwright/e2e/grid/HeaderMenuStateNL.spec.mjs, change every expected …, 1 matches to …, 1 match.

Acceptance Criteria

  • AC-1 An option whose count is 1 has the aria-label <label>, 1 match; every other count keeps matches.
  • AC-2 npm run test-unit -- test/playwright/unit/list/ValuePicker.spec.mjs passes and covers a count of 1 and a plural count.
  • AC-3 No spec under test/ still expects 1 matches.

Out of Scope

  • Translating the label; the engine has no string catalog for it.
  • The visible count in the option row.

Related

#19643 (the header menus) · #18985 (this year's Hacktoberfest door) · found while testing the 13.3 issues showcase (#19756)

unowned-rationale: a good first issue for an outside contributor; a maintainer reviews the pull request.

Live latest-open sweep at 2026-10-20 08:45Z (latest 20 open) and gh search issues "matches aria-label": no equivalent.

Origin Session ID: ad84dc14-8baf-4f95-a7dd-a9e224f51c31

jay23606 cross-referenced by PR #19881 on Oct 20, 2026, 11:00 AM
tnalbant cross-referenced by PR #19884 on Oct 20, 2026, 11:40 AM
jay23606 referenced in commit 81c9966 - "fix(list): use singular "match" in ValuePicker option labels for a count of one on Oct 20, 2026, 11:55 AM
tobiu closed this issue on Oct 20, 2026, 12:33 PM
tobiu referenced in commit 79d4389 - "fix(list): announce a single match as "1 match" in ValuePicker (#19878) (#19884) on Oct 20, 2026, 12:33 PM
tobiu referenced in commit 9771beb - "fix(grid): sorted headers announce their direction through aria-sort (#19886) (#19908) on Oct 20, 2026, 2:53 PM