Skip to content

fix(rtl): use logical spacing and alignment on web - #5291

Open
EnesKartal wants to merge 1 commit into
callstack:mainfrom
EnesKartal:fix/rtl-web-logical-spacing
Open

EnesKartal wants to merge 1 commit into
callstack:mainfrom
EnesKartal:fix/rtl-web-logical-spacing

Conversation

@EnesKartal

Copy link
Copy Markdown
Contributor

Fixes #5283

Summary

Replaced physical left/right spacing and alignment with logical properties so RTL layout on web matches native:

  • Menu.Item (src/components/Menu/MenuItem.tsx): marginLeft -> marginStart on md3LeadingIcon and md3WithoutLeadingIcon.
  • Drawer.Section (src/components/Drawer/DrawerSection.tsx): marginLeft -> marginStart on title.
  • Appbar.Content (src/components/Appbar/AppbarContent.tsx): marginLeft -> marginStart on container.
  • List.Item (src/components/List/ListItem.tsx): paddingLeft -> paddingStart on indent and item.
  • TextInput (src/components/TextInput/styles.ts): removed hardcoded textAlign: 'left' on supportingText.

Test Plan

  • Verified locally with npx eslint (0 errors) and npx jest across Menu.test.tsx, DrawerSection.test.tsx, Appbar.test.tsx, ListItem.test.tsx, and TextInput.test.tsx (updated 11 snapshots for paddingStart/marginStart; 113/113 tests passed).

…ion, Appbar.Content, List.Item, and TextInput
Copilot AI balanced review requested due to automatic review settings November 23, 2026 17:24
@github-actions

Copy link
Copy Markdown

Found potential problems with the pull request:

  • Screenshot or video evidence is missing. Make sure to include one if it affects the UI.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@Doberjohn Doberjohn added this to the 6.0.0 milestone Nov 24, 2026
@Doberjohn

Copy link
Copy Markdown
Collaborator

Thanks! This goes into 6.0. Before review:

  • The unit tests fail on 6 snapshots (Appbar, ListAccordion, ListSection, MenuItem). Could you update them?
  • Please rebase on main: feat: modernize drawer #5052 changed DrawerSection.tsx and already moves the section title to marginStart.
  • Could you add before and after screenshots or a short video?

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RTL on web: Menu.Item, Drawer.Section, Appbar.Content, List.Item and TextInput use physical spacing

3 participants