Skip to content

[Spec] motion DEC-1: every hover-to-display interaction is debounced - #7327

Merged
cixzhang merged 6 commits into
mainfrom
spec/motion-pointer-brush-debounce
Nov 6, 2026
Merged

cixzhang merged 6 commits into
mainfrom
spec/motion-pointer-brush-debounce

Conversation

@cixzhang

@cixzhang cixzhang commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

Exact decision needed

Whether hover-to-display interactions (tooltips, hover cards, hover-opened menus and flyouts, container reveals, previews, hover popovers) may render immediately on hover, or must debounce entry and guard exit by default.

Existing authority searched

design:motion (draft) states general principles and leaves input-specific motion rules open. architecture:interaction-modality (current) excludes hover paint and press treatment from its scope. No contract record owns the shared hover hooks (useMenuHover, useTooltip, useHoverCard, useContainerReveal); their delays are described only in source. Overlapping open work: a pull request proposing to remove one hook's default delay and a records pull request that carried a deprecation entry for it (since withdrawn), both assuming the opposite ruling.

Decision

Every hover-to-display interaction requires a small entry delay so a pointer brushing past does not cause eager rendering or updates, and an exit guard so the content does not flicker out. Keyboard focus reveals immediately; coarse pointers and touch are not gated. Defaults are on; a caller opts out only for a stated use case through the surface's documented option. Surfaces take their timing from the shared hooks' defaults rather than inventing their own. The record carries an inventory of today's hover-to-display surfaces and whether each conforms (two useMenuHover callers set the entry delay to none without a recorded use case; useContainerReveal has the exit guard on and the entry delay opt-in). Owner: design:motion (cixzhang, ernestt). Decider: cixzhang, 2026-10-11.

The surfaces expose the entry wait as delay and the exit guard as hideDelay (milliseconds), as Tooltip, HoverCard and TopNavMenu already do, so a caller can adjust them on a hover card and on menu hover. Within a group of triggers, a pointer moving from one open trigger to the next shows the next at once; the entry delay applies to the first open only. That group hand-off is owned by architecture:interaction-modality INV11, which this decision follows. TopNavHeading and SideNavHeading FR5 now match: a first hover-open waits the shared delay, and a hand-off within an open navigation opens at once. Their immediate first open today is recorded as an implementation gap in each record.

Rejected alternatives

Removing a surface's default delay so it switches immediately for every input: rejected inside DEC-1, because it trades a pointer guard for no benefit to keyboard or touch users, who already see the content at once.

Claim scope and non-goals

Governs the default-on status and purpose of the entry delay and exit guard for pointer-driven hover-to-display surfaces, and names the shared hooks as the timing source. It does not fix millisecond values, easing, the opt-out's API shape, or change any surface's shipped behavior; the non-conforming inventory rows are gaps for their owners. The record otherwise stays draft.

Evidence and implementation relationship

The shared hooks already behave this way: useTooltip and useHoverCard have entry delay and hideDelay defaults with a hover bridge; useMenuHover has showDelay/hideDelay defaults; useContainerReveal keeps content in flow for the fade before its deferred position reset so a brushed-past container does not snap out at full opacity, reveals on focus-within with no dwell, and keeps content visible on coarse pointers. No implementation change accompanies this record.

Writing rubric results

  • R1 narration: the inventory's "Conforms" column states the present state of each surface; no sentence describes a change. None.
  • R2 research in the record: none; the inventory is the system's current defaults, not a survey.
  • R3 evidence naming a change: none; verification rows name tests and states.
  • R4 rejected alternatives over one line or outside a decision: one alternative, one line, inside DEC-1.
  • R5 pull request or issue references remaining: none (searched # + digits, /pull/, /issues/).
  • R6 ruled open questions still listing options: none; OQ1–OQ3 remain open and unanswered.
  • R7 consistency: DEC-1 defers the hover-intent mechanism and group hand-off to architecture:interaction-modality INV11; the heading FR5 rows and their current-state gaps match DEC-1, and table widths in the existing records are unchanged.

Scope

  • 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 — aligned
  • Prettier — clean
  • git diff --check — clean

@vercel

vercel Bot commented Oct 11, 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 6, 2026 5:27pm UTC

Request Review

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

astracat-bot Bot commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🟢 Reviewed (for maintainers only) Nov 6, 2026, 5:31 PM UTC

@github-actions github-actions Bot added the spec-auto-merge Auto-merge was enabled by the spec owner gate label Oct 11, 2026
@cixzhang cixzhang changed the title [Spec] motion DEC-1: reveal exit delay and fade are pointer-intent debouncing [Spec] motion DEC-1: every hover-to-display interaction is debounced Oct 11, 2026
@cixzhang
cixzhang force-pushed the spec/motion-pointer-brush-debounce branch from 13f3e4f to 38a9ad2 Compare October 11, 2026 15:49
@github-actions

github-actions Bot commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

PR Analysis Report

Current run: The current change has no visual or preview-producing scope. Visual checks are not applicable; preview links are not shown.


Generated by PR Enrichment workflow | View current CI run

@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.

Approval needs a maintainer decision on the governing spec. This pull request keeps the motion record as a draft, and an open pull request from the record's other owner records the opposite ruling on default hover delays and exit fades. The owners need to settle which ruling the motion spec carries and approve it as current. Whichever ruling stays in this record, these points need fixing:

  • Reconcile the entry-delay rule with the current heading-links contract, which requires the heading marker to appear immediately on hover.
  • Describe shared timing by observable behavior instead of requiring the internal useMenuHover hook, a duration token, and CSS mechanics, which the record's own content boundary excludes.
  • Make the inventory match the code: add Overlay with showOn="hover", the Slider value tooltip (delay={0}), and TopNavMenu, and note that container reveals drop the exit fade under reduced motion and that Tooltip and HoverCard stay closed on touch for action triggers.
  • Name real-browser evidence for the CSS-timed and coarse-pointer verification rows, because unit tests with fake timers cannot observe CSS transitions.

[Automated review]

Comment thread docs/design/motion.md Outdated
Comment on lines +69 to +71
- **Entry delay.** Every hover-to-display interaction MUST wait a small delay
before it renders or updates, so a pointer brushing across the trigger does
not cause eager rendering or updates.

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 MUST also covers Markdown heading links. Their current contract (module:Markdown/headingLinks AR3) requires the marker to appear immediately when the heading row is hovered, and the inventory below files that as a gap. Please scope the rule so it does not reach AR3, or name AR3's immediate reveal as the recorded use case.

Comment thread docs/design/motion.md Outdated
Comment on lines +75 to +76
- **Pointer-specific.** Keyboard focus reveals immediately with no dwell. Coarse
pointers and touch are not gated; they reveal or keep the content visible.

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.

Tooltip and HoverCard default to touchTrigger: 'auto', which keeps the layer shut on action triggers (buttons, links, form controls). So “they reveal” would fail the rows marked “yes” and trip the “touch content hidden” signal. Suggest: touch and coarse pointers are never delayed by the hover gate, and whether touch opens a surface stays with its owner.

Comment thread docs/design/motion.md Outdated
Comment on lines +80 to +85
- **Shared timing.** A surface takes its timing from the shared defaults rather
than inventing its own: `useMenuHover` (`showDelay`, `hideDelay`) for
hover-opened menus and flyouts, `useTooltip` and `useHoverCard` (`delay`,
`hideDelay`) for tooltips and hover cards, and `useContainerReveal`
(`hoverDelay`, with the exit fade on the `--duration-fast` token) for
container reveals. A new hover-to-display surface reuses one of these.

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.

useMenuHover is an internal hook that is not exported, and “A new hover-to-display surface reuses one of these” prescribes implementation. architecture:knowledge-contracts INV18 rules that out for product specs, and this record's own Content boundary excludes tokens, CSS properties, and animation APIs. Suggest stating the observable rule (one shared default timing per kind, opt-out through a documented option) and linking the module and component records for hook details.

Comment thread docs/design/motion.md
(`hoverDelay`, with the exit fade on the `--duration-fast` token) for
container reveals. A new hover-to-display surface reuses one of these.

Inventory of hover-to-display surfaces and their defaults:

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 inventory misses three surfaces: Overlay with showOn="hover" (a CSS reveal with no entry delay or delay option), the Slider value tooltip (delay={0}), and TopNavMenu (useMenuHover with a 150 ms delay).

Comment thread docs/design/motion.md Outdated
| `TopNavHeading` menu (`useMenuHover`) | `showDelay` set to none | `hideDelay` on | no: entry delay removed without a recorded use case |
| `SideNavHeading` collapsed flyout (`useMenuHover`) | `showDelay` set to none | `hideDelay` on | no: entry delay removed without a recorded use case |
| `SideNavItem` collapsed flyout (`useMenuHover`) | `showDelay` on | `hideDelay` on | yes |
| `useContainerReveal` (`Thumbnail`, `TreeList` rows, Markdown heading links) | `hoverDelay`, off unless passed | exit fade with deferred `position` reset, on | partial: exit guard on, entry delay opt-in |

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.

Under prefers-reduced-motion: reduce, the container reveal drops its exit fade and sequencing, so content leaves immediately. Also, Thumbnail and heading links use the layout-preserved variant, which has no position reset. Please state the reduced-motion case here and in the exit-guard rule.

Comment thread docs/design/motion.md Outdated
Comment on lines +107 to +108
| DEC-1 | Hook unit tests with fake timers: a hover shorter than the entry delay renders nothing | brush in and out under the delay; dwell past the delay | content rendered or state updated before the delay elapses |
| DEC-1 | Hook unit tests: leaving and re-entering within the exit guard keeps the content | brush out and back in; leave past the guard | content unmounted or faded out during the guard |

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.

useContainerReveal's dwell and fade are CSS transitions, which hook unit tests with fake timers cannot observe. Please name real-browser evidence for the container-reveal rows, and for the focus-within and coarse-pointer row below.

…the group hand-off; heading menus follow

Hover surfaces expose the entry wait as delay and the exit guard as
hideDelay. Within a group of triggers, moving from one open trigger to the
next shows it at once (interaction-modality INV11). TopNavHeading and
SideNavHeading FR5 wait the shared delay on a first open and hand off at once
within an open navigation; their immediate first open is a recorded gap.
@github-actions github-actions Bot added the needs:spec-owner-review Current knowledge records await owner approval label Nov 6, 2026
@cixzhang

cixzhang commented Nov 6, 2026

Copy link
Copy Markdown
Contributor Author

/approve-spec f8f3ac2

@cixzhang
cixzhang marked this pull request as ready for review November 6, 2026 13:55
@github-actions github-actions Bot removed the needs:spec-owner-review Current knowledge records await owner approval label Nov 6, 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.

Changes requested. The owner approval on this head settles the hover-delay direction, but the records still conflict with current specs they do not amend and misstate some current behavior. Please address:

  • Reconcile the entry-delay rule with the current heading-links contract (module:Markdown/headingLinks AR3), which requires the heading marker to appear immediately on hover.
  • Regression: state that an owner's record may set the entry delay to zero and keeps the default delay, as current architecture:interaction-modality INV11 allows, or amend INV11 in this pull request.
  • Say that touch is never delayed by the hover gate instead of "they reveal", because current INV4 requires a tap on an action trigger to run the action without opening its tooltip.
  • Describe shared timing by observable behavior instead of requiring the internal useMenuHover hook, the not-yet-built hover recognizer, a duration token and a CSS property, which INV18 and the record's own content boundary exclude.
  • Record the approval on design:motion or make FR5 self-contained, because DEC-1 stays in a draft record, which is not a rule, while both current FR5 clauses cite it as their basis.
  • Update the nav-heading records to match the new FR5: the SideNavHeading "opens the menu without delay" line, both implementation-gap counts, and the FR5 verification rows.
  • Make the inventory match the code by adding TopNavMenu, Slider's value tooltip and Overlay's hover mode, and by reconciling the rows marked conforming with the delay and hideDelay option names DEC-1 now requires.
  • State that container reveals lose the exit fade under reduced motion, as design:reduced-motion DR3 requires, and correct the inventory row that says the guard is on.
  • Name real-browser evidence for the CSS-timed container-reveal rows and the keyboard and coarse-pointer row, which unit tests with fake timers cannot observe.

[Automated review]

Comment thread docs/design/motion.md Outdated
Comment on lines +83 to +85
- **Default on; stated opt-out.** The delay and guard are on by default. A
caller may shorten or remove them only for a stated use case, through the
surface's documented option.

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.

Current architecture:interaction-modality INV11 gives the entry delay to each surface's owner, "which an owner's record may set to zero", and keeps "the default delay itself" with owners. This bullet lets only a caller remove the delay, and only for a stated use case. Please state INV11's owner-zero rule here (an owner's record may set the entry delay to zero, with its reason) or amend INV11 in this pull request.

Comment thread docs/design/motion.md Outdated
Comment on lines +91 to +93
container reveals. Each takes its timing from the hover recognizer's intent
(`architecture:interaction-modality` INV11). A new hover-to-display surface
reuses one of these.

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.

INV11's own verification row says the hover recognizer is "not implemented yet", and no HoverGestureRecognizer exists in Core, so "Each takes its timing from the hover recognizer's intent" is not true today. With "reuses one of these" and the internal useMenuHover, this bullet prescribes mechanism that architecture:knowledge-contracts INV18 keeps out of product specs. Suggest stating the observable rule and linking INV11 for the mechanism.

Comment thread docs/design/motion.md Outdated
| `TopNavHeading` menu (`useMenuHover`) | `showDelay` set to none | `hideDelay` on | no: first open has no entry delay (gap, FR5) |
| `SideNavHeading` collapsed flyout (`useMenuHover`) | `showDelay` set to none | `hideDelay` on | no: first open has no entry delay (gap, FR5) |
| `SideNavItem` collapsed flyout (`useMenuHover`) | `showDelay` on | `hideDelay` on | yes |
| `useContainerReveal` (`Thumbnail`, `TreeList` rows, Markdown heading links) | `hoverDelay`, off unless passed | exit fade with deferred `position` reset, on | partial: exit guard on, entry delay opt-in |

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.

Under prefers-reduced-motion: reduce the reveal's fade is 0s, as design:reduced-motion DR3 requires, so content leaves at once and this exit guard is off for those users. Thumbnail and heading links also use the layout-preserved variant, which has no position reset. Please state the reduced-motion case here and in the exit-guard rule.

Comment thread docs/design/motion.md Outdated
Comment on lines +115 to +117
| DEC-1 | Hook unit tests with fake timers: a hover shorter than the entry delay renders nothing | brush in and out under the delay; dwell past the delay | content rendered or state updated before the delay elapses |
| DEC-1 | Hook unit tests: leaving and re-entering within the exit guard keeps the content | brush out and back in; leave past the guard | content unmounted or faded out during the guard |
| DEC-1 | Keyboard and coarse-pointer tests | focus-within; coarse pointer | any dwell before a focus reveal; touch content hidden |

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.

The container reveal's dwell and fade are CSS transitions, which hook unit tests with fake timers cannot observe, and the keyboard and coarse-pointer row names no evidence layer. architecture:interaction-modality requires real-browser evidence when behavior depends on pointer capability. Please name real-browser evidence for those rows.

Comment thread docs/design/motion.md
Comment on lines +147 to +149
This record distills motion intent from the public Design Conventions wiki
without copying duration values, CSS properties, or audit mechanics. One point
is decided:

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.

The record keeps authority: draft and approved_by: null, and under architecture:knowledge-contracts a draft is "not a rule", so DEC-1 will not govern after merge, yet both current FR5 rows name it as their basis. DEC-14 lets an owner record the approval in the front matter without voiding it; otherwise make FR5 self-contained.

Comment thread docs/design/motion.md Outdated
Comment on lines +161 to +163
Defaults are on; a caller opts out only for a stated use case. Hover surfaces
expose the wait as `delay` and the exit guard as `hideDelay` (milliseconds), as
Tooltip, HoverCard and TopNavMenu already do. Within a group of triggers, a

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 says hover surfaces expose delay and hideDelay, but the inventory marks the DropdownMenu submenu and SideNavItem as conforming though neither has those options, and the shared-timing bullet names showDelay and useContainerReveal's hoverDelay. The inventory also omits TopNavMenu, Slider's value tooltip (delay: 0) and Overlay's hover mode. Please reconcile the names and rows.

| FR3 | The icon link, the whole-heading link, and the menu-configuration heading link use the `as` component, else the `LinkProvider` link, else `<a>`. Supporting lines, and the heading line in the independent-links configuration, use the Link component, which does not receive `as`. | Current source and tests |
| FR4 | The chevron button is named by `@astryx.sideNav.heading.openMenu` and is the popover's trigger. | Current source and tests |
| FR5 | On a hover-capable pointer, hovering opens the menu immediately and does not move focus; a click opens it and moves focus to the first menu item; a click within 500 ms of a hover-open keeps it open; Escape closes it and returns focus to the trigger. | Current source and tests |
| FR5 | On a hover-capable pointer, hovering opens the menu after the shared hover entry delay (`design:motion` DEC-1), and at once when the pointer moves to it from another open menu in the same navigation (`architecture:interaction-modality` INV11); a hover-open does not move focus. A click opens it and moves focus to the first menu item; a click within 500 ms of a hover-open keeps it open; Escape closes it and returns focus to the trigger. | `design:motion` DEC-1 |

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.

With FR5 rewritten, the record still lists "FR5: that hover opens the menu without delay" as read from source (L219), the at-a-glance row still says "Six implementation gaps" after this pull request adds a seventh, and the FR5 verification row still cites tests of the shipped immediate open. Please update them and mark FR5's verification as an evidence gap.

| FR3 | The logo link, the whole-heading link, the logo-only link, and the menu-configuration heading link use the `as` component, else the `LinkProvider` link, else `<a>`. Supporting lines, and the heading line in the independent-links configuration, use the Link component, which does not receive `as`. | Current source and tests |
| FR4 | In both menu configurations, the chevron is a button named by the translated `@astryx.topNav.heading.openMenu` that toggles the menu; it is at least 28 by 28 px. | Current source and tests |
| FR5 | On a hover-capable pointer, hovering the block opens the menu immediately and does not move focus; a click within 500 ms of a hover-open keeps the menu open and moves focus to the first menu item, and a later click closes it. | Current source and tests |
| FR5 | On a hover-capable pointer, hovering the block opens the menu after the shared hover entry delay (`design:motion` DEC-1), and at once when the pointer moves to it from another open menu in the same navigation (`architecture:interaction-modality` INV11); a hover-open does not move focus. A click within 500 ms of a hover-open keeps the menu open and moves focus to the first menu item, and a later click closes it. | `design:motion` DEC-1 |

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.

The at-a-glance row still says "Five implementation gaps" after this pull request adds a sixth, and the FR5 verification row still cites the hover/click guard tests of the shipped immediate open. Please update the count and mark FR5's verification as an evidence gap.

@cixzhang
cixzhang marked this pull request as draft November 6, 2026 14:14
… delay, touch and reduced motion; heading FR5 rows stand on the owner decision

The hover rule names no internal hook: an owner's record may set the delay to
zero (INV11), the hover gate never delays touch (INV4), and a container
reveal's fade is instant under reduced motion. The inventory adds TopNavMenu,
Slider's value tooltip, Overlay's hover mode and heading links (AR3), and
marks the surfaces with no delay or hideDelay option. Verification names
real-browser evidence. Heading FR5 cites the owner decision directly; the
gap counts, read-from-source line and FR5 verification rows follow.
@cixzhang

cixzhang commented Nov 6, 2026

Copy link
Copy Markdown
Contributor Author

/approve-spec 13f760c

@cixzhang
cixzhang marked this pull request as ready for review November 6, 2026 14:27

@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.

Changes requested. The owner approval on this head settles the hover-delay direction, but four points still conflict with current records or misstate shipped behavior:

  • Drop or rescope the "Consistent timing" bullet, because the current Tooltip (delay 200, hideDelay 0), HoverCard (delay 300, hideDelay 200) and TopNavMegaMenu (hideDelay 250, against TopNavMenu's 200) records set different defaults that the inventory marks as conforming.
  • Limit the delay/hideDelay requirement to timer-driven surfaces such as tooltips, hover cards and menus, because heading links may not add a public reveal API (module:Markdown/headingLinks AR3) and container reveals guard their exit with a fade, and make the heading-links row match the Slider row on the zero delay's reason.
  • Miss: change both nav-heading records' "Released default preserved" to no and say that shipping FR5 delays the first hover-open for mouse and pen users, instead of "records shipped behavior; no public change".
  • Record the exit fade of Overlay's hover mode in its inventory row, which currently says it has no exit guard.

Also worth a look: the Content boundary still says the record defines no component behavior, and FR5's "shared hover delay" could name which default it means.

[Automated review]

Comment thread docs/design/motion.md Outdated
Comment on lines +91 to +94
- **Consistent timing.** Surfaces of one kind share their default timing:
tooltips and hover cards share one default, hover-opened menus and flyouts
another, and container reveals a third. `architecture:interaction-modality`
INV11 owns the mechanism.

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.

Current component:Tooltip sets delay (200) and hideDelay (0), component:HoverCard sets delay (300) and hideDelay (200), and component:TopNavMegaMenu sets hideDelay (250) where component:TopNavMenu sets 200, so these surfaces do not share one default per kind, yet the inventory marks all four "yes". The bullet also overrides L74 ("The surface's owner chooses the default delay") and INV11. Suggest dropping it, or saying each owner sets its default, or listing the differing defaults as gaps and amending those records here.

Comment thread docs/design/motion.md Outdated
Comment on lines +88 to +90
- **Default on; adjustable.** The delay and guard are on by default. A surface
exposes them as `delay` and `hideDelay`, in milliseconds, and a caller
shortens or removes them only for a stated use case.

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.

Heading links may not add a public reveal API (module:Markdown/headingLinks AR3), and a container reveal's exit guard is its CSS fade, which INV11 leaves with the owner, so not every surface can expose delay and hideDelay. The inventory then marks heading links "yes" with neither option, and with no stated reason for the zero delay L75 asks for, while the DropdownMenu and SideNavItem rows are "partial" for the same gap. Suggest scoping the option names to timer-driven surfaces (tooltips, hover cards, menus and flyouts) and making the rows consistent.

Comment thread docs/design/motion.md Outdated
| `TopNavHeading` menu | none on a first open | on, no option | no: first open has no entry delay (gap, FR5) |
| `SideNavHeading` collapsed flyout | none on a first open | on, no option | no: first open has no entry delay (gap, FR5) |
| `Slider` value tooltip | none (`delay` set to zero) | on | no: zero delay with no recorded reason |
| `Overlay` with `showOn="hover"` | none, no option | none | no: no entry delay, exit guard or option |

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.

Overlay's hover mode fades opacity and visibility over --duration-fast when the pointer leaves, instantly under reduced motion (OverlayScrim.tsx base transition and hoverReveal): the same exit fade this record counts as the guard for container reveals. Suggest recording the exit fade here and keeping "no" for the missing entry delay and option.

| End-user impact | Users reach product, suite, and account destinations and a product switcher menu; screen-reader users hear a named logo link and a named menu. |
| Builder impact | None. |
| Compatibility/readiness | Records shipped behavior; no public change. Five implementation gaps (see Current-state impact). |
| Compatibility/readiness | Records shipped behavior; no public change. Six implementation gaps (see Current-state impact). |

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.

FR5 now requires a first hover-open to wait, which changes what mouse and pen users get today, but this row and the Compatibility section ("Released default preserved: yes", "records shipped behavior; no public change", "Migration decision: none") still describe a record of shipped behavior. component:AlertDialog marks the same situation no and names what shipping its requirements changes. Suggest the same here.

| End-user impact | Users reach product, suite, and account destinations and a product menu, in both the expanded and the collapsed rail; screen-reader users hear named links, a named trigger, and a named menu. |
| Builder impact | None. |
| Compatibility/readiness | Records shipped behavior; no public change. Six implementation gaps (see Current-state impact). |
| Compatibility/readiness | Records shipped behavior; no public change. Seven implementation gaps (see Current-state impact). |

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.

Same as TopNavHeading: FR5 now requires a first hover-open to wait, so "Released default preserved: yes", "records shipped behavior; no public change" and "Migration decision: none" no longer hold. Suggest no, with the note that shipping FR5 delays the first hover-open for mouse and pen users.

@cixzhang
cixzhang marked this pull request as draft November 6, 2026 14:42
…y apply to timer-driven surfaces; heading records name the released-default change

The consistent-timing bullet goes: each owner sets its own values. Only
timer-driven surfaces expose delay and hideDelay; a container reveal keeps
its CSS timing. Overlay's hover mode records its exit fade, and heading
links read partial for a zero delay with no reason. Both heading records
mark the released default as changed: shipping FR5 delays the first
hover-open for mouse and pen users. FR5 names the menu hover delay.
@cixzhang

cixzhang commented Nov 6, 2026

Copy link
Copy Markdown
Contributor Author

/approve-spec f0ded18

@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.

Changes requested. The owner approval on this head settles the hover-delay direction, and the latest commit fixes the earlier timing, compatibility and Overlay points; two sentences in the motion record still need correcting:

  • Correct "A container reveal keeps its timing in CSS with no public option" (docs/design/motion.md line 92), because useContainerReveal ships a public hoverDelay option for its entry delay, which the inventory's own container-reveal row calls opt-in.
  • Scope DEC-1's "Hover surfaces expose the wait as delay and the exit guard as hideDelay" (lines 163-165) to timer-driven surfaces, as the rule above it now does, because Markdown heading links may not add a public reveal API (module:Markdown/headingLinks AR3).

Also worth a look: the SideNavHeading inventory row says "collapsed flyout" although the heading hover-opens in the expanded rail too, and the two heading rows do not mention the delay/hideDelay options the rule asks of hover-opened menus.

[Automated review]

Comment thread docs/design/motion.md Outdated
owner sets its own default values. A timer-driven surface (a tooltip, a hover
card, a hover-opened menu or flyout) exposes them as `delay` and `hideDelay`,
in milliseconds, and a caller shortens or removes them only for a stated use
case. A container reveal keeps its timing in CSS with no public option.

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.

useContainerReveal does ship a public timing option: getContainerProps({hoverDelay}), the entry delay in milliseconds (hoverDelay?: number = 0 in the core API report; its hook doc recommends 100-250 ms on long lists). The container-reveal row below also calls that delay opt-in. Suggest: "A container reveal keeps its timing in CSS; a caller opts into its entry delay with hoverDelay, and its exit fade has no option."

Comment thread docs/design/motion.md Outdated
Comment on lines +163 to +165
Defaults are on; a caller opts out only for a stated use case. Hover surfaces
expose the wait as `delay` and the exit guard as `hideDelay` (milliseconds), as
Tooltip, HoverCard and TopNavMenu already do. Within a group of triggers, a

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.

The rule above now limits delay and hideDelay to timer-driven surfaces and gives container reveals no such option, but DEC-1 still says every hover surface exposes them, which reaches Markdown heading links (module:Markdown/headingLinks AR3: "the module must not add a parallel media-query, marker, token, or public reveal API"). Suggest: "Timer-driven hover surfaces (tooltips, hover cards, hover-opened menus and flyouts) expose the wait as delay and the exit guard as hideDelay...".

@cixzhang
cixzhang marked this pull request as ready for review November 6, 2026 17:12
…nd hideDelay apply to timer-driven surfaces; heading rows name the missing options
@cixzhang
cixzhang marked this pull request as draft November 6, 2026 17:20
@cixzhang

cixzhang commented Nov 6, 2026

Copy link
Copy Markdown
Contributor Author

/approve-spec 032fa18

@cixzhang
cixzhang marked this pull request as ready for review November 6, 2026 17:21

@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: CI had not finished on this head when this review was written.

The spec owner approval on this head settles the hover-delay direction, and the latest commit fixes both remaining wording points: the motion record now names the container reveal's opt-in hoverDelay, and DEC-1's delay/hideDelay sentence is limited to timer-driven surfaces, so Markdown heading links are not asked for a public reveal API. The knowledge-record check passes on this head.

[Automated review]

@cixzhang
cixzhang merged commit ddedd4c into main Nov 6, 2026
175 of 187 checks passed
@github-actions
github-actions Bot deleted the spec/motion-pointer-brush-debounce branch November 7, 2026 06:03

This branch was successfully deployed

1 active deployment
Preview — 032fa18f Deployed Nov 6, 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. spec-auto-merge Auto-merge was enabled by the spec owner gate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant