Repository navigation
fix(Dialog): address responsive review feedback - #5367
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
PR Analysis Report📚 Storybook PreviewView Storybook for this PR 🧪 Sandbox PreviewView Sandbox for this PR Modified ComponentsDialog (@astryxdesign/core) · View in Storybook
Bundle Size Summary
Accessibility AuditStatus: No accessibility violations detected. Visual RegressionStatus: 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 |
|
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 |
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]>
0886fb5 to
36f8cd2
Compare
Follow-up to #5352 after it merged without these review nits applied.
Rebased onto
mainpast the v0.5.0 release.Addresses Cindy's inline review discussions
env()left/right insets to the logical edge that actually faces them, in both LTR and RTL.dialog: {padding: 0}) takes precedence.@rubyycheung, so there is nothing left to correct.Changeset
The original
dialog-responsive-interactionchangeset was consumed by v0.5.0, which shipped the #5352 behavior this PR corrects. It is replaced bydialog-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 passingpnpm -F @astryxdesign/core typecheck,typecheck:docs,buildpnpm check:repo(includescheck:changesets— 26 valid)pnpm exec prettier --checkandpnpm exec eslinton the changed filesdist/astryx.css: the LTR rule mapspadding-inline-starttosafe-area-inset-left, and the higher-specificity:is([dir="rtl"] *)rule maps it tosafe-area-inset-right.