Skip to content

feat(core): complete RTL physical→logical migration - #4614

Merged
nynexman4464 merged 2 commits into
mainfrom
nynexman4464/feat/rtl-physical-to-logical
Jul 31, 2026
Merged

nynexman4464 merged 2 commits into
mainfrom
nynexman4464/feat/rtl-physical-to-logical

Conversation

@nynexman4464

Copy link
Copy Markdown
Contributor

What

Migrate the final components to CSS logical properties (insetInlineStart/End, borderStart*/End* radii, textAlign: 'end'): Avatar, Banner, Calendar, Chat composer + drawer, Markdown, Popover, Slider, Resizable. The Avatar status-dot outward-push transform is now direction-aware, and the Popover close button / vertical Slider track+thumb / ResizeHandle centered grab-zone consume rtlStyles.centerInline.

Why

These were the last components still using physical left/right, so they didn't mirror under RTL. The centered elements also had an RTL regression where a logical anchor + physical centering translate pushed them off-center by their own width — now fixed via the helper. Dialog's position prop is intentionally left physical (consumer-facing API; logical migration handled in its own deprecation PR). LTR rendering is pixel-identical.

Verification

  • tsc (core) clean
  • Slider / ResizeHandle / Popover / Avatar / AvatarStatusDot / Banner tests green (179 tests)

Middle of the stack — depends on the centerInline helper PR, feeds the error-gate PR.

@nynexman4464

@vercel

vercel Bot commented Jul 31, 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 Jul 31, 2026 11:32pm

Request Review

Migrate the final components (Avatar, Banner, Calendar, Chat composer +
drawer, Markdown, Popover, Slider, Resizable) to CSS logical properties,
make the Avatar status-dot transform direction-aware, and route the
Popover/Slider-vertical/ResizeHandle centered elements through
rtlStyles.centerInline (fixing RTL off-center). Dialog.position kept
physical (its own deprecation PR). LTR pixel-identical.
@nynexman4464
nynexman4464 changed the base branch from nynexman4464/feat/rtl-center-inline-util to main July 31, 2026 23:29
@nynexman4464
nynexman4464 force-pushed the nynexman4464/feat/rtl-physical-to-logical branch from e8a1cc7 to cb57df5 Compare July 31, 2026 23:30
@github-actions github-actions Bot added the needs:design-review Affects visuals — Design should review label Jul 31, 2026
@nynexman4464
nynexman4464 enabled auto-merge (squash) July 31, 2026 23:30
@nynexman4464
nynexman4464 merged commit 78221de into main Jul 31, 2026
19 checks passed
@github-actions

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

Avatar (@astryxdesign/core) · View in Storybook
Metric Before After Delta
Bundle Size (ESM) N/A N/A N/A
Lines of Code N/A 596 -
Complexity N/A Very High (71) -
Banner (@astryxdesign/core) · View in Storybook
Metric Before After Delta
Bundle Size (ESM) N/A N/A N/A
Lines of Code N/A 344 -
Complexity N/A High (24) -
Calendar (@astryxdesign/core) · View in Storybook
Metric Before After Delta
Bundle Size (ESM) N/A N/A N/A
Lines of Code N/A 1351 -
Complexity N/A Very High (135) -
Chat (@astryxdesign/core) · View in Storybook
Metric Before After Delta
Bundle Size (ESM) N/A N/A N/A
Lines of Code N/A 5354 -
Complexity N/A Very High (438) -
Dialog (@astryxdesign/core) · View in Storybook
Metric Before After Delta
Bundle Size (ESM) N/A N/A N/A
Lines of Code N/A 616 -
Complexity N/A Very High (84) -
Markdown (@astryxdesign/core) · View in Storybook
Metric Before After Delta
Bundle Size (ESM) N/A N/A N/A
Lines of Code N/A 2857 -
Complexity N/A Very High (201) -
Popover (@astryxdesign/core) · View in Storybook
Metric Before After Delta
Bundle Size (ESM) N/A N/A N/A
Lines of Code N/A 534 -
Complexity N/A Very High (51) -
Resizable (@astryxdesign/core) · View in Storybook
Metric Before After Delta
Bundle Size (ESM) N/A N/A N/A
Lines of Code N/A 730 -
Complexity N/A Very High (83) -
Slider (@astryxdesign/core) · View in Storybook
Metric Before After Delta
Bundle Size (ESM) N/A N/A N/A
Lines of Code N/A 796 -
Complexity N/A Very High (108) -

Bundle Size Summary

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

Accessibility Audit

Status: 2 accessibility violation(s) found — 2 serious.

Banner - 1 issue(s)
  • 🟠 serious: Ensure the contrast between foreground and background colors meets WCAG 2 AA minimum contrast ratio thresholds
    • Rule: color-contrast · Affects 1/16 stories · Learn more
    • WCAG: 1.4.3 (Level AA)
Chat - 1 issue(s)
  • 🟠 serious: Ensure the contrast between foreground and background colors meets WCAG 2 AA minimum contrast ratio thresholds
    • Rule: color-contrast · Affects 2/8 stories · Learn more
    • WCAG: 1.4.3 (Level AA)

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

github-actions Bot added a commit that referenced this pull request Jul 31, 2026
@github-actions
github-actions Bot deleted the nynexman4464/feat/rtl-physical-to-logical branch August 1, 2026 06:54

This branch was successfully deployed

1 active deployment
Preview — cb57df5c Deployed Jul 31, 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. needs:design-review Affects visuals — Design should review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant