Repository navigation
spec(Dialog): React Native platform record - #12838
imdreamrunner wants to merge 10 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
There was a problem hiding this comment.
This draft record needs an engineering owner's decision, and five contradictions with current specs need fixes either way.
Its new requirements (FR1–FR8, AR1–AR3, DEC-1–DEC-3, which rest partly on the still-open AST-128, AST-123 and AST-112 records) wait on an engineering owner approving them by commenting /approve-spec <full head SHA> on this pull request, and the author may do so as an engineering owner.
Blocking:
- FR6 lets a dim tap close a
purpose="form"dialog until an input reports an edit, but core'sformnever closes on a backdrop press and AST-082 FR3 forbids a platform from changing a core prop's meaning, soformshould close only on Android back and the escape. - FR3 requires React Native's modal window on Android while the record's own gap line says this breaks AST-082 FR11, so either state the Android window as FR11 requires and keep the gap line, or name Material's dialog and why it does not fit (AST-093 FR2).
- DEC-2 drops
padding, a portable spacing-step prop that Card keeps in its native props, so keep it under AST-082 FR3 and leave onlywidth,maxHeightandpositionweb-only. - AR1 always returns focus to the opener, but the current
component:DialogFR4 and AR2 return focus only when the close would strand it and otherwise follow AST-116's fallback chain, so follow or cite them. - FR8 makes the close button small, but
module:Dialog/DialogHeaderderives its edge compensation and title centring from the medium close action, so the row should name the default (medium) ghost icon button.
Also worth a look: system_specs should list AST-123 and AST-128 once they land, and FR6 could say whether a dim tap during the entrance fade is held, as AST-094 FR35 requires on the web.
Claims and files checked
Review mode: full; reason: no-earlier-review
- Claim: stacked on the change that accepts React Native platform records, and merges after it. Verified: the base adds
react-nativeto the accepted platform languages. - Claim: it also merges after the open menus-and-presentation, surfaces-and-glass and foundation-amendment records. Verified: none of them is on
mainor at this head, and the record cites them. - Claim: the Dialog, DialogHeader, overlay-dismissal and native-first records are current and were searched. Verified.
- Claim: no other open pull request adds a Dialog React Native record. Verified: the open AlertDialog and Popover records are separate files.
- Claim: React Native's Dialog and DialogHeader keep web's props and meaning. False: FR6 changes
form, and DEC-2 dropspadding. - Claim: the window, panel, motion,
purposepaths, inline panel,onDismissedand screen-reader behavior are as the description lists them. Verified against the record text; findings above. - Claim: each requirement was read against the current React Native implementation, and each difference is a gap line. Could not be verified: that implementation is not in this repository.
- Claim: the writing rubric R1–R7 finds nothing. Verified: no pull request references, no Rejected lines, Open questions reads "None.", and the knowledge check reports no temporary status in this record.
- Claim: the knowledge check, Prettier and the whitespace check are clean, and the PR holds specification records only, with no internal context. Verified.
- File
docs/specs/components/Dialog/Dialog.react-native.spec.md: the five blocking findings and two notes above.
… on Android; focus return per core; default close button
There was a problem hiding this comment.
This draft record still needs an engineering owner's decision, and one contradiction inside it needs a fix either way. The five contradictions from the last review are resolved.
Its new requirements (FR1–FR8, AR1–AR3, ORD1–ORD3, PR1 and DEC-1–DEC-3, including onDismissed, the iOS presentation window and Android's use of Material's dialog) wait on an engineering owner approving them by commenting /approve-spec <full head SHA> on this pull request; the author may do so as an engineering owner.
Blocking:
- FR3 and the Platform controls paragraph hand Android's dialog to Material and draw the panel only on iOS, but FR4, the Design relationships Panel row and the verification map still require a theme-drawn panel of at most 400 dp over the theme's dim on every platform, so state what Material's dialog provides on Android and what the theme still draws inside it, or limit FR4 to iOS and state Android's container and size.
Non-blocking: add spec:AST-123 and spec:AST-128 to system_specs when they land, say whether a dim tap during the entrance is held (AST-094 FR35), and write maxHeight for "height" in the Builder impact and Review checks rows.
Claims and files checked
Review mode: full; reason: spec-record
- Claim: the record sits on the change that accepts React Native platform records and merges after it: verified (the base branch holds that change).
- Claim: it cites the open menus-and-presentation and surfaces-and-glass records and the foundation amendment: verified (FR3–FR5, AR1, AR3).
- Claim: the existing authority listed is current or open as described: verified for core Dialog, DialogHeader, overlay dismissal, Drawer FR15, native-first surfaces and the open drafts.
- Claim: no other open pull request adds a Dialog React Native record: verified by a repository search.
- Claim: web's props and meaning are kept,
paddingincluded, withwidth,maxHeightandpositionweb-only: verified (FR1, DEC-2). - Claim: the iOS presentation host over sheets, React Native's modal window as its fallback, Material's dialog on Android, and no window while hidden: verified (FR3, ORD1).
- Claim: panel size, glass, fade and slide: verified (FR4, FR5); the Android panel conflicts with FR3 (the blocking finding).
- Claim:
purposepicks the closing paths andformignores a dim tap; the inline panel draws in place: verified (FR6, FR7). - Claim:
onDismissedfires once the window has gone: verified (FR2, DEC-3). - Claim: focus returns as core states, the title is a level-2 heading and the close button is the default ghost icon button: verified (AR1, AR3, FR8).
- Claim: every difference from the React Native library is a gap line: not verifiable here, since that library is not in this repository.
- Claim: Prettier and whitespace checks are clean: verified; the knowledge check was not rerun.
- File:
docs/specs/components/Dialog/Dialog.react-native.spec.md: one blocking finding (the Android panel) and three non-blocking notes.
…alog draws the Android container
There was a problem hiding this comment.
This draft record still needs an engineering owner's decision, and three findings need fixes either way. The earlier Android panel finding is resolved in FR4, FR5, the Panel row and the verification map.
Its new requirements (FR1–FR8, AR1–AR3, ORD1–ORD3, PR1 and DEC-1–DEC-3, including onDismissed, the iOS presentation window and Android's use of Material's dialog) wait on an engineering owner approving them by commenting /approve-spec <full head SHA> on this pull request; the author may do so as an engineering owner.
Blocking:
- Miss: AR1 gives every dialog the plain dialog role, but core renders a
requiredDialog as an alert dialog (role="alertdialog"), so state how arequireddialog keeps that role on each platform, or record the difference as a gap line. - Miss: the Representative states rows for content taller than three quarters of the window and for
fullscreenstill require iOS's scroll threshold and slide on Android, where FR4 and FR5 now give Material's container and motion, so mark them iOS or add Android rows. - The description's Decision bullet for the panel and its motion (FR4, FR5) still describes iOS's panel for every platform, so add "on iOS" and Android's Material's dialog line.
Non-blocking: say which theme values Android reads (the Behavior row and the Theme values paragraph still name the theme's dim, shadow and gutter for both platforms), name the Android native piece that presents Material's dialog, add the two open group records to system_specs when they land, say whether a dim tap during the entrance is held, and write maxHeight for "height" in the Builder impact and Review checks rows.
Claims and files checked
Review mode: full; reason: spec-record
- Claim: the record sits on the change that accepts React Native platform records and merges after it: verified (the base branch holds that change, still open).
- Claim: it cites the open menus-and-presentation and surfaces-and-glass records and the foundation amendment, and merges after them: verified (FR3–FR5, AR1 and AR3 cite them; all three are open).
- Claim: the existing authority listed is current or open as described: verified for core Dialog, DialogHeader, overlay dismissal, the Drawer purpose clause, native-first surfaces and the two open group records.
- Claim: no other open pull request adds a Dialog React Native record: verified by a repository search.
- Claim: web's props and meaning are kept,
paddingincluded, withwidth,maxHeightandpositionweb-only: verified (FR1, DEC-2). - Claim: the iOS presentation host over sheets with React Native's modal window as its fallback, Material's dialog on Android, and no window while hidden: verified (FR3, ORD1).
- Claim: the standard panel is centred over the theme's dim, up to 400 wide and three quarters tall, in glass on iOS 26 and later; standard fades and full-screen slides: false for Android, where FR4 and FR5 now give Material's container and motion (blocking finding).
- Claim:
purposepicks the closing paths andformignores a dim tap; the inline panel draws in place: verified (FR6, FR7). - Claim:
onDismissedis called once the window has gone: verified (FR2, DEC-3). - Claim: focus moves in and returns as core states, the title is a level-2 heading and the close button is the default ghost icon button: verified (AR1, AR3, FR8); AR1's role for a
requireddialog is a blocking finding. - Claim: every difference from the React Native library is a gap line: not verifiable here, since that library is not in this repository.
- Claim: the writing rubric finds no narration, research, change references, rejected alternatives, open options or project status: verified; "not yet released" appears only in the template's readiness fields.
- Claim: the knowledge check, Prettier and whitespace checks are clean: verified at this head.
- Claim: the pull request contains specification records only: verified (one record file).
- File:
docs/specs/components/Dialog/Dialog.react-native.spec.md: two blocking findings (AR1's role; the two Representative states rows) and four non-blocking notes.
…Android representative states
There was a problem hiding this comment.
This draft record still needs an engineering owner's decision, and one finding needs a fix either way; the three findings from the last review are resolved (AR1 keeps a required dialog's alert-dialog role, the Representative states rows are split by platform, and the description's panel bullet names iOS).
Its new requirements (FR1–FR8, AR1–AR3, ORD1–ORD3, PR1 and DEC-1–DEC-3, including onDismissed, the iOS presentation window and Android's use of Material's dialog) wait on an engineering owner approving them by commenting /approve-spec <full head SHA> on this pull request; the author may do so as an engineering owner.
Blocking:
- Miss: DEC-2 still says the panel takes the window less the gutter, up to 400 and three quarters of the window's height, for every platform, while FR4 hands Android's width and position to Material's dialog, so start that sentence "On iOS" and say that Material's dialog sizes and places the Android container.
Non-blocking: say which theme values Android reads (the Behavior row and the Theme values paragraph), give the verification map's AR1 row a failure for a required dialog read as a plain dialog, name the Android native piece that presents Material's dialog, add the two open group records to system_specs when they land, and write maxHeight for "height" in the Builder impact and Review checks rows. The earlier note about a dim tap during the entrance is withdrawn, since that touch-presentation rule governs the web components only.
Claims and files checked
Review mode: full; reason: spec-record
- Claim: the record sits on the change that accepts React Native platform records and merges after it: verified (the base branch holds that change, still open).
- Claim: it cites the open menus-and-presentation and surfaces-and-glass records and the foundation amendment, and merges after them: verified (FR1, FR3–FR5, AR1 and AR3 cite them; all three are open).
- Claim: the existing authority listed is current or open as described: verified for core Dialog, DialogHeader, overlay dismissal, the Drawer purpose clause, native-first surfaces, and the two open group records, including the open question on Android system hosts.
- Claim: the TopNav and TabBar React Native records are open, and no other open pull request adds a Dialog React Native record: verified by a repository search (the open AlertDialog record covers a different component).
- Claim: web's props and meaning are kept,
paddingincluded, withwidth,maxHeightandpositionweb-only: verified (FR1, DEC-2). - Claim: the iOS presentation host over sheets in request order, React Native's modal window as its fallback, Material's dialog on Android, and no window while hidden: verified (FR3, ORD1).
- Claim: on iOS the panel is centred over the dim, up to 400 wide and three quarters tall, in glass on iOS 26 and later, standard fades and full-screen slides; on Android Material's dialog draws the container, its size and its motion; content is padded by
padding: verified (FR4, FR5); DEC-2 still states the iOS size for every platform (blocking finding). - Claim:
purposepicks the closing paths andformignores a dim tap, as the Drawer clause states; the inline panel draws in place: verified (FR6, FR7). - Claim:
onDismissedis called once the window has gone: verified (FR2, DEC-3). - Claim: focus moves in, a
requireddialog keeps the alert-dialog role, focus returns as core states, the title is a level-2 heading and the close button is the default ghost icon button: verified (AR1–AR3, FR8). - Claim: every difference from the React Native library is a gap line, and each requirement was read against that library: not verifiable here, since that library is not in this repository.
- Claim: the record keeps no rejected alternatives: verified.
- Claim: the writing rubric finds no narration, research, change references, rejected alternatives, open options or project status: verified; "not yet released" appears only in the template's readiness fields.
- Claim: the knowledge check, Prettier and whitespace checks are clean: verified at this head.
- Claim: the pull request contains specification records only: verified (one record file).
- File:
docs/specs/components/Dialog/Dialog.react-native.spec.md: one blocking finding (DEC-2) and five non-blocking notes.
…he Android container
There was a problem hiding this comment.
This draft record still needs an engineering owner's decision; no finding blocks it at this head, and the last review's blocking finding is resolved (DEC-2 now gives the 400-wide, three-quarter-height panel to iOS and lets Material's dialog size and place the Android container).
Its new requirements (FR1–FR8, AR1–AR3, ORD1–ORD3, PR1 and DEC-1–DEC-3, including onDismissed, the iOS presentation window and Android's use of Material's dialog) wait on an engineering owner approving them by commenting /approve-spec <full head SHA> on this pull request; the author may do so as an engineering owner.
Non-blocking:
- Miss: the Design relationships Panel row ties the inline panel (FR7) to Material's dialog container on Android, which needs a window, so say what an inline panel draws on Android.
- Say which theme values Android reads (the Behavior row and the Theme values paragraph), name the Android native piece that presents Material's dialog, write
maxHeightfor "height" in the Builder impact and Review checks rows, and add the two open group records tosystem_specswhen they land.
Claims and files checked
Review mode: full; reason: spec-record
- Claim: the record sits on the change that accepts React Native platform records and merges after it: verified (the base branch holds that change, still open).
- Claim: it cites the open menus-and-presentation and surfaces-and-glass records and the foundation amendment, and merges after them: verified (FR1, FR3–FR6, AR1 and AR3 cite them; all three are open).
- Claim: the existing authority listed is current or open as described: verified for core Dialog, DialogHeader, overlay dismissal, the Drawer purpose clause, native-first surfaces, and the two open group records, including the open question on Android system hosts.
- Claim: the TopNav and TabBar React Native records are open, and no other open pull request adds a Dialog React Native record: verified (both open; a title search finds only this pull request; the open AlertDialog record covers a different component).
- Claim: web's props and meaning are kept,
paddingincluded, withwidth,maxHeightandpositionweb-only: verified (FR1, DEC-2). - Claim: the iOS presentation host over sheets in request order, React Native's modal window as its fallback, Material's dialog on Android, and no window while hidden: verified (FR3, ORD1).
- Claim: on iOS the panel is centred over the dim, up to 400 wide and three quarters tall, in glass on iOS 26 and later, standard fades and full-screen slides; on Android Material's dialog draws the container, its size and its motion; content is padded by
padding: verified (FR4, FR5, DEC-2). - Claim:
purposepicks the closing paths andformignores a dim tap, as the Drawer clause states; the inline panel draws in place: verified (FR6, FR7). - Claim:
onDismissedis called once the window has gone: verified (FR2, DEC-3). - Claim: focus moves in, a
requireddialog keeps the alert-dialog role, focus returns as core states, the title is a level-2 heading and the close button is the default ghost icon button: verified (AR1–AR3, FR8). - Claim: every difference from the React Native library is a gap line, and each requirement was read against that library: not verifiable here, since that library is not in this repository.
- Claim: the record covers only what React Native adds, and dismissal ranking, the presentation hosts and the overlay paint stay with their owners: verified (Ownership boundary).
- Claim: the record keeps no rejected alternatives: verified.
- Claim: the writing rubric finds no narration, research, change references, rejected alternatives, open options or project status: verified; "not yet released" appears only in the template's readiness fields.
- Claim: the pull request contains specification records only and no internal context: verified (one record file).
- Claim: the knowledge check, Prettier and whitespace checks are clean: verified at this head.
- File:
docs/specs/components/Dialog/Dialog.react-native.spec.md: no blocking finding; five non-blocking notes.
| Accessibility in the Apple Human Interface Guidelines; Dialogs and | ||
| Accessibility in Material 3 (`spec:AST-093` FR3). | ||
|
|
||
| Theme values read (`spec:AST-093` FR4): `color.overlay` for the dim, |
There was a problem hiding this comment.
Non-blocking: FR4 gives Android Material's dim, elevation and width, with only the theme's surface colour and container radius reaching it, but this list reads as both platforms (color.overlay for the dim, shadow.high, the space.s4 gutter). Suggest naming which values each platform reads, and the same for the Behavior row's "over the theme's dim" (line 31).
There was a problem hiding this comment.
This draft record still needs an engineering owner's decision, and one finding needs a fix either way; the last review's inline-panel note and the maxHeight wording are resolved.
Its new requirements (FR1–FR8, AR1–AR3, ORD1–ORD3, PR1 and DEC-1–DEC-3, including onDismissed, the iOS presentation window, Android's use of Material's dialog and FR7's new inline-panel paint) wait on an engineering owner approving them by commenting /approve-spec <full head SHA> on this pull request; the author may do so as an engineering owner.
Needs a fix:
- The Representative states row "iOS, Reduce Transparency on and off" (line 146) now requires glass on every iOS release, while FR4 (line 120) paints the opaque surface where glass cannot paint, so scope the row to where glass can paint or add the opaque fallback to its invariant.
Non-blocking:
- Say which theme values Android reads (the Behavior row and the Theme values paragraph), make the Panel row's authority cell say the inline panel is theme-drawn on both platforms, add FR7's paint and padding (and core's inline shadow, or why it is dropped) to the FR7 verification row, name the Android native piece behind Material's dialog, and add the two open group records to
system_specswhen they land.
Claims and files checked
Review mode: full; reason: spec-record
- Claim: the record sits on the change that accepts React Native platform records and merges after it: verified (the base branch holds that change, still open).
- Claim: it cites the open menus-and-presentation and surfaces-and-glass records and the foundation amendment, and merges after them: verified (FR1, FR3–FR6, AR1 and AR3 cite them; all three are open).
- Claim: the existing authority listed is current or open as described: verified for core Dialog, DialogHeader, overlay dismissal, the Drawer purpose clause, native-first surfaces, and the two open group records, including the open question on Android system hosts.
- Claim: the TopNav and TabBar React Native records are open, and no other open pull request adds a Dialog React Native record: verified (both open; a title search finds only this pull request).
- Claim: web's props and meaning are kept,
paddingincluded, withwidth,maxHeightandpositionweb-only: verified (FR1, DEC-2). - Claim: the iOS presentation host over sheets in request order, React Native's modal window as its fallback, Material's dialog on Android, and no window while hidden: verified (FR3, ORD1).
- Claim: on iOS the panel is centred over the dim, up to 400 wide and three quarters tall, in glass where glass can paint, standard fades and full-screen slides; on Android Material's dialog draws the container, its size and its motion; content is padded by
padding: verified (FR4, FR5, DEC-2), though the Representative states row above disagrees with FR4 on older iOS. - Claim:
purposepicks the closing paths andformignores a dim tap, as the Drawer clause states; the inline panel draws in place in the theme's surface colour, container radius and inset on both platforms: verified (FR6, FR7). - Claim:
onDismissedis called once the window has gone: verified (FR2, DEC-3). - Claim: focus moves in, a
requireddialog keeps the alert-dialog role, focus returns as core states, the title is a level-2 heading and the close button is the default ghost icon button: verified (AR1–AR3, FR8). - Claim: every difference from the React Native library is a gap line, and each requirement was read against that library: not verifiable here, since that library is not in this repository.
- Claim: the record covers only what React Native adds, and dismissal ranking, the presentation hosts and the overlay paint stay with their owners: verified (Ownership boundary).
- Claim: the record keeps no rejected alternatives: verified.
- Claim: the writing rubric finds no narration, research, change references, rejected alternatives, open options or project status: verified; "not yet released" appears only in the template's readiness fields.
- Claim: the pull request contains specification records only and no internal context: verified (one record file).
- Claim: the knowledge check, Prettier and whitespace checks are clean: verified at this head.
- File:
docs/specs/components/Dialog/Dialog.react-native.spec.md: one finding to fix (line 146); five non-blocking notes.
…; the inline panel's checks
There was a problem hiding this comment.
This draft record still needs an engineering owner's decision, and one finding needs a fix either way; the last review's Reduce Transparency finding and the Panel row's authority cell are resolved.
Its new requirements (FR1–FR8, AR1–AR3, ORD1–ORD3, PR1 and DEC-1–DEC-3, including onDismissed, the iOS presentation window, Android's use of Material's dialog and FR7's inline-panel paint) wait on an engineering owner approving them by commenting /approve-spec <full head SHA> on this pull request; the author may do so as an engineering owner.
Needs a fix:
- Miss: FR3 (line 119) keeps the iOS panel clear of the status bar and home indicator by the safe area, but FR4 (line 120) has a
fullscreenpanel fill the window and pads its content by the container inset alone, so a full-screen dialog's title can sit under the status bar; say that the full-screen surface fills the window and, withpaddingunset, pads each edge by the larger of the container inset and the safe area, as core's full-screen Dialog does, and add that to the iOSfullscreenrow and the FR4 verification row.
Non-blocking:
- Say which theme values Android reads (the Behavior row and the Theme values paragraph), say whether the inline panel keeps core's high shadow (FR7), name the Android native piece behind Material's dialog, and add the two open group records to
system_specswhen they land.
Claims and files checked
Review mode: full; reason: spec-record
- Claim: the record sits on the change that accepts React Native platform records and merges after it: verified (the base branch holds that change, still open).
- Claim: it cites the open menus-and-presentation and surfaces-and-glass records and the foundation amendment, and merges after them: verified (FR1, FR3–FR6, AR1 and AR3 cite them; all three are open, and the cited clauses exist at their heads).
- Claim: the existing authority listed is current or open as described: verified for core Dialog, DialogHeader, overlay dismissal, the Drawer purpose clause, native-first surfaces, and the two open group records, including the open question on Android system hosts.
- Claim: the TopNav and TabBar React Native records are open, and no other open pull request adds a Dialog React Native record: verified (both open; a title search finds only this pull request).
- Claim: web's props and meaning are kept,
paddingincluded, withwidth,maxHeightandpositionweb-only: verified (FR1, DEC-2). - Claim: the iOS presentation host over sheets in request order, React Native's modal window as its fallback, Material's dialog on Android, and no window while hidden: verified (FR3, ORD1).
- Claim: on iOS the panel is centred over the dim, up to 400 wide and three quarters tall, in glass where glass can paint,
fullscreenfills the window, standard fades and full-screen slides; on Android Material's dialog draws the container, its size and its motion; content is padded bypadding, else the container inset: verified (FR4, FR5, DEC-2), with the full-screen safe-area finding above. - Claim:
purposepicks the closing paths andformignores a dim tap, as the Drawer clause states; the inline panel draws in place in the theme's surface colour, container radius and inset on both platforms: verified (FR6, FR7). - Claim:
onDismissedis called once the window has gone: verified (FR2, DEC-3). - Claim: focus moves in, a
requireddialog keeps the alert-dialog role, focus returns as core states, the title is a level-2 heading and the close button is the default ghost icon button, named: verified (AR1–AR3, FR8). - Claim: every difference from the React Native library is a gap line, and each requirement was read against that library: not verifiable here, since that library is not in this repository.
- Claim: the record covers only what React Native adds, and dismissal ranking, the presentation hosts and the overlay paint stay with their owners: verified (Ownership boundary).
- Claim: the record keeps no rejected alternatives: verified.
- Claim: the writing rubric finds no narration, research, change references, rejected alternatives, open options or project status: verified; "not yet released" appears only in the template's readiness fields.
- Claim: the pull request contains specification records only and no internal context: verified (one record file).
- Claim: the knowledge check, Prettier and whitespace checks are clean: verified at this head.
- File:
docs/specs/components/Dialog/Dialog.react-native.spec.md: one finding to fix (lines 119–120); four non-blocking notes.
…the inset and the safe area
There was a problem hiding this comment.
This draft record still needs an engineering owner's decision, and one finding needs a fix either way; the last review's full-screen finding is fixed for the content padding itself.
Its new requirements (FR1–FR8, AR1–AR3, ORD1–ORD3, PR1 and DEC-1–DEC-3, including onDismissed, the iOS presentation window and its full-screen padding, Android's use of Material's dialog and FR7's inline-panel paint) wait on an engineering owner approving them by commenting /approve-spec <full head SHA> on this pull request; the author may do so as an engineering owner.
Needs a fix:
- FR4 (line 122) now pads an iOS
fullscreenpanel by the larger of the container inset and the safe area, but its closing sentence still pads all content by the inset alone, its verification row (line 238) fails both paddings, and FR3 (line 121) still keeps that panel clear of the bars; carve the iOS full-screen panel out of the closing sentence and the verification row's padding check, qualify the title check, thefullscreenrow and the "never" clause with "withpaddingunset", limit FR3's safe-area clause to the standard panel, and update the description's padding bullet to match.
Non-blocking:
- Say whether Material's full-screen dialog keeps Android content clear of the system bars, say which theme values Android reads, say whether the inline panel keeps core's high shadow, name the Android native piece behind Material's dialog, and add the two open group records to
system_specswhen they land.
Claims and files checked
Review mode: full; reason: spec-record
- Claim: the record sits on the change that accepts React Native platform records and merges after it: verified (the base branch is that change's head, still open).
- Claim: it cites the open menus-and-presentation and surfaces-and-glass records and the foundation amendment, and merges after them: verified (all three are open, and the cited clauses exist at their heads).
- Claim: the existing authority listed is current or open as described: verified for core Dialog, DialogHeader, overlay dismissal, the Drawer purpose clause, native-first surfaces, and the two open group records, including the open question on Android system hosts.
- Claim: the TopNav and TabBar React Native records are open, and no other open pull request adds a Dialog React Native record: verified (both open; a title search finds only this pull request).
- Claim: web's props and meaning are kept,
paddingincluded, withwidth,maxHeightandpositionweb-only: verified (FR1, DEC-2). - Claim: the iOS presentation host over sheets in request order, React Native's modal window as its fallback, Material's dialog on Android, and no window while hidden: verified (FR3, ORD1).
- Claim: on iOS the panel is centred over the dim, up to 400 wide and three quarters tall, in glass where glass can paint,
fullscreenfills the window, standard fades and full-screen slides; on Android Material's dialog draws the container, its size and its motion: verified (FR4, FR5, DEC-2). - Claim: on both platforms the content is padded by
padding, else the container inset: false for an iOS full-screen panel, which FR4 now pads by the larger of the inset and the safe area (part of the finding above). - Claim:
purposepicks the closing paths andformignores a dim tap, as the Drawer clause states; the inline panel draws in place in the theme's surface colour, container radius and inset on both platforms: verified (FR6, FR7). - Claim:
onDismissedis called once the window has gone: verified (FR2, DEC-3). - Claim: focus moves in, a
requireddialog keeps the alert-dialog role, focus returns as core states, the title is a level-2 heading and the close button is the default ghost icon button, named: verified (AR1–AR3, FR8). - Claim: every difference from the React Native library is a gap line, and each requirement was read against that library: not verifiable here, since that library is not in this repository.
- Claim: the record covers only what React Native adds, and dismissal ranking, the presentation hosts and the overlay paint stay with their owners: verified (Ownership boundary).
- Claim: the record keeps no rejected alternatives: verified.
- Claim: the writing rubric finds no narration, research, change references, rejected alternatives, open options or project status: verified; "not yet released" appears only in the template's readiness fields.
- Claim: the pull request contains specification records only and no internal context: verified (one record file).
- Claim: the knowledge check, Prettier and whitespace checks are clean: verified at this head.
- File:
docs/specs/components/Dialog/Dialog.react-native.spec.md: one finding to fix (lines 121, 122, 238); five non-blocking notes.
…le and its checks
There was a problem hiding this comment.
This draft record still needs an engineering owner's decision; no finding blocks it at this head, and the last review's full-screen padding finding is fixed throughout FR3, FR4 and their checks.
Its new requirements (FR1–FR8, AR1–AR3, ORD1–ORD3, PR1 and DEC-1–DEC-3, including onDismissed, the iOS presentation window and its full-screen padding, Android's use of Material's dialog and FR7's inline-panel paint) wait on an engineering owner approving them by commenting /approve-spec <full head SHA> on this pull request; the author may do so as an engineering owner.
Non-blocking, for any later edit:
- Miss: FR4 has the iOS panel draw the theme's surface colour and also paint glass behind its content; say that the surface colour is the opaque paint's fill and a glass panel's fill is clear, or the glass never shows.
- Say whether Material's full-screen dialog keeps Android content clear of the system bars (the FR4 verification row's title check reads as both platforms), say which theme values Android reads, say whether the inline panel keeps core's high shadow, name the Android native piece behind Material's dialog, and add the two open group records to
system_specswhen they land.
Claims and files checked
Review mode: full; reason: spec-record
- Claim: the record sits on the change that accepts React Native platform records and merges after it: verified (the base branch is that change's head, still open).
- Claim: it cites the open menus-and-presentation and surfaces-and-glass records and the foundation amendment, and merges after them: verified (all three are open, and the cited clauses exist at their heads).
- Claim: the existing authority listed is current or open as described: verified for core Dialog, DialogHeader, overlay dismissal, the Drawer purpose clause, native-first surfaces, and the two open group records, including the open question on Android system hosts.
- Claim: the TopNav and TabBar React Native records are open, and no other open pull request adds a Dialog React Native record: verified (both open; a title search finds only this pull request).
- Claim: web's props and meaning are kept,
paddingincluded, withwidth,maxHeightandpositionweb-only: verified (FR1, DEC-2). - Claim: the iOS presentation host over sheets in request order, React Native's modal window as its fallback, Material's dialog on Android, and no window while hidden: verified (FR3, ORD1).
- Claim: on iOS the panel is centred over the dim, up to 400 wide and three quarters tall, in glass where glass can paint,
fullscreenfills the window, standard fades and full-screen slides; on Android Material's dialog draws the container, its size and its motion: verified (FR4, FR5, DEC-2). - Claim: on both platforms the content is padded by
padding, else the container inset, and an iOS full-screen panel withpaddingunset pads each edge by the larger of the inset and the safe area: verified (FR4, thefullscreenrow and the FR4 verification row now agree). - Claim:
purposepicks the closing paths andformignores a dim tap, as the Drawer clause states; the inline panel draws in place in the theme's surface colour, container radius and inset on both platforms: verified (FR6, FR7). - Claim:
onDismissedis called once the window has gone: verified (FR2, DEC-3). - Claim: focus moves in, a
requireddialog keeps the alert-dialog role, focus returns as core states, the title is a level-2 heading and the close button is the default ghost icon button, named: verified (AR1–AR3, FR8). - Claim: every difference from the React Native library is a gap line, and each requirement was read against that library: not verifiable here, since that library is not in this repository.
- Claim: the record covers only what React Native adds, and dismissal ranking, the presentation hosts and the overlay paint stay with their owners: verified (Ownership boundary).
- Claim: the record keeps no rejected alternatives: verified.
- Claim: the writing rubric finds no narration, research, change references, rejected alternatives, open options or project status: verified; "not yet released" appears only in the template's readiness fields.
- Claim: the pull request contains specification records only and no internal context: verified (one record file).
- Claim: the knowledge check, Prettier and whitespace checks are clean: verified at this head.
- File:
docs/specs/components/Dialog/Dialog.react-native.spec.md: no blocking finding; six non-blocking notes.
| | FR1 | The React Native `Dialog` MUST take web's `isOpen`, `onOpenChange`, `children`, `variant`, `purpose`, `isInline` and `padding` with web's names, types, defaults and meaning, and the shared base props on its container (`spec:AST-082` FR7). `onOpenChange` receives the new open state, and `padding` takes core's spacing steps. `width`, `maxHeight` and `position` are not offered (DEC-2). `DialogHeader` MUST take core's `title`, `subtitle`, `onOpenChange`, `startContent`, `endContent`, `endContentEdgeCompensation` and `hasDivider` with core's meaning. Neither takes a visual prop. | `component:Dialog`; `module:Dialog/DialogHeader`; `spec:AST-082` FR3–FR5, FR7, DEC-2; `spec:AST-112` FR16; DEC-2 | settled | | ||
| | FR2 | React Native adds `onDismissed`, called once each time the dialog's window has fully left the screen, whatever closed it: its own controls, the dim, back or the escape, or `isOpen` set to false. It is not called when the Dialog unmounts or while it is hidden. Unset, it changes nothing. | DEC-3 | settled | | ||
| | FR3 | An open, modal Dialog MUST present in a platform window above the app. On iOS it is the presentation host's over-full-screen presentation, which covers the status bar and the home indicator, keeps the standard panel clear of them by the safe area, and comes up over every surface already presented, sheets included, in the order the surfaces were asked for; where that host is absent, it is React Native's modal window. On Android, Dialog presents as Material's dialog (`spec:AST-082` FR11). With `isHidden`, the Dialog opens no window and draws nothing, so no empty window takes touches from the app. | `spec:AST-128` FR5, FR8, FR11; `spec:AST-082` FR11; `spec:AST-093` FR2; DEC-1 | verify | | ||
| | FR4 | On iOS, the standard panel MUST be centred over the theme's overlay dim with no blur, as wide as the window less a `space.s4` gutter on each side and at most core's default width (400 points or dp), and at most three quarters of the window's height; its body scrolls when its content is taller. It draws the theme's surface colour, container radius and high shadow, pads its content by `padding`, else by the theme's container inset (`space.s4`), and paints as `spec:AST-123` FR7 chooses for an overlay: system glass behind the content where glass can paint, otherwise the opaque surface. A `fullscreen` panel fills the window with the opaque surface, square, with no dim, and pads its content by `padding`, else on each edge by the larger of the theme's container inset and the safe area, so with `padding` unset its title never sits under the status bar or the home indicator, as core's full-screen Dialog does. On Android, Material's dialog draws the container: its dim, its surface, shape and elevation, its width and its position, with the theme's surface colour and container radius reaching it; a `fullscreen` Dialog is Material's full-screen dialog. On both platforms the dialog's content is padded by `padding`, else by the theme's container inset, or on an iOS `fullscreen` panel by the larger of that inset and the safe area, and scrolls when it is taller than the container, and text in it that sets no colour takes the primary text colour. | `component:Dialog` FR9, FR10; `spec:AST-123` FR7; `spec:AST-093` FR4; DEC-1, DEC-2 | verify | |
There was a problem hiding this comment.
Non-blocking (miss): this row has the iOS standard panel draw "the theme's surface colour" and also paint "system glass behind the content where glass can paint". spec:AST-123 FR7 gives a glass overlay a clear fill, so a build that fills the panel with the surface colour shows no glass, and the verification row (line 238) does not fail that. Suggest: "…draws the theme's container radius and high shadow, … and paints as spec:AST-123 FR7 chooses for an overlay: system glass behind the content with a clear fill where glass can paint, otherwise the opaque surface in the theme's surface colour."
| | -------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------- | | ||
| | FR1, FR2 | Type tests of the exports against core's contracts; unit tests of `onDismissed` through the package's testing doubles | each prop; each web-only prop refused; each `padding` step; a close by each path; an unmount while open; `isHidden` | a missing core prop, an accepted web-only prop, `onDismissed` before the window has gone, twice for one close, or on unmount fails | `audit:react-native/Dialog/api` | | ||
| | FR3, PR1 | Simulator and emulator checks of stacking; unit tests of the window choice | a dialog over a sheet; two dialogs in one update; the host absent; Android; `isHidden` while open | a dialog under a sheet, a refused presentation, a drawn window where Material's dialog is due, or a window while hidden fails | `audit:react-native/Dialog/window` | | ||
| | FR4 | Simulator and emulator captures in light and dark, portrait and landscape; iOS with and without Reduce Transparency | standard and `fullscreen`; short and tall content; a phone and a tablet; `padding` set and unset; a `fullscreen` panel on a phone with a notch and in landscape | on iOS a panel wider than 400 or than the window less the gutter or taller than three quarters of the window, on Android a container other than Material's dialog, padding other than FR4's, glass with Reduce Transparency on, or a dim under `fullscreen` fails; with `padding` unset, a `fullscreen` title under the status bar, or content padded by both the inset and the safe area, fails | `audit:react-native/Dialog/panel` | |
There was a problem hiding this comment.
Non-blocking: "with padding unset, a fullscreen title under the status bar … fails" reads as both platforms, while FR4 pads Android's full-screen content by the container inset alone and leaves the bars to Material's full-screen dialog. If that dialog draws under the system bars (edge to edge), a build that follows FR4 fails this check. Say whether Material's full-screen dialog keeps its content clear of the bars, or limit the title check to iOS.
There was a problem hiding this comment.
This draft record still needs an engineering owner's decision, and one finding needs a fix either way.
Its new requirements (FR1–FR8, AR1–AR3, ORD1–ORD3, PR1 and DEC-1–DEC-3, including onDismissed, the iOS presentation window, Android's use of Material's dialog and FR7's inline-panel paint) wait on an engineering owner approving them by commenting /approve-spec <full head SHA> on this pull request; the author may do so as an engineering owner. That decision also settles a conflict between two drafts: FR3, ORD1 and the Native pieces table keep React Native's modal window as the iOS window where the presentation host is absent, which spec:AST-128 FR11 allows but spec:AST-112 FR4 on main now rules out ("the library has no React Native Modal path on iOS").
Needs a fix either way:
- The description's merge-order line says the record cites the AST-112 amendment for FR16, but the record cites
spec:AST-112FR5, FR10 and FR19 (lines 36 and 119) and that amendment has merged, so update the line.
Non-blocking, for any later edit:
- FR4 has the iOS panel draw the theme's surface colour and also paint glass behind its content; say that the surface colour is the opaque paint's fill and a glass panel's fill is clear, or the glass never shows.
- Say whether Material's full-screen dialog keeps Android content clear of the system bars (the FR4 verification row's title check reads as both platforms), say which theme values Android reads, say whether the inline panel keeps core's high shadow, name the Android native piece behind Material's dialog, and add the two open group records to
system_specswhen they land.
Claims and files checked
Review mode: full; reason: spec-record
- Claim: the record sits on the change that accepts React Native platform records and merges after it: verified (the base branch is that change's head, still open).
- Claim: it cites the open menus-and-presentation and surfaces-and-glass records and merges after them: verified (both are open, and the cited clauses exist at their heads).
- Claim: it cites the foundation amendment for FR16 and FR19: false (the record cites the foundation record's FR5, FR10 and FR19, never FR16, and the amendment has merged).
- Claim: the existing authority listed is current or open as described: verified for core Dialog, DialogHeader, overlay dismissal, the Drawer purpose clause, native-first surfaces, and the two open group records, including the open question on Android system hosts.
- Claim: the TopNav and TabBar React Native records are open, and no other open pull request adds a Dialog React Native record: verified (both open; a title search finds only this pull request).
- Claim: web's props and meaning are kept,
paddingincluded, withwidth,maxHeightandpositionweb-only: verified (FR1, DEC-2). - Claim: the iOS presentation host over sheets in request order, React Native's modal window as its fallback, Material's dialog on Android, and no window while hidden: verified as written (FR3, ORD1); the fallback is part of the owner decision above.
- Claim: on iOS the panel is centred over the dim, up to 400 wide and three quarters tall, in glass where glass can paint,
fullscreenfills the window, standard fades and full-screen slides; on Android Material's dialog draws the container, its size and its motion: verified (FR4, FR5, DEC-2). - Claim: content is padded by
padding, else the container inset, and an iOS full-screen panel withpaddingunset pads each edge by the larger of the inset and the safe area: verified (FR4, thefullscreenrow and the FR4 verification row agree). - Claim:
purposepicks the closing paths andformignores a dim tap, as the Drawer clause states; the inline panel draws in place in the theme's surface colour, container radius and inset on both platforms: verified (FR6, FR7). - Claim:
onDismissedis called once the window has gone: verified (FR2, DEC-3). - Claim: focus moves in, a
requireddialog keeps the alert-dialog role, focus returns as core states, the title is a level-2 heading and the close button is the default ghost icon button, named: verified (AR1–AR3, FR8). - Claim: every difference from the React Native library is a gap line, and each requirement was read against that library: not verifiable here, since that library is not in this repository.
- Claim: the record covers only what React Native adds, and dismissal ranking, the presentation hosts and the overlay paint stay with their owners: verified (Ownership boundary).
- Claim: the record keeps no rejected alternatives, and the writing rubric finds no narration, research, change references, open options or project status: verified; "not yet released" appears only in the template's readiness fields.
- Claim: the pull request contains specification records only and no internal context: verified (one record file).
- Claim: the knowledge check, Prettier and whitespace checks are clean: verified at this head.
- Claim: the record cites the foundation record's FR10 for web parity, where an open restructure folds FR16 into it: verified (FR10 keeps core's names and contracts today, and the open restructure moves FR16's text into FR10).
- File:
docs/specs/components/Dialog/Dialog.react-native.spec.md: one finding to fix (the description's merge-order line), one owner decision, six non-blocking notes.
| | --- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------- | ------------------ | | ||
| | FR1 | The React Native `Dialog` MUST take web's `isOpen`, `onOpenChange`, `children`, `variant`, `purpose`, `isInline` and `padding` with web's names, types, defaults and meaning, and the shared base props on its container (`spec:AST-082` FR7). `onOpenChange` receives the new open state, and `padding` takes core's spacing steps. `width`, `maxHeight` and `position` are not offered (DEC-2). `DialogHeader` MUST take core's `title`, `subtitle`, `onOpenChange`, `startContent`, `endContent`, `endContentEdgeCompensation` and `hasDivider` with core's meaning. Neither takes a visual prop. | `component:Dialog`; `module:Dialog/DialogHeader`; `spec:AST-082` FR3–FR5, FR7, DEC-2; `spec:AST-112` FR10; DEC-2 | settled | | ||
| | FR2 | React Native adds `onDismissed`, called once each time the dialog's window has fully left the screen, whatever closed it: its own controls, the dim, back or the escape, or `isOpen` set to false. It is not called when the Dialog unmounts or while it is hidden. Unset, it changes nothing. | DEC-3 | settled | | ||
| | FR3 | An open, modal Dialog MUST present in a platform window above the app. On iOS it is the presentation host's over-full-screen presentation, which covers the status bar and the home indicator, keeps the standard panel clear of them by the safe area, and comes up over every surface already presented, sheets included, in the order the surfaces were asked for; where that host is absent, it is React Native's modal window. On Android, Dialog presents as Material's dialog (`spec:AST-082` FR11). With `isHidden`, the Dialog opens no window and draws nothing, so no empty window takes touches from the app. | `spec:AST-128` FR5, FR8, FR11; `spec:AST-082` FR11; `spec:AST-093` FR2; DEC-1 | verify | |
There was a problem hiding this comment.
Regression: this row (with ORD1 at line 153 and the Native pieces row at line 215) presents an iOS dialog in React Native's modal window where the presentation host is absent, as spec:AST-128 FR11 allows. spec:AST-112 FR4 on main now says "On iOS, the library's modal surfaces present only through the presentation host; the library has no React Native Modal path on iOS" and lists that fallback as a gap. Both are drafts, so this is part of the owner decision; if AST-112 FR4 stands, drop the fallback here, in ORD1, in the Native pieces table and in the FR3 verification row's "the host absent" state (line 237).
Stacked on #12592 (react-native records in the knowledge checks); merges after it.
Merge order: the record also cites the open group records
spec:AST-128(#12558, menus and presentation) andspec:AST-123(#12557, surfaces and glass), and the AST-112 amendment (#12563) for FR16 and FR19. It merges after those too.Exact decision needed
How React Native's
DialogandDialogHeaderimplementcomponent:Dialogandmodule:Dialog/DialogHeader: which props they offer, the window an open dialog presents in, the panel's size, paint and motion, which platform paths close it for eachpurpose, the inline panel, and how screen readers see it.Existing authority searched
component:Dialog(docs/specs/components/Dialog/Dialog.spec.md, current): the focus lifecycle, the inline panel, the dim and the surface's text colour; no React Native rendering.module:Dialog/DialogHeader(current): the header row, the title block and the close button.family:overlay-dismissal(current): how Escape, platform close requests and a dim tap rank across nested surfaces;component:DrawerFR15 (current):purposematches Dialog's, andformignores a scrim click.spec:AST-082(current): FR3–FR5 (core and platform contracts), FR7 (base props), FR11 (native-first) and DEC-2 (native-only visuals are theme configuration).spec:AST-128(open draft): the presentation host's over-full-screen kind, request-order stacking, the modal host and presented-window accessibility; its OQ5 asks whether Android presents dialogs through system hosts.spec:AST-123(open draft) FR7: the overlay paint (system glass where glass can paint, else opaque).Decision
docs/specs/components/Dialog/Dialog.react-native.spec.md(component:react-native/Dialog,platform_of: component:Dialog):DialogandDialogHeaderkeep web's props and meaning,paddingincluded;width,maxHeightandpositionstay on the web, because the window sizes the panel (FR1, DEC-2).fullscreenfills the window; standard fades and full-screen slides. On Android, Material's dialog draws the container, its size and its motion, and afullscreenDialog is Material's full-screen dialog. On both, the content is padded bypadding, else the container inset; an iOSfullscreenpanel withpaddingunset pads each edge by the larger of the inset and the safe area (FR4, FR5).purposedecides which of a dim tap, Android back and the VoiceOver escape close the dialog;formignores a dim tap, ascomponent:DrawerFR15 states for Dialog's prop (FR6). The inline panel draws in place with no window, in the theme's surface colour, container radius and inset on both platforms (FR7).onDismissed, called once the window has left the screen, so the next surface opens after it (FR2, DEC-3).requireddialog keeps core's alert-dialog role, and focus returns ascomponent:DialogFR4 and AR2 state; the header's title is a level-2 heading and its close button is the default ghost icon button, named (AR1–AR3, FR8).Rejected alternatives
None recorded in the record.
Claim scope and non-goals
The record covers only what React Native adds to
component:Dialogandmodule:Dialog/DialogHeaderor does differently. Dismissal ranking, the presentation and modal hosts and the overlay paint stay withfamily:overlay-dismissal,spec:AST-128andspec:AST-123, which the record's ownership lines name.Evidence and implementation relationship
The record is a specification only and has no implementation in this pull request. Each requirement was read against the current React Native implementation, and every place where that implementation differs is one of the record's gap lines.
Writing rubric results
Rejected:lines.Scope
Components: Dialog, DialogHeader (React Native)
Validation
node scripts/check-knowledge.mjs: knowledge templates and records are aligned; no finding in this record.--checkclean on the record.git diff --check: clean.Follow-up: claims moved from
spec:AST-112Cites
spec:AST-112FR10 for web parity, where #13029 folds FR16.