Skip to content

Fix style CSS properties for RTL languages - #1216

Open
kensnyder wants to merge 1 commit into
gilbarbara:mainfrom
kensnyder:patch-1
Open

Fix style CSS properties for RTL languages#1216
kensnyder wants to merge 1 commit into
gilbarbara:mainfrom
kensnyder:patch-1

Conversation

@kensnyder

Copy link
Copy Markdown

Properties such as "right" and "margin-end" should use counterparts that work both in LTR languages like English RTL languages like Arabic.

Properties such as "right" and "margin-end" should use counterparts that work both in LTR languages like English RTL languages like Arabic.
Copilot AI lite review requested due to automatic review settings August 31, 2026 18:37
@codesandbox

codesandbox Bot commented Aug 31, 2026

Copy link
Copy Markdown

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

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.

🟢 Approval recommended

The change is small, localized to styling, and directly aligns with the stated RTL/LTR compatibility goal without affecting core logic.

Pull request overview

This PR updates Joyride’s inline styles to use CSS logical properties so button positioning and spacing adapt correctly to both LTR and RTL document directions.

Changes:

  • Replaced physical margins (marginLeft/marginRight) with logical margins (marginInlineStart/marginInlineEnd) for the Back button spacing/alignment.
  • Replaced right: 0 with insetInlineEnd: 0 so the Close button anchors to the inline end in both LTR and RTL layouts.
File summaries
File Description
src/styles.ts Switches key tooltip button styles from physical to logical CSS properties to improve RTL compatibility.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

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.

2 participants