Skip to content

fix(BottomSheet): a Tall sheet's field rests 10 px above the keyboard - #10474

Draft
vjeux wants to merge 6 commits into
meta:mainfrom
vjeux:c09/sheet-field-clearance
Draft

vjeux wants to merge 6 commits into
meta:mainfrom
vjeux:c09/sheet-field-clearance

Conversation

@vjeux

@vjeux vjeux commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

User impact

On a phone, a fully expanded Tall BottomSheet's field rests 48 px above the on-screen keyboard, so the sheet shows less content. FR9 sets 10 px, the clearance layers keep.

Problem and solution fit

The sheet passed its own 48 px constant, which no record names, to the keyboard hook and its body's scroll padding. spec:AST-099 FR9 gives a focused field one clearance, 10 CSS px, and the spec owners ruled that the Tall sheet follows it. The sheet now passes none of its own, so the keyboard module's value applies to both.

Expected behavior and authority

spec:AST-099 FR9: a focused field sits 10 CSS px clear of the keyboard's top edge. The spec owners ruled it covers the Tall sheet's overlay path. BottomSheet's verification map names that clearance and the keyboard-only end padding. AST-099's new Gap 20 records Safari on iOS (10 to 20 px) and its cause. spec:AST-017 FR59 and DEC-25, deliberate consistency: with no keyboard, the body scrolls as other scroll areas do; Testing has desktop Tab before and after.

Smallest restoration

  • The sheet drops its constant and reads the keyboard module's FIELD_OFFSET.
  • Its body's scroll padding takes that value only while the keyboard covers it.
  • No API or prop change.

Evidence

  • Reproduction before the change, on main in the iOS Simulator (home-screen web app). The Mobile keyboard story's last field rests 48–58 px above the keyboard (4 takes).
  • Result after the change: 10–20 px above it (7 takes), with no page pan. Gap 20 states the cause of the spread, which main shares. On Android (Chrome, Gboard): 10.2 px against main's 48.2 px, at normal speed, 4× CPU and without animations.
  • Representative unchanged path: with no keyboard, a field in the body's bottom 10 px stays put.
  • Regression test: 43 of BottomSheet's keyboard tests move from 48 px to 10 px and fail on main's sheet.

Scope

  • One defect is restored.
  • Separable contradictory or unsettled tagalongs were removed or split.
  • No new public API, visual representation, default, or interaction model is hidden under the bug-fix label.
  • Public text and artifacts contain no internal Meta context.

Writing rubric results

R1 narration: none; present tense.
R2 research: none in the record.
R3 evidence: the row names methods and failures, not runs.
R4 rejected alternatives: none added.
R5 change references: none.
R6 open questions: none.

Number checked: #10474 renumbers (it and #11450 both added an AST-099 "Gap 13"; its gap is now Gap 20, and #11450 keeps Gap 13).

Merges after #9777 and #11450, and before #10462.

Testing

  • This head merges main f594a7e, with no conflicts. Its own lines match 3c324d8's (+290/−111), plus 44 lines in one test file, two comments and one record line.

    • Main since 55acf21 changes BottomSheetPanel.tsx (6 commits), useMobileKeyboard.ts (2) and BottomSheet.test.tsx (5).
    • The Tab case of BottomSheetScrollPadding.interaction.browser.spec.ts now waits for Core's reveal. On main, Core moves a Tab-focused field into its scroller one task after the browser's own focus scroll.
    • The case reads the body once the field ends within 1 px of the body's end and the body keeps one position for 10 frames.
    • The field still ends at the body's end (0.1 px), so only the time of the read changes.
  • At this head, 7552456: pnpm build; pnpm typecheck and pnpm lint have 0 errors; knowledge records pass; Storybook builds.

    • UI tests: 872 files and 23,510 tests pass, with Vitest's results cache cleared first. With the cache cleared, main f594a7e's full run passes too (23,509).
    • Earlier full runs with a stale results cache timed out Markdown's "renders the fence as the plugin node" at 30 s. That happened on main and at 598f05b.
    • BottomSheet's and the keyboard's interaction specs (9 files): 66 pass in Chromium (1 skipped), and 48 pass in WebKit (19 skipped).
    • BottomSheet's accessibility specs (16 files): 93 pass in Chromium. pnpm review:pre: no findings.
  • Red-first at 7552456, with BottomSheetPanel.tsx as on main: 44 of BottomSheet.test.tsx's 161 tests fail.

    • Both scroll-padding cases fail on main. The Tab case centres the field 274.9 px above the body's end.
    • The keyboard case finds 48 px of scroll padding with no keyboard.
  • The two iOS runs below are at be6dca6. Since be6dca6, this head changes two comments, one in a test file and one in useMobileKeyboard.ts, and the record's verified_by. The iOS takes re-run at the post-perf(core): SegmentedControl, Switch and BottomSheet load the touch animator after first paint #11450 head (spec:AST-094 DEC-31: the useMobileKeyboard.ts comment change voids them).

  • Real iPhone 14 (iOS 26.2, 23C55), Safari, at be6dca6 and on main f594a7e, three takes each, interleaved. Each take read version.json first.

    • The Mobile keyboard story's sheet, fully expanded, with an in-page log of every frame.
    • Author, which the keyboard leaves uncovered (99 to 101 px clear), does not move at either head.
    • Team, which the keyboard covers, rests 10 px above the visual viewport's bottom at be6dca6 (bottom 379 against 389). On main it rests 48 px above (341).
    • The sheet's body scrolls Team there over 19 frames (317 ms) at both heads. The field moves exactly as far as the body scrolls, with no page scroll or pan.
    • After Done, Team is back where it rested before the tap.
  • iOS Simulator (iPhone 11, iOS 26.1), the story added to the home screen and opened from it. It ran local production builds of be6dca6 and main f594a7e, with every frame logged.

    • Email, which the keyboard leaves uncovered, does not move at either build.
    • Summary is a TextArea and the first field the keyboard covers there. It rests 14 and 12 px above the visual viewport's bottom at be6dca6, in two runs. On main it rests 51 px above, in one run.
    • So this change moves it 37 to 39 px, where it changes the clearance by 38 px.
    • The extra 2 to 4 px shows on main too (51 against 48). For Summary, at both builds, Safari reported the keyboard twice: the visual viewport went 848, 418, then 435 px. AST-099 Gap 20 records that spread.
  • Android emulator: pending, at the post-perf(core): SegmentedControl, Switch and BottomSheet load the touch animator after first paint #11450 head.

  • The device runs below are at 3c324d8, before the main merge.

  • iOS Simulator (iPhone 17 Pro, iOS 26.2) at 3c324d8, the Mobile keyboard story added to the home screen, every frame sampled.

    • A real tap on the last field comes after the sheet settles fully expanded, with its body at its end.
    • Main rests the field 48, 54, 48 and 58 px above the keyboard. This branch rests it 10, 11, 13, 13, 15, 18 and 20 px above.
    • The visual viewport's offset and scrollY stay 0 throughout.
    • Each take logs every scrollBy the reveal makes. One comes at the keyboard's first report (visual viewport 392 px), and one at its second (409 px).
    • The second's distance starts from the scroll position before the first. How far over the target the field lands follows the time between them.
  • Desktop Tab at 3c324d8, before and after, with a fine pointer and no keyboard at 402 × 714. Tab goes into the second-to-last field, whose top shows 15, 30, 45 or 60 px above the body's end:

    Peek Main, Chromium This branch, Chromium Main, Firefox This branch, Firefox
    15 px centred at the body's end centred centred
    30 px centred at the body's end centred at the body's end
    45 px centred at the body's end centred at the body's end
    60 px at the body's end at the body's end centred at the body's end

    Main's 48 px scroll padding brings the field to the centre when it peeks less than the padding. This branch has none without a keyboard, so the browser's default applies. Firefox centres a field that peeks 15 px either way.

  • At 3c324d8, one BottomSheet test fails with the padding at every state. It is "pads the body's end by the 10 px clearance only while the keyboard covers the sheet". BottomSheetScrollPadding.interaction.browser.spec.ts checks in Chromium that a fine pointer's Tab lands that field at the body's end with no scroll padding. It also checks that a stand-in keyboard brings 10 px of padding (2 of 2 runs). Main fails it on 48 px, and on the padding at every state on 10 px.

  • At 3c324d8: pnpm api:report writes the same lines as on main alone. The touch-support, lazy-sheet and layer-toast bundle guards pass (19).

  • iPad (A16) Simulator, iOS 26.2, home-screen web app, the Comment field in a fully expanded Tall sheet, at 3c324d8 and on main. With a hardware keyboard, iPadOS's shortcut bar covers the sheet's end, and the sheet treats it as a keyboard. This branch rests the field 10.2 px above the bar (2 of 2), with 10 px of end padding and an 81 px inset. Main rests it 48.2 px above, with 48 px of padding. With no keyboard, this branch has no padding and no inset. Under the software keyboard: 10.2 px against 48.2 px.

  • Android emulator (Android 16, Chrome 133 with Gboard, default interactive-widget=resizes-visual), at 3c324d8. It reads the Mobile keyboard story's last field in a fully expanded Tall sheet, main against this branch.

    • The runs are at normal speed, under a 4× CPU slowdown and with animations removed.
    • In each, main rests the field 48.2 px above the keyboard (field bottom 447, keyboard top 495.2). This branch rests it 10.2 px above (485 against 495.2).
    • The visual viewport's offset stays 0 (no page pan), and the viewport is back to its full 783.2 px after Back.

Public and internal API delta

Size: +336/−112 lines (f594a7e..7552456): source +14/−12, tests +304/−97, docs and changeset +18/−3. No new module.

The repo's size report (node .github/scripts/analyze-pr.js --main-record, after pnpm build) at main f594a7e and at 7552456:

  • core/BottomSheet's import: 74,764 → 74,791 B gzip (+27).
  • Its CSS: 7,897 → 7,906 B gzip (+9).

Each page's first-load gzip of its eager chunks is measured as component-size.js measures an import, main against 7552456. INV10's docs, form and menu pages change by 0 B, and its table page by +1 B. A page of BottomSheet, Button and Text changes by +16 B, and a twelve-component app page by +2 B. A chat page and a page of DropdownMenu and MoreMenu change by 0 B.

Public: no export, prop or type changes in @astryxdesign/core. One changed default: a fully expanded Tall sheet's focused field rests 10 px above the on-screen keyboard, not 48 px. With no keyboard, the sheet's body has no scroll padding.

Internal: BottomSheetPanel reads FIELD_OFFSET (10 CSS px), an existing export of keyboard/keyboardTarget.ts, in place of its own 48 px constant. It no longer passes offset to useMobileKeyboard, whose default is FIELD_OFFSET. No new hook or export.

@vercel

vercel Bot commented Nov 7, 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 15, 2026 9:52am UTC

Request Review

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

astracat-bot Bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🟡 Reviewed (for maintainers only) Nov 15, 2026, 10:24 AM UTC

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

github-actions Bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

PR Analysis Report

Current run: The current CI run concluded skipped. Current analysis is unavailable.


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.

Changes requested: the fix restores the 10 px keyboard clearance spec:AST-099 FR9 sets for a field in a sheet, and the unit suite proves it, but two items block merge.

  • Add the Chrome-on-Android emulator run with Gboard at this head (main against this branch, the Mobile keyboard story's last field), because spec:AST-099 makes simulator and emulator evidence a merge gate for keyboard work and the description lists that run as pending.
  • Reword .changeset/sheet-field-clearance.md, because no other Core field keeps a keyboard clearance on main yet (layers keep 10 px) and the pull request's own Gap 13 records 10 to 20 px in Safari on iOS, so "keeps its focused field 10 px above ... the clearance every other field keeps" overstates the change; for example: "A fully expanded Tall BottomSheet now places its focused field 10 px above the on-screen keyboard, the clearance layers keep, instead of 48 px."

A non-blocking wording suggestion for the changed comment in useMobileKeyboard.ts is inline.

[Automated review]

Comment thread .changeset/sheet-field-clearance.md Resolved
@cixzhang

cixzhang commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

/approve-spec 4e57985

@github-actions github-actions Bot removed the needs:spec-owner-review Current knowledge records await owner approval label Nov 7, 2026
@vjeux
vjeux force-pushed the c09/sheet-field-clearance branch from 4e57985 to 71db5ec Compare November 7, 2026 08:06

@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 fix restores the 10 px keyboard clearance spec:AST-099 FR9 sets for a field in a sheet, the unit suite proves it, and the changeset now says exactly that, but one item still blocks merge.

  • Add the Chrome-on-Android emulator run with Gboard at this head (main against this branch, the Mobile keyboard story's last field, 10 px clear with no page pan), because spec:AST-099 makes emulator evidence at the exact head a merge gate for keyboard work and the description still lists that run as pending.

Two non-blocking leftovers from the 48 px value:

  • Miss: packages/core/src/keyboard/README.md still says BottomSheet passes "its suggestion clearance as offset"; the sheet now passes none and the hook's FIELD_OFFSET applies.
  • Miss: three comments in BottomSheet.test.tsx keep the old figures (248, 348, 148 and 164 px) beside expectations that now assert 210, 310 and 110 px; details are inline.

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

Approval waits on one owner decision, and one item still blocks merge. The fix restores the 10 px keyboard clearance spec:AST-099 FR9 sets for a field in a sheet, the unit suite proves it, and the earlier README and test-comment leftovers are fixed.

  • Miss: the Tall body's scroll padding applies with no on-screen keyboard too, so moving it from 48 px to 10 px changes where a desktop Tab reveal lands (a field peeking 15 to 45 px above the body's end in Chromium, or 30 to 60 px in Firefox, was centred on main and now stops at the body's end), and since no current spec settles which, an engineering owner (the author may decide as one) needs to choose between the new result, main's result, or applying the padding only while an on-screen keyboard covers the sheet.
  • Add the Chrome-on-Android emulator run with Gboard at this head (main against this branch, the Mobile keyboard story's last field, 10 px clear with no page pan), because spec:AST-099 makes emulator evidence at the exact head a merge gate for keyboard work and the description still lists that run as pending.

Non-blocking: useMobileKeyboard.ts line 424 still says "no suggestion clearance"; the clearance is now FR9's field clearance.

[Automated review]

@cixzhang

cixzhang commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

/approve-spec fc60bd0

A fully expanded Tall sheet kept its focused field 48 px above the
on-screen keyboard, from a constant no record names, where spec:AST-099
FR9 sets 10 px, the clearance layers keep. The sheet now passes no
clearance of its own, so the keyboard module's FIELD_OFFSET applies.

Its body's scroll padding takes the same value, and only while the
keyboard covers the sheet, as UIKit's keyboard inset. With no keyboard,
a field Tab moves to stops at the body's end, as in other scroll areas.
The padding rides the inset's render, so it adds no layout.

BottomSheet's keyboard tests move from 48 px to 10 px: the room, the
reveal's scroll and the ride's distance each shrink by 38 px. The case
for a field in the bottom band with no keyboard moves its field into the
new 10 px band. A unit test and a Chromium spec check the padding with
and without a keyboard.

@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: one evidence item still blocks merge. The fix restores the 10 px keyboard clearance spec:AST-099 FR9 sets for a field in a sheet, the unit suite proves it, and an engineering owner's /approve-spec for this head accepts the desktop Tab-reveal result and the record edits.

  • Run the Chrome-on-Android emulator check (Gboard, the Mobile keyboard story's last field, main against this branch) at this exact head and state the results in the description, because the run described there is at an earlier commit and spec:AST-099 Platform support makes emulator evidence at the exact head a merge gate.
  • Miss: the same clause also asks for that run with animations removed and under a slow-device profile, besides animations at normal scale, which the earlier reviews did not name.

Non-blocking: useMobileKeyboard.ts line 424 still says "no suggestion clearance"; the clearance is now FR9's field clearance.

[Automated review]

The BottomSheet verification map names spec:AST-099 FR9's clearance for
a fully expanded Tall sheet: its focused field rests 10 CSS px above an
overlaid keyboard, in the unit suite. The end padding applies only while
the keyboard covers the sheet, which a Chromium spec checks.

AST-099's Gap 13 records Safari on iOS, where that field rests 10 to 20
CSS px above the keyboard. Safari reports the keyboard twice as it
rises, and the sheet retargets its reveal at the second report from a
stale scroll base.
@vjeux
vjeux force-pushed the c09/sheet-field-clearance branch from fc60bd0 to 3c324d8 Compare November 7, 2026 09:40
@github-actions github-actions Bot added the needs:spec-owner-review Current knowledge records await owner approval label Nov 7, 2026
@cixzhang

cixzhang commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

/approve-spec 3c324d8

@github-actions github-actions Bot removed the needs:spec-owner-review Current knowledge records await owner approval label Nov 7, 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: one evidence item still blocks merge. The fix restores the 10 px keyboard clearance spec:AST-099 FR9 sets for a field in a sheet, the unit suite and the new scroll-padding tests prove it, and the no-keyboard padding follows the option an engineering owner chose, with an /approve-spec for this head.

  • Run the Chrome-on-Android emulator check (Gboard, the Mobile keyboard story's last field, main against this branch) at this exact head with animations at normal scale, with animations removed and under a slow-device profile, and state each result in the description, because spec:AST-099 Platform support makes that evidence a merge gate and the run described there is at an earlier commit whose BottomSheetPanel.tsx differs from this head (the scroll padding is now gated on the keyboard inset).

Non-blocking: useMobileKeyboard.ts line 424 still says "no suggestion clearance"; two small notes on the new test helper and the record's verified_by list are inline.

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

Approved pending CI: CI has not run on this head yet, because the branch is in a fork without the ci:run label, so a maintainer adds ci:run to run it.

The fix restores the 10 px keyboard clearance spec:AST-099 FR9 sets for a focused field in a fully expanded Tall sheet, the unit suite proves it (44 of the sheet's tests fail with the old panel), the no-keyboard padding follows the option an engineering owner approved for this head, and the description now carries the Android emulator run at this head with animations at normal scale and removed and under a 4x CPU slowdown. Two non-blocking leftovers, fine for the follow-up you mentioned:

  • useMobileKeyboard.ts:423-424 still says "no suggestion clearance then"; the clearance there is now FR9's field clearance.
  • scrollPaddingOf in BottomSheet.test.tsx (lines 361-367) sits under keyboardInsetOf's comment.

[Automated review]

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

Copy link
Copy Markdown
Contributor

/approve-spec be6dca6

@github-actions github-actions Bot removed the needs:spec-owner-review Current knowledge records await owner approval label Nov 15, 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: one evidence item blocks merge. The clearance fix matches the on-screen keyboard spec's 10 px rule for a field in a sheet, and the record changes carry an engineering owner's approval for this head.

  • The iOS Simulator and Android emulator results that the on-screen keyboard spec (AST-099 Platform support) makes a merge gate are from before the main merge, which changed BottomSheetPanel.tsx and useMobileKeyboard.ts, so they do not carry to this head; repeat the iOS Simulator home-screen take and the Android emulator takes (Gboard, normal speed, animations removed, slow-device profile) on this head and state each result in the description.

At this head the BottomSheet and keyboard unit suites pass, 44 of the 161 BottomSheet tests fail against the base panel, and in Chromium the focused field moves from 48.5 px to 10.5 px above a simulated keyboard with no page scroll. Three non-blocking follow-ups remain from earlier rounds: the stale "no suggestion clearance" comment in useMobileKeyboard.ts, the scrollPaddingOf test helper sitting under keyboardInsetOf's comment, and naming the new browser spec in BottomSheet's verified_by list.

Claims and files checked

Review mode: same-head; reason: none

Claims:

  • Release note: a fully expanded Tall sheet's focused field rests 10 px above the keyboard instead of 48 px: verified (BottomSheetPanel.tsx:976-983, useMobileKeyboard.ts:177, the unit suite, 10.5 px in Chromium); Safari on iOS lands 10 to 20 px, which the new gap records.
  • Release note: 10 px is the clearance layers keep: verified (the keyboard spec's field clearance rule).
  • Release note: with no keyboard the body has no scroll padding: verified (BottomSheetPanel.tsx:1312-1314; Chromium reports auto).
  • The sheet used its own 48 px constant, which no record names: verified (base BottomSheetPanel.tsx:107).
  • The sheet now reads the keyboard module's existing FIELD_OFFSET and passes no offset: verified (keyboardTarget.ts:48).
  • The padding takes that value only while the keyboard covers the sheet: verified (new unit test at BottomSheet.test.tsx:3341; Chromium probe, 10px under a simulated keyboard).
  • No API or prop change: verified (surface comparison of Core and the themes lists no row).
  • The verification map names the clearance and the keyboard-only padding, and a new gap records the Safari spread and its cause: verified (BottomSheet.spec.md:455, Gap 20).
  • With no keyboard, a field in the body's bottom 10 px stays put: verified (its unit test passes).
  • 43 keyboard tests move from 48 to 10 px, and 44 of 161 BottomSheet tests fail with the base panel: verified (red-first run: 44 failed, 117 passed).
  • The head merges main cleanly and its own lines match the earlier head plus 44 lines in one test file: verified, plus the one-line gap renumber.
  • Main's commits since the earlier merge base touch the panel (6), the hook (2) and the test file (5): verified.
  • Desktop Tab before and after: verified in Chromium at this head for the 30 px peek (centred 274.9 px above the end on base, flush on head); the Firefox columns were not rerun.
  • The Tab case reads the body after the reveal, with the field at the body's end: verified by reading the spec (poll, then ten still frames).
  • Build, typecheck, lint and the full UI suite pass: partly verified (build, core and theme builds; BottomSheet and keyboard suites, 23 files and 762 tests); the full suite, typecheck and lint were not rerun.
  • Size report and page first-load deltas: not re-measured; no optional feature or shared module grows.
  • Device results (iOS Simulator, iPad, Android emulator) are from an earlier head and the set at this head is pending: true as stated; this is the blocking item.

Files:

  • .changeset/sheet-field-clearance.md: clear.
  • docs/specs/AST-099-mobile-keyboard/spec.md: clear (Gap 20, owner-approved at this head).
  • docs/specs/components/BottomSheet/BottomSheet.spec.md: clear (new row owner-approved at this head); non-blocking: verified_by does not list the new browser spec.
  • packages/core/src/BottomSheet/BottomSheet.test.tsx: clear; non-blocking: scrollPaddingOf sits under keyboardInsetOf's comment.
  • packages/core/src/BottomSheet/BottomSheetPanel.tsx: clear; its device evidence is the blocking item.
  • packages/core/src/BottomSheet/__tests__/BottomSheetScrollPadding.interaction.browser.spec.ts: clear.
  • packages/core/src/keyboard/README.md: clear.
  • packages/core/src/keyboard/useMobileKeyboard.ts: clear; non-blocking: the comment at line 432 still names a suggestion clearance.

Automated review (maintainer link)

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

Copy link
Copy Markdown
Contributor

/approve-spec 7552456

@github-actions github-actions Bot removed the needs:spec-owner-review Current knowledge records await owner approval label Nov 15, 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: one evidence item blocks merge. The fix restores the on-screen keyboard spec's 10 px clearance for a field in a fully expanded Tall sheet, the unit suite proves it, and an engineering owner approved the record changes at this head.

  • The device and emulator runs that the on-screen keyboard spec makes a merge gate are not at this head: the Android emulator run is still pending, and the iPhone and iOS Simulator takes from the previous head do not carry across this head's comment edit at packages/core/src/keyboard/useMobileKeyboard.ts:432, because the evidence-carry rule covers only test-only files, knowledge records and release notes, so please take those runs on the final head and state each result in the description.

Required CI has not run on this head yet, because the draft's heavy jobs are skipped.

Claims and files checked

Review mode: same-head; reason: none

  • Changeset: a fully expanded Tall sheet's focused field rests 10 px above the keyboard instead of 48 px, and with no keyboard the body has no scroll padding: verified (BottomSheetPanel.tsx:976-984, :1311-1314; unit test and Chromium probe).
  • The sheet drops its 48 px constant and reads the keyboard module's 10 px value for both the reveal and the body's padding: verified (BottomSheetPanel.tsx:76, useMobileKeyboard.ts:177, keyboardTarget.ts:48).
  • The body's scroll padding applies only while the keyboard covers the sheet: verified (new unit test; Chromium shows no padding without a keyboard and 10 px under one).
  • No API or prop change: verified (generated surface comparison, no rows).
  • With main's panel, 44 of the sheet's 161 unit tests fail: verified.
  • The head merges main with no conflicts, and its own lines match the earlier commit's plus 44 lines in one test file, two comments and one record line: verified.
  • Since the previous head only two comments (one in a test file) and the record's test list changed: verified. That device runs carry across such a commit: false, because the hook comment is shipped source.
  • The Android emulator run at this head is pending: confirmed, so that evidence is missing.
  • Desktop Tab before and after: reproduced at this head in Chromium for the 30 px peek (centred on main, flush with the body's end here).
  • Size +336/−112, split into source, tests and docs as stated: verified. Bundle-size deltas: not rechecked.
  • Files: .changeset/sheet-field-clearance.md clear; docs/specs/AST-099-mobile-keyboard/spec.md clear; docs/specs/components/BottomSheet/BottomSheet.spec.md clear; packages/core/src/BottomSheet/BottomSheet.test.tsx clear; packages/core/src/BottomSheet/BottomSheetPanel.tsx clear; packages/core/src/BottomSheet/__tests__/BottomSheetScrollPadding.interaction.browser.spec.ts clear; packages/core/src/keyboard/README.md clear; packages/core/src/keyboard/useMobileKeyboard.ts its line 432 edit ends the device-evidence carry (finding above).

Automated review (maintainer link)

const obstructionTop = getObstructionTop();
// Under a pixel of overhang is `innerHeight`'s precision, not a
// keyboard: no suggestion clearance then (overlapOf).
// keyboard: no field clearance then (overlapOf).

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.

Blocking (evidence): this line is shipped source, so the iPhone and iOS Simulator takes from the previous head no longer count here; the evidence-carry rule covers only test-only files, knowledge records and release notes. Please take the iOS run and the Android emulator runs (Gboard, normal speed, animations removed, slow-device profile) on the final head and state each result in the description.

This branch was successfully deployed

1 active deployment
Preview — 75524566 Deployed Nov 15, 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.

2 participants