Skip to content

fix: give playground presets a box for comment outlines - #4263

Merged
leaf-agent merged 1 commit into
mainfrom
fix/issue-4244
Oct 26, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
fix/issue-4244

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

Playground presets with stable ids had no box for an element comment to outline: display: contents removed the member's box, and its generated button is chrome that the shared geometry reading correctly excludes. Give each preset an inline flex box, so pointing at the member has a real outline target. This preserves #3952's intent that authors can give presets stable ids.

The notification playground render-gate test fails on main in both color schemes and passes with this change. The narrow-screen test for long preset labels, preset application and Reset also passes. pnpm run check passes, including the runtime tests.

Desktop and phone leaf-dev stills comparisons of playground-controls are unchanged, independently reviewed. A served base/head probe measures the same 119.25×32 button at the same coordinates; the preset now occupies that box too. Startup requests and JavaScript bytes are unchanged; the stylesheet adds 232 bytes before presentation to supply the outline target from first paint.

Closes #4244 — automated triage

Preset members accept stable ids for pointing at them (#3952), but display: contents leaves their only drawn part inside generated button chrome. Give the member its own flex box so the shared geometry reading can outline it without treating controls as page content.

Closes #4244
@leaf-agent
leaf-agent merged commit 6e9498c into main Oct 26, 2026
5 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-4244 branch October 26, 2026 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Notification preset words lack a box for comment anchoring

1 participant