Files
airship/packages
Nayan bab7a47117 feat(overlay): move a popover off what it covers, and answer for every edge
A popover with a title gets a bar you can drag it by, because the ones that edit
what they sit over — stroke settings, advanced type — hid the rows they were
changing. Once moved it stays moved, since `place()` is wired to scroll and
resize and re-anchoring a surface somebody deliberately put somewhere is what
makes a movable thing feel broken rather than absent.

That bar is a pointer affordance and says so. It is a `POINTER_ONLY` draggable,
and dnd-kit stamps a tab stop and `aria-roledescription="draggable"` onto any
handle unless the attribute is already there — which would leave a control that
announces itself as movable and answers no key. It carries its own `tabindex`
to stop that, is hidden from assistive tech, and the title moves onto the shell
so nothing is lost. Unlike the frame-list grips there is no keyboard verb to
offer beside it, because a popover that never moves is fully usable.

The Stroke section answers for all four edges rather than writing the shorthand,
and the advanced form hands its controls back when it closes. Skipping that was
justified by `renderBody` closing every popover as it destroys the registry,
which is true of the render path and not of the user path — Escape or an outside
press closes it without re-rendering anything, so its rows stayed registered and
`reseed` wrote into detached fields on every refresh afterwards.

Right-click works. `contextmenu` was on the swallowed list, so it did nothing
anywhere in the editor and nothing was ever put in its place; it moves to the
picker rather than simply coming off, because the browser's own menu over an
element you are editing is not the right answer either.

`styles/index.test.ts` gains the check that would have caught two class names
applied with no rule anywhere. Both silently took their box from `.pop-modal` —
right for the palette and wrong for a sixty-row reference that got a container
sized for ten results and a query.
2026-08-15 10:24:52 +05:30
..