Skip to content

docs(spec): AST-116 Popover anchoring, modality and layer focus return (draft) - #11112

Merged
nynexman4464 merged 22 commits into
mainfrom
nynexman4464/docs/ast-113-popover-anchoring
Nov 19, 2026
Merged

nynexman4464 merged 22 commits into
mainfrom
nynexman4464/docs/ast-113-popover-anchoring

Conversation

@nynexman4464

@nynexman4464 nynexman4464 commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Exact decision needed

Whether usePopover gains a position-only anchor, whether a repeated show() moves an open popover, whether isModal becomes the modality switch, and whether Popover, Dialog and DropdownMenu share one focus-return rule:

  1. anchorRef on usePopover: a ref to any Element, which names the element the popover sits on and nothing else. It gets no ARIA and no handler, and the trigger keeps its role (FR1–FR3, FR5, FR6, DEC-1, DEC-8). Popover's own anchorRef, a button that is also the trigger, is unchanged (FR23).
  2. A show() in the same press moves an open popover that sets anchorRef to the element the ref now holds, with no close (FR9, DEC-10). A popover with no anchorRef keeps the released same-gesture rules. architecture:layer-runtime INV7 gains that line.
  3. What a layer does while its anchor is out of view is not decided here. Every anchored layer follows spec:AST-059 FR5, and usePopover has no input for it. docs(spec): AST-059 FR5 hides a layer while its anchor is out of view, unless a person is using it (draft) #12736 proposes a change to that rule, for that record's owner to decide.
  4. isModal (boolean, default true) sets Tab containment and aria-modal together. A non-modal popover lets Tab follow the browser's order: its controls come after its trigger, or after the anchor when there is no trigger (FR12). This supersedes component:Popover DEC-9 and AR3, and DEC-8's modal sheet, for isModal: false.
  5. One focus-return rule for Popover, Dialog and DropdownMenu, with no off switch:
    • it acts only on stranded focus;
    • a child layer that takes focus inherits the parent's chain, and a layer whose open child holds no focus returns focus itself (FR19);
    • the fallback chain is the element focused at open → re-resolved opener → anchor → the opener's former place → nearest ancestor → parent layer → main, never the body.
  6. No input vetoes an outside dismissal. OQ1 keeps the question open, with both candidates and the cases, so it is not re-derived later.

The decision is nynexman4464's, as the record's owner.

What changed from the earlier draft of this record

This head makes three changes to the earlier draft:

  • anchor (a ref or a function) is now anchorRef, a ref only. Every other public ref-valued input in the package ends in Ref, architecture:public-component-api INV2 names a ref a hook takes for the element's job, as triggerRef is, and a caller that holds an element sets the ref before it calls show().
  • anchorOutOfViewBehavior is gone. usePopover has no input for an anchor that is out of view: the layer rule decides (spec:AST-059 FR5), and docs(spec): AST-059 FR5 hides a layer while its anchor is out of view, unless a person is using it (draft) #12736 proposes changing that rule for every layer.
  • onOutsidePress is not implemented. Its known cases are presses that show the same popover somewhere else, which FR9 covers with no input.

With those, AR1 (focus leaves a surface that hides) narrows to one case, a surface whose anchor leaves the document. The first-load size exception the earlier draft added to architecture:component-import-boundaries is removed; this PR no longer touches that record.

Records changed

  • spec:AST-116 (new): the record this PR adds.
  • architecture:layer-runtime: "anchor" for the element a layer anchors to (Purpose, positioning modes, INV18, INV20, INV22), and the same-gesture show() in INV7 and the browser-close note.
  • component:Popover: the Anchor concept row, the Modality row, AR3 and its rows narrowed to the modal default, Amended: lines on DEC-8 and DEC-9, and the released-default line.
  • component:Dialog and component:DropdownMenu: focus return points to FR17–FR20, with gap lines.
  • family:overlay-dismissal: FR2 and FR3 gain FR15's exception for a non-modal participant, with a gap line and two matrix rows.

Existing authority searched

  • component:Popover (current):
    • Trigger composition requires a button anchor; its anchorRef is a button that is also the trigger.
    • AR3/DEC-9 make every Popover a focus region whatever isModal says; DEC-5 supersedes that for isModal: false.
    • AR4 owns focus return today.
  • component:Dialog FR4/AR2 and component:DropdownMenu FR6 own their focus return. FR17–FR20 become the shared rule they point to.
  • spec:AST-059 (current) FR5 and DEC-3: a layer whose anchor has left the viewport holds its position and size and stays visible. This PR leaves that rule as it is.
  • architecture:layer-runtime INV7, INV7a, INV12, INV18, INV21:
    • INV7 already moves a layer when another trigger shows it in the same gesture; FR9 extends it to anchorRef.
    • INV21 (script never moves a layer to follow its anchor).
    • The opener relationship (FR19) lives in the overlays' shared focus return, not in the layer runtime.
  • architecture:public-component-api INV2: a ref a hook takes is named for the element's job, as triggerRef is; INV21: one API per job.
  • Tooltip's and BaseTypeahead's anchorRef: both are refs to an HTMLElement. BaseTypeahead's is position only, as usePopover's is; Tooltip's element is also its trigger.
  • family:overlay-dismissal: Escape ordering, scoped by FR15.
  • component:BottomSheet: its non-modal (hasScrim={false}) sheet is what FR16 presents for a non-modal Popover on a compact touch screen.
  • Code:
    • findTriggerButton and its warning in Popover.tsx.
    • Containment gated only on open in usePopover.tsx.
    • Focus return in three places: useFocusTrap.ts, Dialog.tsx's close branch and removal path, and DropdownMenu's handleLayerHide. utils/focusReturn.ts already holds the temporary-tab-stop helper.
  • Open PRs searched for anchor, Popover, focus trap, outside press, focus return, Tour: none decide these claims.

Decision

See the record. A popover that sets no anchorRef keeps its released anchoring, and a modal one its released dismissal. Three released behaviors change in AST-116 (FR22), each shipped as an accessibility fix with a release note: isModal: false stops containing Tab and scopes its Escape; an isModal: false popover shown as a sheet is a non-modal sheet; Popover, Dialog and DropdownMenu move focus only when the close strands it: focus that used to fall to the body goes to the opener or its stand-in, a Dialog no longer takes back focus a caller moved, and a DropdownMenu no longer focuses its trigger when focus never entered the menu.

Audit of existing isModal: false callers in the repo:

  • PowerSearch's token editor, a dialog popover, and its role-none adding popup (one shared usePopover call): Tab leaves in page order, and Escape works while focus is inside the popover, or on or inside the anchor or trigger (the adding popup's input sits inside the PowerSearch root, its trigger). That matches the editor's own description as a non-modal dialog.
  • The rich text editor's link form, a dialog popover in a published package: the same two changes.
  • The LayerSamePress story and Popover's own tests.

Escape and a non-modal popover (FR15)

Escape and a non-modal popover: where focus is decides who gets the key

A non-modal popover takes Escape only while focus is inside it, or on or inside its anchor or trigger. Anywhere else, Escape goes to the control the person is using, or to the next layer beneath.

A removed anchor (FR6, AR1)

A layer whose anchor is clipped stays where it is (spec:AST-059 FR5). A removed anchor leaves nothing to position against, so a usePopover surface whose anchorRef element leaves the document renders no visible surface, even while a person is using it (FR6). That is the one hide that can strand focus, so AR1 covers it: focus moves to the trigger, else through FR20's chain.

Rejected alternatives

  • A function that returns the anchor, alone or in a union with the ref: a caller that holds an element sets the ref before show(), and one input then has one read rule (DEC-1).
  • A name without Ref, such as anchor: every ref-valued input ends in Ref (DEC-1).
  • A position-only anchor on the Popover component: it grows its props for few callers and gives it two anchor inputs (DEC-8).
  • A BasePopover component: it would share usePopover's job (architecture:public-component-api INV21).
  • Widening Popover's anchorRef to non-buttons: it changes what a released input does to the element it names (DEC-1).
  • A rectangle anchor with no element: every consumer holds an element (DEC-1).
  • A separate focus-region input with a popover-and-anchor cycle: a second name for modality, and a trap the platform does not have.
  • A returnFocus input with a value that skips the return. A caller that wants a specific element focuses it in its hide notification, and FR17 leaves it there.

A veto for outside presses is not in this list: it is open, not rejected (OQ1).

Claim scope and non-goals

usePopover for anchoring and the repeated show(); Popover and usePopover for modality; Popover, Dialog and DropdownMenu for focus return. Out of scope: useLayer options, ContextMenu point opening, the shared Escape/outside stack (spec:AST-003), focus entry, and the Tour component.

Evidence and implementation relationship

Demand, from a survey of one large internal codebase (aggregate counts only):

  • about 123 apps anchor a popover to something other than its trigger, 27 of them through a virtual anchor;
  • more than 70 veto outside presses, which is why OQ1 stays open;
  • more than 87 control focus on close.

Other libraries, from their documentation and source:

  • A separate anchor is a wrapper component (Radix, Ark, Ariakit) or a prop named anchor, anchorEl or target (Base UI, MUI, Fluent); React Aria takes a ref (triggerRef).
  • A per-press veto for outside presses exists in Radix, Ark, Floating UI, React Aria, Base UI and Ariakit.

The fallback chain follows established focus-recovery practice in prior design-system work and current libraries: opener first, then re-resolution, then the opener's former position among its container's tab stops.

How the same-press move behaves today, read from the draft implementation: a press on another control whose handler sets the anchor and calls show() already ends with the popover on the new anchor, but through a browser close and reopen whose close is not reported, and a show() that names the same anchor leaves it closed. FR9 states the contract; its gap line states today's mismatch on main.

Draft implementation PRs, stacked on this record:

Writing rubric results

  • R1 narration: none; Intent and decisions are present tense. DEC-5 states what it supersedes as a fact about authority, not as history.
  • R2 research in the record: none; survey counts, the library survey and prior-art notes live in this description only.
  • R3 evidence naming a change: none; verification cells name tests and states.
  • R4 rejected alternatives: each Rejected: line sits inside its decision (DEC-1, DEC-5, DEC-6 and DEC-8); none sits outside one. DEC-10 has none, because the veto is open, not rejected.
  • R5 pull request or issue references remaining: none.
  • R6 ruled open questions still listing options: none. OQ1 is not ruled, so it lists its two options and the interim answer.
  • R7 project status: ten gap lines in AST-116 (FR1, FR9, FR12, FR15, FR16, FR17, FR19, FR20, FR21, AR4) state today's observable mismatch, and the component records carry matching FRn gap: and ARn gap: lines. The isModal: false caller list is current-state impact, not work order.
  • Decided text: component:Popover DEC-8 and DEC-9 keep their text under their original Decider lines; each gains one Amended: line naming the AST-116 supersession (architecture:knowledge-contracts INV31). AST-116's own Decider lines record its owner's approval.

Scope

Components: usePopover, Popover (isModal and focus return), Dialog, DropdownMenu, useFocusTrap (internal), Layer (internal), utils/focusReturn (internal)

  • This PR contains specification records only.
  • It records observable behavior and preserves equivalent internal implementations.
  • Any named internal mechanism is intentionally public, names its dependent caller/system, and explains why an equivalent implementation would not satisfy the contract.
  • Verification states the evidence layer and failure signal without prescribing CI job/workflow topology.
  • It records one intentional durable decision, not a rescue for a separable tagalong.
  • The canonical knowledge owner, affected current claims, and overlapping open work are named; any ownership collision is resolved or called out for human decision.
  • Adjacent API, visual, accessibility, composition, and implementation facts remain outside scope unless this exact decision depends on them.
  • Public text and artifacts contain no internal Meta context.

Validation

  • pnpm check:knowledge: passes ("Knowledge templates and records are aligned").
  • prettier --check on every changed file: passes.
  • git diff --check: clean.
  • Not covered: nothing here is executed against code; the requirements are verified when the implementation PRs are reworked.

@vercel

vercel Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
astryx Ready Ready Preview Nov 18, 2026 11:54pm UTC

Request Review

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Nov 10, 2026
@astracat-bot

astracat-bot Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🟢 Reviewed (for maintainers only) Nov 19, 2026, 12:48 AM UTC

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This draft spec needs an engineering owner's decision before it can be approved. Four record fixes are needed whatever that decision is.

Owner decision needed: spec:AST-113 adds five Popover and usePopover inputs that no current record covers, and its FR12 none region reverses component:Popover DEC-9. An engineering owner records approval by commenting /approve-spec 8da8cb49394d08382d4e3984ebdd46158a3c91c8 (the author may do this as an engineering owner) or says what to change. The decision covers OQ1–OQ3 and whether a pointer press on a popover-and-anchor anchor should dismiss the popover.

Required fixes:

  • FR17 says opener falls back to the trigger and calls that the released behavior. Popover today returns focus only to the element focused at open, with no trigger fallback, and component:Popover AR4 says "to the trigger". Either state the released rule, or list the change and the AR4 amendment in Current-state impact.
  • FR9 (a cancellable outside press) and FR15 (Escape ignored while focus is outside the region) cannot run on the native popover="auto" dismissal that component:Popover records. List those rows in Current-state impact, and say what such a popover does about auto-popover exclusivity and native close requests.
  • Focus has no defined outcome when anchorOutOfView="hide" hides a surface that holds focus, or when returnFocus="anchor" has no focusable target, which FR2 and FR4 both allow. State both outcomes, for example falling back to opener.
  • Non-goals cite spec:AST-114, which does not exist on main. Drop the id until that record lands.

[Automated review]

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This draft spec needs an engineering owner's decision before it can be approved. Six record fixes are needed whatever that decision is.

Owner decision needed: spec:AST-113 adds anchor, anchorOutOfView and onOutsidePress to Popover and usePopover. It also makes isModal: false drop Tab containment, which reverses component:Popover DEC-9, and gives Popover, Dialog and DropdownMenu one focus-return rule. No current record covers these. An engineering owner records approval by commenting /approve-spec e6927de5062bcaf9e383da8c4a05ed390c5c83e8 (the author may do this as an engineering owner), or says what to change. The decision includes rulings on OQ1 (the names) and OQ2 (the rectangle anchor).

Required fixes:

  • FR22 says that dropping Tab containment for isModal: false is the only released behavior that changes, but FR14–FR16 and FR19–FR21 change Escape, the sheet, role-none popups such as PowerSearch's adding popup, and focus return, and spec:AST-017 requires each one to be named and the isModal: false change to be classified.
  • Current-state impact does not list the component:Popover "Dismissal" and "Light and Escape dismissal" rows that FR9 and FR15 change, or DEC-8, which FR16 changes, and it names a "Modality row" that Popover does not have.
  • Miss: Current-state impact also leaves out component:Popover's "Trigger binding" output and its first side-effects bullet, which both say the trigger is the anchor, a claim that FR1 changes.
  • FR12's non-modal Tab order starts "from the anchor", but FR2 and FR4 allow an anchor that cannot take focus and FR5 allows a popover with no trigger, so the record needs to state the order from the trigger and for a trigger-less popover.
  • FR7's hide (and FR6) can hide a surface that holds focus, and no requirement says where that focus goes or whether it comes back when the anchor returns.
  • DEC-6 claims one focus-return rule "for every layer", but FR17–FR21 cover three components and component:BottomSheet keeps finalFocusRef, so DEC-6 needs a narrower scope and the record needs to say which rule a Popover shown as a sheet follows.

Automated review (maintainer link)

@nynexman4464
nynexman4464 force-pushed the nynexman4464/docs/ast-113-popover-anchoring branch from e6927de to e4cff57 Compare November 11, 2026 15:43
@nynexman4464 nynexman4464 changed the title docs(spec): AST-113 Popover anchoring, dismissal veto, modality and layer focus return (draft) docs(spec): AST-116 Popover anchoring, dismissal veto, modality and layer focus return (draft) Nov 11, 2026

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This draft spec needs an engineering owner's decision before it can be approved, and seven record fixes are needed whatever that decision is.

Owner decision needed: spec:AST-116 adds anchor, anchorOutOfView and onOutsidePress to Popover and usePopover, makes isModal: false drop Tab containment (reversing component:Popover DEC-9), and gives Popover, Dialog and DropdownMenu one focus-return rule, none of which a current record covers. An engineering owner (the author is one) records approval, with rulings on OQ1 (the names) and OQ2 (the rectangle anchor), by commenting /approve-spec e4cff57fd07a908df90235c9dda821d24f3d8856, or says what the record must change. Renumbering the record from AST-113 changed nothing else, so the earlier fixes still apply.

Required fixes:

  • FR22 says that dropping Tab containment for isModal: false is the only released behavior that changes, but FR14–FR16 and FR19–FR21 change Escape, the sheet, role-none popups such as PowerSearch's adding popup, and focus return, and spec:AST-017 requires each one to be named and the isModal: false change to be classified.
  • Current-state impact does not list the component:Popover "Dismissal" and "Light and Escape dismissal" rows that FR9 and FR15 change, or DEC-8, which FR16 changes, and it names a "Modality row" that Popover does not have.
  • Miss: Current-state impact also leaves out component:Popover's "Trigger binding" output and its first side-effects bullet, which both say the trigger is the anchor, a claim that FR1 changes.
  • FR12's non-modal Tab order starts "from the anchor", but FR2 and FR4 allow an anchor that cannot take focus and FR5 allows a popover with no trigger, so the record needs to state the order from the trigger and for a trigger-less popover.
  • FR7's hide (and FR6) can hide a surface that holds focus, and no requirement says where that focus goes or whether it comes back when the anchor returns.
  • DEC-6 claims one focus-return rule "for every layer", but FR17–FR21 cover three components and component:BottomSheet keeps finalFocusRef, so DEC-6 needs a narrower scope and the record needs to say which rule a Popover shown as a sheet follows.
  • Miss: FR4 places the rectangle anchor's box "when the popover opens or the object changes" while DEC-2 says it is "placed once per opening", so the record needs one rule, and the FR4 verification row needs a rectangle replaced while open.

Automated review (maintainer link)

@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

PR Analysis Report

🔎 Preview · 796e811

Storybook · Sandbox · built from this PR's head

Package size: no published package changed; no new dependencies.

Not run on this PR: add ci:run-visual for Visual, ci:run-a11y for Accessibility, ci:run-rtl for RTL.


Generated by PR Enrichment workflow | View full report

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This draft spec needs an engineering owner's decision before it can be approved, and seven record fixes are needed whatever that decision is.

Owner decision needed: spec:AST-116 adds anchor, anchorOutOfView and onOutsidePress to Popover and usePopover, makes isModal: false drop Tab containment (reversing component:Popover DEC-9), gives Popover, Dialog and DropdownMenu one focus-return rule, and writes that direction into five current records. None of this has an engineering owner's approval yet. An engineering owner (the author is one) records approval, with rulings on OQ1 (the names), OQ2 (the rectangle anchor) and OQ3 (one record or three), by commenting /approve-spec b8bbbff9d2734e2fbb94ac857d84e817fc51973d, or says what to change.

Fixes needed:

  • Regression: the isModal: false caller list in Current-state impact and the description's audit miss the rich text editor's link popover and the LayerSamePress story, which reached this branch from main, and PowerSearch's adding popup, so the release note would not tell those users that Tab now leaves the popover.
  • component:Popover still says Tab stays inside the popup "modal or not" in its Tab row, its AR3 and DEC-9 verification row, DEC-9's title and its Open questions, and it still records DEC-8's modal sheet, native popover="auto" dismissal and the trigger as the anchor, all of which contradict the rewritten AR3 and FR1, FR9, FR15 and FR16.
  • DEC-9's paragraph and Rejected line are rewritten under its original Decider line, so please restore them as decided and add the supersession by DEC-5 as a line after the decision.
  • FR22 omits FR16's non-modal sheet as a released change and does not say whether the changes are breaking or accessibility fixes, and FR18 leaves no input that restores the old focus return.
  • FR4 places the rectangle box "when the popover opens or the object changes" while DEC-2 places it "once per opening", so please state one rule.
  • The Intent and DEC-6 still say focus return covers every layer although FR17–FR21 cover three components, BottomSheet's finalFocusRef still moves focus wherever it is, and no rule is given for a Popover shown as a sheet.
  • Popover AR4 returns focus to "the trigger first" while FR20 starts from the element focused at open, layer-runtime INV20 and INV7 still center and move the layer on the trigger, overlay-dismissal FR3 does not scope platform close requests, and Dialog FR4 stays marked settled on shipped behavior it now goes beyond.
Claims and files checked

Review mode: full; reason: spec-record

  • Claim: the records pass the repository's knowledge check. Verified: it passes on this head.
  • Claim: the only isModal: false callers are PowerSearch's token editor and Popover's tests, and no story sets it. False: the rich text link popover, a layer story and PowerSearch's adding popup also set it.
  • Claim: today a non-button anchorRef warns and never anchors. Verified in Popover's trigger lookup.
  • Claim: today's containment runs whenever the popover is open. Verified: the focus trap's activation follows only the open state.
  • Claim: today's outside dismissal is native popover="auto" light dismiss. Verified.
  • Claim: focus return lives in the focus trap, Dialog's close and removal paths and DropdownMenu's hide handler, with a temporary tab-stop helper. Verified.
  • Claim: every default is the released behavior except the named changes. False: FR22 omits FR16's non-modal sheet.
  • Claim: the writing rubric finds no pull-request references, six gap lines and six one-line rejected alternatives. Verified for the new record; Popover's new status line falls outside it (non-blocking).
  • Claim: the pull request contains specification records only. Verified: six Markdown records.
  • File: docs/specs/AST-116-popover-anchoring/spec.md: caller audit, FR22, FR4 against DEC-2, focus-return scope.
  • File: docs/specs/components/Popover/Popover.spec.md: self-contradiction after the AR3 and DEC-9 rewrite, DEC-9 rewritten under its Decider line, AR4 order, status line (non-blocking).
  • File: docs/specs/components/Dialog/Dialog.spec.md: FR4 stays marked settled on shipped behavior.
  • File: docs/specs/components/DropdownMenu/DropdownMenu.spec.md: clear.
  • File: docs/architecture/layer-runtime.md: INV20 and INV7 still use the trigger.
  • File: docs/families/overlay-dismissal.md: FR3 platform close requests are unscoped.

Automated review (maintainer link)

Comment thread docs/architecture/layer-runtime.md Resolved
Comment thread docs/families/overlay-dismissal.md Resolved

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This draft spec needs an engineering owner's decision before it can be approved, and eight fixes are needed whatever that decision is.

Owner decision needed: spec:AST-116 puts anchor, anchorOutOfViewBehavior and onOutsidePress on usePopover, makes isModal: false drop Tab containment (reversing component:Popover DEC-9), gives Popover, Dialog and DropdownMenu one focus-return rule with no off switch, and writes that direction into five current records. None of this has an engineering owner's approval yet. An engineering owner (the author is one) records approval, with rulings on OQ2 (the rectangle anchor), OQ3 (one record or three) and the hook input's name (Tooltip, BaseTypeahead and Popover already say anchorRef), by commenting /approve-spec 5e64fbfe358064e1bc31be32ef75d86a83b19714, or says what to change.

Fixes needed:

  • The description's decision list still says Popover and usePopover gain the inputs, names anchorOutOfView: 'hold' | 'hide' and OQ1, and counts six rejected alternatives, while DEC-8, FR7 and the open questions now put the inputs on usePopover only as anchorOutOfViewBehavior: 'stay' | 'hideWhileOutOfView', leave OQ2 and OQ3 open, and add a seventh rejected alternative.
  • The isModal: false caller list in Current-state impact and the description's audit miss the rich text editor's link popover, the LayerSamePress story and PowerSearch's adding popup, so the release note would not tell those users that Tab now leaves the popover.
  • component:Popover still says Tab stays inside the popup "modal or not" in its Tab row, its AR3 and DEC-9 verification row, DEC-9's title and its Open questions, and it still records DEC-8's modal sheet, native popover="auto" dismissal, the trigger as the anchor and a hook-inputs table without the new inputs, all of which contradict the rewritten AR3 and FR1, FR9, FR15 and FR16.
  • DEC-9's paragraph and Rejected line are rewritten under its original Decider line, so please restore them as decided and add the supersession by DEC-5 as a line after the decision.
  • FR22 omits FR16's non-modal sheet as a released change and does not say whether the changes are breaking or accessibility fixes, and FR18 leaves no input that restores the old focus return.
  • FR4 places the rectangle box "when the popover opens or the object changes" while DEC-2 places it "once per opening", so please state one rule.
  • The Intent and DEC-6 still say focus return covers every layer although FR17–FR21 cover three components, BottomSheet's finalFocusRef still moves focus wherever it is, and no rule is given for a Popover shown as a sheet.
  • Popover AR4 returns focus to "the trigger first" while FR20 starts from the element focused at open, layer-runtime INV20 and INV7 still center and move the layer on the trigger, overlay-dismissal FR3 does not scope platform close requests, and Dialog FR4 stays marked settled on shipped behavior it now goes beyond.
Claims and files checked

Review mode: full; reason: spec-record

  • Claim: the records pass the repository's knowledge check. Verified: it passes on this head.
  • Claim: Popover and usePopover gain three inputs, one of them anchorOutOfView: 'hold' | 'hide', with OQ1 and OQ2 open. False: the record puts them on usePopover only, renames the out-of-view input and leaves OQ2 and OQ3 open.
  • Claim: the only isModal: false callers are PowerSearch's token editor and Popover's tests, and no story sets it. False: the rich text link popover, a layer story and PowerSearch's adding popup also set it.
  • Claim: today a non-button anchorRef warns and never anchors. Verified in Popover's trigger lookup.
  • Claim: today's containment runs whenever the popover is open. Verified: the focus trap's activation follows only the open state.
  • Claim: today's outside dismissal is native popover="auto" light dismiss, which no caller can cancel. Verified.
  • Claim: focus return lives in the focus trap, Dialog's close and removal paths and DropdownMenu's hide handler, with a temporary tab-stop helper. Verified.
  • Claim: every default is the released behavior except the named changes. False: FR22 omits FR16's non-modal sheet.
  • Claim: the writing rubric finds no pull-request references, six gap lines and six one-line rejected alternatives. Partly false: the references and gap lines hold, but DEC-8 adds a seventh rejected alternative, and Popover's new status line falls outside the rubric (non-blocking).
  • Claim: the pull request contains specification records only. Verified: six Markdown records.
  • File: AST-116 spec: stale description, caller audit, FR22, FR4 against DEC-2, focus-return scope.
  • File: Popover spec: self-contradiction after the AR3 and DEC-9 rewrite, DEC-9 rewritten under its Decider line, AR4 order, hook-inputs table, status line (non-blocking).
  • File: Dialog spec: FR4 stays marked settled on shipped behavior.
  • File: DropdownMenu spec: clear.
  • File: layer-runtime: INV20 and INV7 still use the trigger.
  • File: overlay-dismissal: FR3 platform close requests are unscoped.

Automated review (maintainer link)

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This draft spec needs an engineering owner's decision before it can be approved, and the fixes below are needed whatever that decision is.

Owner decision needed: spec:AST-116 puts anchor, anchorOutOfViewBehavior and onOutsidePress on usePopover, makes isModal: false drop Tab containment (reversing component:Popover DEC-9), gives Popover, Dialog and DropdownMenu one focus-return rule with no off switch, and writes that direction into five current records; this head also drops the rectangle anchor and keeps one record. An engineering owner (the author is one) records approval, with a ruling on the hook input's name (Popover, Tooltip and BaseTypeahead already say anchorRef), by commenting /approve-spec 462327eef0e70b02c01c205e9307061a6cb79fd1, or says what to change.

Fixes needed:

  • The description still offers a rectangle anchor, two open questions, an owner-settled DEC-8, INV21 shaping FR4 and DEC-2, DEC-2's rejected alternative, a rectangle-anchor implementation pull request and stale R4 and R6 rubric results, and says only isModal: false changes a default, while the record now rejects the rectangle anchor (DEC-1), has no open questions, marks DEC-8 pending owner review and also changes focus return (FR22).
  • The isModal: false caller list in Current-state impact and the description's audit miss the rich text editor's link popover, the LayerSamePress story and PowerSearch's adding popup, so the release note would not tell those users that Tab now leaves the popover.
  • component:Popover still says Tab stays inside the popup "modal or not" in its Tab row, its AR3 and DEC-9 verification row, DEC-9's title and its Open questions, and it still records DEC-8's modal sheet, native popover="auto" dismissal, the trigger as the anchor and a hook-inputs table without the new inputs, all of which contradict the rewritten AR3 and FR1, FR9, FR15 and FR16.
  • DEC-9's paragraph and Rejected line are rewritten under its original Decider line, so please restore them as decided and add the supersession by DEC-5 as a line after the decision.
  • FR22 omits FR16's non-modal sheet as a released change and does not say whether the changes are breaking or accessibility fixes, and FR18 leaves no input that restores the old focus return.
  • The Intent and DEC-6 still say focus return covers every layer although FR17–FR21 cover three components, BottomSheet's finalFocusRef still moves focus wherever it is, and no rule is given for a Popover shown as a sheet.
  • Popover AR4 returns focus to "the trigger first" while FR20 starts from the element focused at open, layer-runtime INV20 and INV7 still center and move the layer on the trigger, overlay-dismissal FR3 does not scope platform close requests, and Dialog FR4 stays marked settled on shipped behavior it now goes beyond.
  • Current-state impact removes "Popover has no viewport-rectangle anchor" from component:Popover, but DEC-1 now rejects the rectangle anchor, so please keep that line, reworded for the hook's element anchor, with its revisit condition.
  • Miss: Dialog's AV4 and its "modal close" state still allow no focus restoration when the invoker is gone, and Popover's "Close after focus entered the popup" state still returns only to the trigger, against the amended Dialog FR4 and Popover AR4.
  • Miss: Popover and Dialog still say "Released default preserved: yes", and Dialog's migration decision is still "none", against FR22's two released changes.
  • Miss: DEC-5 and the description send Tab "through the anchor" first, while FR12 puts a non-modal popover's controls after its trigger and after the anchor only when there is no trigger.
  • Miss: the Dialog record's new system_specs line is not Prettier-formatted, although the description says Prettier passes.
Claims and files checked

Review mode: full; reason: spec-record

  • Claim: the records pass the repository's knowledge check. Verified: it passes on this head.
  • Claim: Prettier and the whitespace check pass. Partly false: the whitespace check passes, but Prettier flags the Dialog record.
  • Claim: the three inputs live on the hook only and the out-of-view input follows the Behavior naming, as settled by the owner. The record says so, but its DEC-8 is still pending owner review and no approval is recorded.
  • Claim: anchor accepts a rectangle, and two open questions remain. False: the record rejects the rectangle anchor and lists no open questions.
  • Claim: a non-modal popover's Tab order runs anchor, then popover. False against FR12, which follows the trigger first.
  • Claim: one focus-return rule with the listed fallback chain and no off switch. Verified against FR17–FR20.
  • Claim: today a non-button anchorRef warns and never anchors. Verified in Popover's trigger lookup.
  • Claim: today's containment runs whenever the popover is open. Verified: the focus trap's activation follows only the open state.
  • Claim: today's outside dismissal is native light dismiss, which no caller can cancel. Verified.
  • Claim: focus return lives in the focus trap, Dialog's close and removal paths and DropdownMenu's hide handler, with a temporary tab-stop helper. Verified.
  • Claim: no open pull request decides these claims. Verified as far as a search of open pull requests shows: only the author's own implementation pull requests match.
  • Claim: every default is the released behavior except isModal: false. False: FR22 also changes focus return, and FR16 changes the sheet.
  • Claim: the only isModal: false callers are PowerSearch's token editor and Popover's tests, and no story sets it. False: the rich text link popover, a layer story and PowerSearch's adding popup also set it.
  • Claim: the listed rejected alternatives. Partly false: one belongs to a removed decision, and two current rejections are missing.
  • Claim: the writing rubric finds no pull-request references, six gap lines and rejected alternatives inside their decisions. Partly false: references and gap lines hold, but R4 names a removed decision and R6 calls two removed questions unanswered.
  • Claim: the implementation pull requests stacked on this record include a rectangle-anchor one. Stale: the record no longer has that requirement.
  • Claim: demand counts from a survey of a codebase outside this repository. Not checkable from the repository; they carry no weight here.
  • Claim: the pull request contains specification records only. Verified: six Markdown records.
  • File: AST-116 spec: stale description, caller audit, FR22, focus-return scope, removed rectangle line, DEC-5 against FR12, a future-work sentence in DEC-1 (non-blocking).
  • File: Popover spec: self-contradiction after the AR3 and DEC-9 rewrite, DEC-9 rewritten under its Decider line, AR4 order and its state row, released-default line, removed rectangle line, status line (non-blocking).
  • File: Dialog spec: FR4 stays marked settled, AV4 and its state row, released-default line, Prettier.
  • File: DropdownMenu spec: clear.
  • File: layer-runtime: INV20 and INV7 still use the trigger.
  • File: overlay-dismissal: FR3 platform close requests are unscoped.

Automated review (maintainer link)

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved pending CI: an engineering owner has approved this spec at this head, and no blocking finding remains. CI has not run on this head yet because the pull request is a draft; it runs once the pull request is marked ready for review.

Six non-blocking suggestions are open: Dialog's "modal close" state still promises the invoker focus that FR4 now leaves where a caller moved it, a shape inside an <svg> given as an anchor warns but has no stated production behavior, and four earlier notes (the overlay-dismissal matrix wording, AR1's scroll, the "until it ships" phrasing and phase: proposed) remain on their lines. Any commit voids the approval, so a change for these needs a new /approve-spec.

Claims and files checked

Review mode: full; reason: spec-record

  • Claims:
    • usePopover alone gains three composition inputs, and the Popover component gains none: verified (FR1, FR7, FR9, DEC-8).
    • isModal sets Tab containment and aria-modal together, and a non-modal popover's controls follow its trigger, or its anchor when there is no trigger: verified (FR12, DEC-5).
    • The record supersedes Popover's DEC-9, AR3 and DEC-8 sheet for isModal: false: verified (amendment lines under unchanged Decider lines).
    • One focus-return rule with no off switch acts only on stranded focus, passes a child's chain to its parent and follows the stated fallback order to main, never the body: verified (FR17–FR20).
    • The owner's settled points (hook-only inputs, the out-of-view name, no rectangle anchor, one record, no open questions): verified; an engineering owner approved this exact head.
    • The existing authority listed: verified against the current records.
    • The code facts (the trigger-button lookup and warning, containment gated only on open, native auto light dismiss, the three focus-return sites, the temporary tab-stop helper): verified in the current sources.
    • Unset inputs keep released behavior, and three released behaviors change as accessibility fixes: verified (FR22).
    • The four isModal: false callers and what changes for each: verified (all four are listed).
    • Rejected alternatives and non-goals match the record: verified (eight alternatives in six Rejected lines).
    • Demand counts from an outside survey: not checkable in this repository.
    • The draft implementation pull requests exist, and the returnFocus one is rewritten as the unified focus return: verified (open drafts stacked on this branch).
    • Writing rubric results: verified (nine gap lines, no references, no open questions); four sequencing phrases remain as a non-blocking note.
    • Validation (knowledge check, Prettier, whitespace check): verified, all pass.
  • Files:
    • docs/specs/AST-116-popover-anchoring/spec.md: owner-approved; non-blocking notes on the shape anchor, the matrix-wording echo, AR1, sequencing phrases and phase.
    • docs/specs/components/Popover/Popover.spec.md: non-blocking sequencing note; otherwise clear.
    • docs/specs/components/Dialog/Dialog.spec.md: non-blocking note on the modal close state; otherwise clear.
    • docs/specs/components/DropdownMenu/DropdownMenu.spec.md: clear.
    • docs/architecture/layer-runtime.md: non-blocking sequencing note; otherwise clear.
    • docs/families/overlay-dismissal.md: non-blocking matrix-wording note; otherwise clear.

Automated review (maintainer link)

| native modal with DialogHeader | modal is visible before focus; title receives default focus | another earlier supported request may win |
| native modal with explicit descendant request | requested eligible descendant receives focus | descendant type and location |
| native modal without request | focus remains within valid native modal behavior | browser-selected eligible descendant |
| modal close | connected invoking element regains focus | focus follows `spec:AST-116` FR20 when invoker is unavailable |

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Miss (non-blocking): this state still requires the invoker to regain focus on every modal close, while FR4 above now returns focus only when the close strands it and leaves focus a caller moved outside the Dialog. A test written from this row expects the case spec:AST-116 FR17 excludes. Suggested wording: "connected invoking element regains focus when the close strands focus (FR4)".

…in usePopover over INV10's allowance; INV10 names the exception
@nynexman4464

Copy link
Copy Markdown
Contributor Author

/approve-spec e3e1473

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved pending CI: an engineering owner approved this spec at this head, no blocking finding remains, and CI runs once the pull request leaves draft.

Seven non-blocking suggestions are open; new at this head, FR24 names only Popover and menu pages, though Selector, BaseTypeahead, the date inputs and the nav menus also build on usePopover and carry the same cost. The six earlier notes (Dialog's "modal close" state, a shape anchor's production behavior, the overlay-dismissal matrix wording, AR1's scroll, the "until it ships" phrasing and phase: proposed) remain on their lines. Any commit voids the approval, so a change for these needs a new /approve-spec.

Claims and files checked

Review mode: full; reason: spec-record

  • Claims:
    • usePopover alone gains three composition inputs, and the Popover component gains none: verified (FR1, FR7, FR9, DEC-8).
    • isModal sets Tab containment and aria-modal together, and a non-modal popover's controls follow its trigger, or its anchor when there is no trigger: verified (FR12, DEC-5).
    • The record supersedes Popover's DEC-9, AR3 and DEC-8 sheet for isModal: false: verified (amendment lines under unchanged Decider lines).
    • One focus-return rule with no off switch acts only on stranded focus, passes a child's chain to its parent and follows the stated fallback order to main, never the body: verified (FR17–FR20).
    • The three inputs stay in usePopover at no more than 0.4, 0.4 and 0.6 KB gzip each, and the import-boundaries record names that exception in INV10, matches its verification row and gains a DEC-5 amendment line: verified (FR24, DEC-9 and the import-boundaries edits).
    • The owner's settled points (hook-only inputs, the out-of-view name, no rectangle anchor, the inputs' costs, one record, no open questions): verified; an engineering owner approved this exact head.
    • The existing authority listed: verified against the current records.
    • The code facts (the trigger-button lookup and warning, containment gated only on open, native auto light dismiss, the three focus-return sites, the temporary tab-stop helper): verified in the current sources.
    • Unset inputs keep released behavior, and three released behaviors change as accessibility fixes: verified (FR22).
    • The four isModal: false callers and what changes for each: verified (all four are listed).
    • Rejected alternatives and non-goals match the record: verified (DEC-1 and DEC-4 to DEC-9).
    • The first-load figures for each input: verified against the implementation pull requests' descriptions, and each fits the cap INV10 now states.
    • A deferred load for the outside-press input did not help: matches the implementation pull request's description; not measured here.
    • Demand counts from an outside survey: not checkable in this repository.
    • The draft implementation pull requests exist, and the returnFocus one is rewritten as the unified focus return: verified (open drafts stacked on this branch).
    • Writing rubric results: verified (nine gap lines, no references, no open questions, decided text kept with amendment lines); four sequencing phrases remain as a non-blocking note.
    • Validation (knowledge check, Prettier, whitespace check): verified, all pass.
  • Files:
    • docs/specs/AST-116-popover-anchoring/spec.md: owner-approved; non-blocking notes on FR24's page wording, the shape anchor, the matrix-wording echo, AR1, sequencing phrases and phase.
    • docs/specs/components/Popover/Popover.spec.md: non-blocking sequencing note; otherwise clear.
    • docs/specs/components/Dialog/Dialog.spec.md: non-blocking note on the modal close state; otherwise clear.
    • docs/specs/components/DropdownMenu/DropdownMenu.spec.md: clear.
    • docs/architecture/layer-runtime.md: non-blocking sequencing note; otherwise clear.
    • docs/architecture/component-import-boundaries.md: clear.
    • docs/families/overlay-dismissal.md: non-blocking matrix-wording note; otherwise clear.

Automated review (maintainer link)

…on a repeated show(), and parks the outside-press veto; AST-059 FR5 hides a layer whose anchor is out of view unless a person is using it
@nynexman4464 nynexman4464 changed the title docs(spec): AST-116 Popover anchoring, dismissal veto, modality and layer focus return (draft) docs(spec): AST-116 Popover anchoring, modality and layer focus return; AST-059 FR5 hides a layer whose anchor is out of view (draft) Nov 18, 2026
@github-actions github-actions Bot added the needs:spec-owner-review Current knowledge records await owner approval label Nov 18, 2026
… box and a removed anchor, with a manual screen-reader row; AST-116 AR1 follows
…16 keeps anchorRef, the same-press move, modality and focus return
@nynexman4464 nynexman4464 changed the title docs(spec): AST-116 Popover anchoring, modality and layer focus return; AST-059 FR5 hides a layer whose anchor is out of view (draft) docs(spec): AST-116 Popover anchoring, modality and layer focus return (draft) Nov 18, 2026

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This spec needs an engineering owner's approval at this head before it can be approved; no blocking defect remains in the records.

The owner approval on this pull request names an earlier head, and the direction changed after it: usePopover now takes a ref-only anchorRef, a show() in the same press moves an open popover (FR9, DEC-10, and the layer runtime's INV7), the outside-press veto is an open question (OQ1), and the out-of-view input and its size exception are gone. An engineering owner records the decision by commenting /approve-spec followed by the full head SHA, or says what the records must change; the author may do so as an engineering owner.

  • Optional record fixes (non-blocking): FR6 leaves an anchor that stays in the document but has no box unruled, the two Popover-inside-Dialog rows in the overlay-dismissal matrix say "holding focus" where FR2 also counts the anchor and trigger, Dialog's "modal close" state still returns focus on every close, and "until FR15 ships" in Popover's two dismissal rows and AST-116's current-state impact states work order.
Claims and files checked

Review mode: full; reason: spec-record

Claims:

  • The pull request changes six Markdown records and no package code: verified against the diff.
  • The out-of-view rule is left to the layer viewport spec, and the import-boundaries record is no longer edited: verified.
  • The existing non-modal callers are PowerSearch's token editor and its adding popup, the rich text link form, the same-press story and Popover's own tests: verified on the main branch.
  • The code facts the description cites (the trigger-button lookup and its warning, containment active whenever the popover is open, the three focus-return sites, the temporary tab-stop helper): verified in the source.
  • The knowledge check, Prettier and the whitespace check pass: verified by running them on this head.
  • Rubric results (every Rejected line inside its decision, ten gap lines): verified; the "until FR15 ships" wording is the one status phrase left.
  • The usage survey and other libraries' APIs: not checkable from the repository.
  • How the same-press move behaves in the draft implementation: not checked, since it lives in another pull request.

Files:

  • docs/specs/AST-116-popover-anchoring/spec.md: owner approval pending; FR6 note.
  • docs/specs/components/Popover/Popover.spec.md: status-wording note.
  • docs/specs/components/Dialog/Dialog.spec.md: modal-close row note.
  • docs/specs/components/DropdownMenu/DropdownMenu.spec.md: clear.
  • docs/architecture/layer-runtime.md: clear.
  • docs/families/overlay-dismissal.md: matrix rows note.

Automated review (maintainer link)

Comment on lines +110 to +114
- **FR6 — A missing anchor never shows an unanchored surface.** While an
`anchorRef` the caller passed holds no element, or holds one that is not in
the document, an open popover renders no visible surface, whether or not a person is using
it (AR1). It shows on the frame a later read (FR3) finds an anchor in the
document.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Non-blocking: FR6 hides the surface only while the ref holds no element or one outside the document. An anchor that stays in the document but stops generating a box (inside a display: none ancestor, or the SVG shape FR2 warns about only in development) has no rule here, so a test cannot say whether the surface shows unanchored. Consider covering it, for example: "While an anchorRef holds no element, one that is not in the document, or one that generates no box, an open popover renders no visible surface".

| Visibility ownership | Uncontrolled or externally controlled | Chooses whether Popover stores visibility or synchronizes to caller state | Popover | Uncontrolled | `component:Popover` | Current public behavior | Controlled changes are synchronized through show/hide; dismissal requests are reported to the caller rather than redefining the external source of truth. |
| Popup semantics | Dialog or neutral wrapper | Exposes dialog semantics or lets child menu/listbox semantics own the popup | Popover and hook | Dialog | `component:Popover` | Current public behavior | A dialog without a label warns in development. Neutral mode omits dialog role and modal semantics. |
| Focus entry | Automatic or caller-preserved | Focuses genuine caller content, falls back to the labeled dialog surface when none exists, or preserves current focus | Popover and hook | Automatic | `component:Popover` | Current public behavior | The injected fallback close control is excluded from initial-focus candidates and reveals only when reached sequentially. |
| Dismissal | Outside/Escape enabled or disabled within native constraints | Controls light dismiss and explicit Escape participation | Popover and hook | Both enabled | `component:Popover`; `family:overlay-dismissal` owns Escape/platform-close ordering | Current public behavior | Disabling Escape alone cannot override the native Escape behavior of an auto popover; explicit-dismiss behavior requires light dismiss to be disabled too. Native auto light dismiss and the shared dismissal stack apply wherever focus is until `spec:AST-116` FR15 ships (FR15 gap there). |

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Non-blocking: "until spec:AST-116 FR15 ships" states work order (architecture:knowledge-contracts INV32); the same clause is in the Light and Escape dismissal row (line 164), and AST-116's Current-state impact says the rows hold "until FR15 ships" (line 276). The FR15 gap line already states the mismatch, so consider ending the sentence at "apply wherever focus is (spec:AST-116 FR15 gap)".

@nynexman4464

Copy link
Copy Markdown
Contributor Author

/approve-spec 796e811

@github-actions github-actions Bot removed the needs:spec-owner-review Current knowledge records await owner approval label Nov 19, 2026

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved pending CI: an engineering owner approved this spec at this head and no blocking finding remains; CI has not run on this head yet and runs once the pull request leaves draft.

Three non-blocking suggestions remain on their lines: the two Popover-inside-Dialog rows in the overlay-dismissal matrix say "holding focus" where FR2 also counts the anchor and trigger, Dialog's "modal close" state still returns focus on every close, and "until FR15 ships" in Popover's two dismissal rows and AST-116's current-state impact states work order. Any commit voids the approval, so a change for these needs a new /approve-spec.

Claims and files checked

Review mode: same-head; reason: none

  • Changed rules since the last review: none.
  • Claims:
    • The pull request changes six Markdown records and no package code: verified against the file list.
    • usePopover gains a ref-only anchorRef that names only the anchor, and Popover's own anchorRef keeps its meaning: verified (FR1–FR3, FR5, FR6, FR23, DEC-1, DEC-8).
    • A show() in the same press moves an open popover, and the layer runtime's INV7 and browser-close note gain that clause: verified (FR9, DEC-10).
    • The out-of-view rule stays with the layer viewport record, usePopover has no input for it, and AR1 covers only an anchor that leaves the document: verified (Non-goals, FR6, AR1).
    • isModal sets Tab containment and aria-modal together and supersedes Popover's DEC-9, AR3 and DEC-8 sheet for isModal: false: verified (FR12, DEC-5, amendment lines under unchanged Decider lines).
    • One focus return with no off switch, a child that takes focus inheriting the chain, and the fallback order ending at main, never the body: verified (FR17–FR20).
    • No input vetoes an outside dismissal, and the question stays open with both candidates and the cases: verified (OQ1).
    • The import-boundaries record is no longer edited: verified.
    • The records-changed list and the existing authority listed: verified against the head and the current records.
    • The code facts (the trigger-button lookup and warning, containment gated only on open, the three focus-return sites, the temporary tab-stop helper): verified in the current sources.
    • The isModal: false callers (PowerSearch's editor and adding popup, the rich text link form, the same-press story and Popover's tests): verified on the main branch.
    • Three released behaviors change as accessibility fixes with release notes: verified (FR22).
    • Rejected alternatives and non-goals match the record: verified (DEC-1, DEC-5, DEC-6, DEC-8).
    • The draft implementation pull requests and the out-of-view proposal exist: verified (open drafts).
    • Writing rubric results (ten gap lines, every Rejected line inside its decision, decided text kept with amendment lines): verified; the "until FR15 ships" wording remains as a non-blocking note.
    • Validation (knowledge check, Prettier, whitespace check): verified at this head.
    • FR6 as written, for an anchor that stays in the document without a box: kept by the owner's approval at this head.
    • The usage survey, other libraries' APIs and the draft implementation's current same-press behavior: not checkable from this repository.
  • Files:
    • docs/specs/AST-116-popover-anchoring/spec.md: owner-approved; non-blocking sequencing note.
    • docs/specs/components/Popover/Popover.spec.md: non-blocking sequencing note; otherwise clear.
    • docs/specs/components/Dialog/Dialog.spec.md: non-blocking modal-close row note; otherwise clear.
    • docs/specs/components/DropdownMenu/DropdownMenu.spec.md: clear.
    • docs/architecture/layer-runtime.md: clear.
    • docs/families/overlay-dismissal.md: non-blocking matrix-row note; otherwise clear.

Automated review (maintainer link)

@nynexman4464
nynexman4464 marked this pull request as ready for review November 19, 2026 00:55
@nynexman4464
nynexman4464 merged commit 0c52d04 into main Nov 19, 2026
143 checks passed
@github-actions
github-actions Bot deleted the nynexman4464/docs/ast-113-popover-anchoring branch November 19, 2026 06:05

This branch was successfully deployed

1 active deployment
Preview — 796e811d Deployed Nov 18, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant