Repository navigation
Let popovertarget alone record each banner popover's invoker and expanded state - #2502
Merged
Merged
Conversation
leaf-agent
approved these changes
Oct 12, 2026
leaf-agent
added a commit
that referenced
this pull request
Oct 12, 2026
A website publication has no status disclosure after #2502, so the public session reference test waited for a status detail that cannot exist. This changes the test to assert that the detail is absent, then keeps its checks that the reference is hidden until More opens and can be copied. The [failed main run](https://github.com/max-sixty/leaf/actions/runs/38211557350) timed out on the old locator. The focused test failed before this change and passed afterward: `uv run pytest tests/test_render_startup.py::test_a_website_example_shows_its_public_session_reference -q -n0 --tb=short`. Co-authored-by: leaf-agent <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The banner's three native popovers (status explanation, More, Versions) each stated their invoker relationship twice: once as
popovertargetand again as anlfInvokerexpando from popover to button, plus a hand-writtenaria-expandedthat the status view repainted on every toggle. The attribute is now the only record.Lit follow-up review, item 33:
lfInvokerwrites are gone frombanner-status-view.js,banner-toolbar.jsandversion-picker.js.transitionNativeAncestor(keyboard/layer-stack.js) derives the invoker it reopens a popover with from thepopovertargetattribute in its tree, andbannerControlDoornames the More door directly, since.lf-banner-menuis only everoverflowMenu.aria-expanded. Chrome maps expanded and collapsed natively for apopovertargetinvoker; I checked this in Chrome 155's accessibility tree over CDP, and a disabled Versions button (no popover target) reports neither. The status view's repaint on toggle existed only to refresh the attribute and is removed, as is the version picker's#presentDisclosure. The keyboard disclosure scope never applied to banner chrome, so the shortcut bar andaria-keyshortcutson these buttons are unchanged (probed before and after).closeNativeLayerguard inpresent()goes.banner.jsnames the approval wait reason once and uses it at both sites, rather than assigning it and passing it straight back in.Line deltas, measured against
main(excluding tests, vendored bundles and Markdown):accessible_expandedhelper intests/render_harness.pyreads the accessibility tree.test_banner_status_keeps_publication_links_outside_its_disclosurenow asserts that tree, and that a publication shows no disclosure, rather than node identity. Attribute assertions on the three invokers are removed where an adjacent popover visibility assertion already states the user-visible result.Behaviour change: assistive technology reads expanded state for these three buttons from the platform rather than from an attribute, and in publication mode the page no longer carries a hidden, unopenable status popover.