Skip to content

fix(ui): make BreakdownBars respect page direction (RTL/LTR)#145

Closed
mvanhorn wants to merge 1 commit intoO2sa:mainfrom
mvanhorn:osc/129-breakdown-bars-rtl
Closed

fix(ui): make BreakdownBars respect page direction (RTL/LTR)#145
mvanhorn wants to merge 1 commit intoO2sa:mainfrom
mvanhorn:osc/129-breakdown-bars-rtl

Conversation

@mvanhorn
Copy link
Copy Markdown
Contributor

@mvanhorn mvanhorn commented May 3, 2026

Closes #129.

components/breakdown-bars.tsx already destructures dir from useTranslation() but never threads it onto the rendered DOM, so the breakdown card stayed LTR even when an RTL locale (Arabic) was active. This adds dir={dir} to the root <Card>, matching the pattern already used in components/comparison-chart.tsx:77 and components/language-switcher.tsx:44.

One-line diff; no other functional change. tsc --noEmit passes locally.

Closes O2sa#129

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented May 3, 2026

@mvanhorn is attempting to deploy a commit to the osama's projects Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 3, 2026

Thank you for the pull request! ✅

A maintainer will review this soon. Please be patient while we take a look. 🙌

@vercel
Copy link
Copy Markdown

vercel Bot commented May 3, 2026

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

Project Deployment Actions Updated (UTC)
dev-impact Ready Ready Preview, Comment May 3, 2026 0:07am

Copy link
Copy Markdown
Owner

@O2sa O2sa left a comment

Choose a reason for hiding this comment

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

The breakdown bars still not matching the page direction.

@O2sa O2sa closed this May 3, 2026
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.

ui: Make BreakdownBars respect page direction (RTL/LTR)

2 participants