You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
a11y/label-content-name-mismatch: one component on 24 locale copies is 69 errors, and is double-reported by identical-links-same-purpose #2226
Source: MCP feedback fb_266 (run 01M7XFXVD1CCNXM5V1WJ510QPH, site incredible.one).
Seen. 25 pages are 24 locale copies of one page. a11y/label-content-name-mismatch reported 69 errors and was the editor summary's #1 priority ("error on all 25 pages"). Items are the same component per locale (visible "cellmark" vs aria-label "baca kisahnya" / "geschichte lesen" / ...; button "english" vs aria-label "language"). The same elements also produce a11y/identical-links-same-purpose (23 items), so one defect is reported three times. The mismatch is real for the card link (WCAG 2.5.3) but is one component fix.
Expected. Dedupe by (selector + visible text + normalized aria-label) across hreflang siblings and report once with "N locales"; cap an error's score contribution per unique component; do not run identical-links-same-purpose on elements the mismatch rule already flags. Related: private epic squirrelscan/repo#1880 (dedupe at the source).
The same elements are not reported by both label-content-name-mismatch and identical-links-same-purpose: identical-links-same-purpose skips a link whose visible text is missing from its aria-label (the condition label-content-name-mismatch already flags), with a fixture that has both rules' trigger on one link and asserts exactly one finding.
Links that only identical-links-same-purpose would flag (visible text inside the accessible name, same name with different targets) are still reported (existing tests green plus one new case).
Moved to pub#2236 (planning, 2026-11-22): collapsing one component across 24 locale copies into one finding, and counting it once in the score. Both rules are page-scope, so that needs a cross-page design first.
met: links only identical-links flags still reported (+1 new case) (re-checked): new test 'a visible text inside the accessible name with different targets still warns'; packages/rules/tests/identical-links-same-purpose.test.ts 14 pass
Decision (planning, 2026-11-22): this issue now ships only the double-report fix. identical-links-same-purpose skips links whose visible text is missing from their aria-label, which is exactly what label-content-name-mismatch flags, so one problem gives one finding. The 24-locale collapse and the score counting it once moved to pub#2236. Both rules are page-scope, and mayCollapseAcrossPages has no consumer anywhere, so that part needs a design call first. The acceptance criteria above are updated to match.
Activity
nc9 commentedon Nov 22, 2026
Decision (planning, 2026-11-22): this issue now ships only the double-report fix. identical-links-same-purpose skips links whose visible text is missing from their aria-label, which is exactly what label-content-name-mismatch flags, so one problem gives one finding. The 24-locale collapse and the score counting it once moved to pub#2236. Both rules are page-scope, and
mayCollapseAcrossPageshas no consumer anywhere, so that part needs a design call first. The acceptance criteria above are updated to match.nik
fix(rules): identical-links-same-purpose skips links label-content-na…