Repository navigation
Description
axe-core 4.14 runs label-content-name-mismatch (WCAG 2.5.3, Label in Name) by default, and 17 journeys that read pages with axe now fail on it. #7289 bumped axe-playwright-python from 0.1.8 to 0.1.9. The bundled axe.min.js moved from axe v4.12.1 to v4.14.0, and the rule lost its experimental tag, which is what kept it from running by default. I checked this by downloading both wheels and reading the rule's tags in each bundle. The rule reports an element whose accessible name, set by aria-label or another attribute, leaves out its visible text.
Failing tests (test-macos in scheduled run 45985529285 on 21c613f05; every finding is label-content-name-mismatch (serious)):
tests/journeys/test_render_gate.py::test_page_fixture_rendersforalert-review,github-discoveries,pr-walkthrough,review-parts,review-a-fix,rust-sort,wt-merge,file-tree-input,diff-thread-gallery,playwright-trace-gallery,file-tree,worktree-diffs,thread-panel-gallery,playwright-paired-resultsandsidebar-contentstests/journeys/test_render_controls.py::test_the_chrome_a_key_opens_has_no_serious_violations[420-dark]and[1200-light](focused in Threads)
The Linux test job of that run stopped in setup (a 403 from packages.microsoft.com during playwright install --with-deps), so these journeys didn't run on Linux. The rule doesn't depend on the platform, so I expect the same failures there, but no run has shown it yet. None of these tests failed in the previous scheduled run, 45805148564, on 7836b3859, which came before #7289.
Elements reported, grouped by the selector axe prints:
span[aria-controls=…], the most common:ar-canary,ar-latencyand the rest on alert-review, andparts-overview,parts-run-listand the rest on review-parts. These look like the entries of a side list or parts list whose name is set apart from their text.- The floating panel's buttons
button[aria-label="Threads"],[aria-label="On Me"]and[aria-label="On Codex"]. Their visible text probably includes something beyond the label, such as a count. a[aria-label="PrefectHQ/colin"]and others on github-discoveries,article[data-change=…] > …,button[aria-controls="fix-before-image-scale-options"]andbutton[aria-description="Fit · 92%"].
Diagnosis so far. Each finding is a real WCAG 2.5.3 gap: a voice-control user who says the visible words can't reach the control. So the repair belongs in each name's owner, which should make the accessible name contain the visible text, or drop the aria-label where the text already names the control. Excluding the rule would hide that gap. Before choosing names, read .claude/skills/developing-leaf/references/glossary.md, since the panel's button names are user-facing text. The full findings, one per page and scheme, are in the run's test-macos log under each test_page_fixture_renders[...] failure.
Cause of a failure tracked in #7391.
Activity
leaf-agent commentedon Nov 27, 2026
#7403 fixes the Leaf-owned findings. Each control is now named by the words it shows: panel tabs ("Threads 2"),
lf-tabsrows, diff line numbers on unchanged lines, the trace's image-scale button, margin entries holding several threads, and the two examples' speed buttons. The github-discoveries avatar, a duplicate link, is now hidden from assistive tech. With it, the render gate passes locally on 13 of the 15 failing pages. Its CI and landing are with tend-land, and it saysRefs, so this issue stays open for two parts:file-tree,file-tree-input.@pierre/trees1.0.0, the latest release, names each row by its path (getFileTreeRowAriaLabelinrender/FileTreeView.js) and draws the git-status letter (M, A, D, R) beside it, outside the name. axe doesn't exemptaria-hiddentext from this rule, so Leaf can't fix it by hiding the letter. The repair is upstream, or a change to howlf-file-tree.jspasses git status.test_the_chrome_a_key_opens_has_no_serious_violations. Once the panel tabs pass, this sweep reaches the command reference. Each option there is named by its title alone (aria-labelledby, inbrowser/runtime/panel/page-keys/command-reference.js), while the row also shows its key chips and description. Fixing it means choosing what a screen reader hears for every row of the key reference, which I left out of fix: name panel tabs, list rows, diff gutters, the trace's scale and margin entries by the words they show #7403.fix: name panel tabs, list rows, diff gutters, the trace's scale and …
leaf-agent commentedon Nov 28, 2026
#7491 fixes the command-reference part. Each row of
?now takes its accessible name from its own content (title, spoken keys, description), so the sweeptest_the_chrome_a_key_opens_has_no_serious_violationspasses at both widths. It failed onmainatcd2495ac7. A screen reader hears the same words as before, but now all of them are in the name. Naming a row by its title plus the chips' spoken label isn't enough: the chips show glyphs (⌘, arrows) that the spoken label doesn't contain, so axe still flags it. The PR saysRefs, and its CI and landing are with tend-land.What remains:
file-tree,file-tree-input. Both still fail onmain. I probed the rows in a browser: every flagged row is a path that carries a git status. Its name is the file name (config.rs), and its visible text adds the status letter (M,A). That comes from@pierre/trees1.0.0:getFileTreeRowAriaLabelnames the row, andgetBuiltInGitStatusDecorationdraws the letter as text outside the name. Neither can be configured fromlf-file-tree.js, which passes status throughtree.setGitStatus. One folder row (picker) is flagged too. I didn't establish which of its text falls outside the name. I see two ways to fix this:@pierre/treesnames no repository in itspackage.json, so I haven't found where to file this.setGitStatus, and draw it through Trees'renderRowDecorationas an icon with a title. This changes how a changed file looks in every file tree, so I haven't made it here.fix: name each command reference row by the words it shows (#7491)
leaf-agent commentedon Nov 29, 2026
This issue now waits on a maintainer decision about how a file tree shows git status. #7403 and #7491 have merged. In the scheduled run after them, 46137118943 at
ad7b71b63, onlytest_page_fixture_renders[file-tree]and[file-tree-input]still reportlabel-content-name-mismatch, in bothtestandtest-macos. No later commit touchespackages/file-treeor the@pierre/treespin.The findings are the ones the previous comment traced.
@pierre/trees1.0.0 names each row witharia-labelset to its path, then draws the status letter (M,A) as text inside the button. Leaf's only input istree.setGitStatus. Trees' label options change the letter'stitle, not the row's name, solf-file-tree.jscan't close the gap through configuration. That leaves two routes, and both need a call I won't make for every file tree:setGitStatus, and draw the status throughrenderRowDecorationas an icon with a title. Every changed file in every file tree would look different, and thedata-item-git-statusattribute that Trees sets on each row would go away.Which one should it be? If the answer is the Leaf route, the next run will build it and post before and after stills of
file-tree.