Skip to content

fix(Dialog): address responsive review feedback - #5367

Merged
rubyycheung merged 1 commit into
mainfrom
fix/dialog-review-followup
Aug 26, 2026
Merged

rubyycheung merged 1 commit into
mainfrom
fix/dialog-review-followup

Conversation

@rubyycheung

@rubyycheung rubyycheung commented Aug 23, 2026 •

Copy link
Copy Markdown
Contributor

Follow-up to #5352 after it merged without these review nits applied.

Rebased onto main past the v0.5.0 release.

Addresses Cindy's inline review discussions

  • r3838976315 — fullscreen safe-area inline padding now maps physical env() left/right insets to the logical edge that actually faces them, in both LTR and RTL.
  • r3838976319 — default fullscreen safe-area protection now lives in the default padding fallback, so explicit prop/theme padding (including dialog: {padding: 0}) takes precedence.
  • r3838976323 — fullscreen motion coverage now asserts on the keyframes themselves: opacity-only for fullscreen, directional translate/scale for standard.
  • r3838976324 — resolved upstream, no longer carried here. The changeset this nit renamed was consumed by the v0.5.0 release, and the release notes already credit @rubyycheung, so there is nothing left to correct.

Changeset

The original dialog-responsive-interaction changeset was consumed by v0.5.0, which shipped the #5352 behavior this PR corrects. It is replaced by dialog-fullscreen-safe-area-padding, describing the two fixes against the released behavior rather than against an unreleased changeset.

Validation

  • pnpm vitest run packages/core — 281 files, 7896 tests passing
  • pnpm -F @astryxdesign/core typecheck, typecheck:docs, build
  • pnpm check:repo (includes check:changesets — 26 valid)
  • pnpm exec prettier --check and pnpm exec eslint on the changed files
  • Verified the emitted CSS in dist/astryx.css: the LTR rule maps padding-inline-start to safe-area-inset-left, and the higher-specificity :is([dir="rtl"] *) rule maps it to safe-area-inset-right.

@vercel

vercel Bot commented Aug 23, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
astryx Ready Ready Preview Aug 26, 2026 3:29am

Request Review

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Aug 23, 2026
@github-actions github-actions Bot added the needs:code-review High-risk change (new package/component/API) — needs human code review before merge label Aug 23, 2026
@github-actions

github-actions Bot commented Aug 23, 2026 •

Copy link
Copy Markdown
Contributor

PR Analysis Report

📚 Storybook Preview

View Storybook for this PR
GitHub Pages may take up to a minute to hydrate after deploy.

🧪 Sandbox Preview

View Sandbox for this PR
GitHub Pages may take up to a minute to hydrate after deploy.

Modified Components

Dialog (@astryxdesign/core) · View in Storybook
Metric Before After Delta
Bundle Size (ESM) N/A N/A N/A
Lines of Code N/A 676 -
Complexity N/A Very High (75) -

Bundle Size Summary

Package Size (ESM) Size (CJS) Gzipped
@astryxdesign/core N/A 4.8KB 1.2KB

Accessibility Audit

Status: No accessibility violations detected.

Visual Regression

Status: No visual change across 2 compared shot(s). 36 shot(s) have no baseline yet and were not compared.


Generated by PR Enrichment workflow | Storybook | Sandbox | View full report

github-actions Bot added a commit that referenced this pull request Aug 23, 2026
@rubyycheung
rubyycheung marked this pull request as ready for review August 23, 2026 21:44
@xinzi-bot

Copy link
Copy Markdown

Looks good to me.

The three nits from #5352 are all properly addressed: the RTL mapping now sends the physical left/right insets to the correct logical edges, the changeset credit is fixed, and the motion test would now actually fail if the translate/scale came back into the fullscreen keyframes.

On the padding change — restricting the fullscreen safe-area style to the unset-padding case is the right call. An explicit padding (prop or theme) is a literal instruction and should win as-is, including 0 for a deliberate full-bleed layout; the default is where the component is free to add mobile-specific logic. The var fallback chain lands that cleanly, since the safe-area max() only sits in the innermost fallback that runs when nothing is set.

Follow-up to #5352, which merged before these review nits were applied.

Fullscreen safe-area inline padding mapped physical env() insets straight
onto logical properties. That holds in LTR and inverts in RTL, where
inline-start is the right edge, so a notch on the physical left padded the
edge away from it and left the notched edge unprotected. Each physical
inset now feeds the logical edge that faces it, through a dir-scoped
variant.

Safe-area protection also applied unconditionally, so it beat an explicit
padding prop and a theme's dialog: {padding: 0} alike and a deliberately
full-bleed fullscreen dialog could not be expressed. The max() now sits in
the innermost fallback of the same --astryx-dialog-padding* chain that
container already resolves, so an explicit value -- 0 included -- is
honored as written and the safe-area floor only applies when no padding is
set anywhere.

Fullscreen motion coverage now asserts on the keyframes themselves rather
than on the order styles are spread: opacity-only for fullscreen,
directional translate and scale for standard.

The changeset whose credit the fourth nit corrected was consumed by the
v0.5.0 release, which already credits @rubyycheung, so this carries a new
changeset describing the fix against the released behavior instead.

Co-authored-by: Cursor <[email protected]>
@github-actions github-actions Bot removed the needs:code-review High-risk change (new package/component/API) — needs human code review before merge label Aug 26, 2026
github-actions Bot added a commit that referenced this pull request Aug 26, 2026
@rubyycheung
rubyycheung merged commit ca5b83b into main Aug 26, 2026
23 checks passed
@github-actions
github-actions Bot deleted the fix/dialog-review-followup branch August 26, 2026 06:13

This branch was successfully deployed

1 active deployment
Preview — 36f8cd2b Deployed Aug 26, 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.

3 participants