Skip to content

fix: use logical Tailwind classes so layout mirrors in RTL - #654

Merged
farnabaz merged 2 commits into
vercel:mainfrom
sleitor:feat/rtl-logical-classes
Oct 20, 2026
Merged

farnabaz merged 2 commits into
vercel:mainfrom
sleitor:feat/rtl-logical-classes

Conversation

@sleitor

@sleitor sleitor commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

Description

Replaces physical Tailwind direction utilities with logical ones so layout mirrors under dir="rtl" / dir="auto". Follow-up to #411 (automatic RTL direction support).

Type of Change

  • Bug fix (non-breaking change which fixes an issue)

Related Issues

Closes #642

Changes Made

  • Blockquote: border-l-4 pl-4 → border-s-4 ps-4
  • Lists: [li_&]:pl-6 → [li_&]:ps-6
  • Table header cells, link button, mermaid/table dropdown items: text-left → text-start
  • Code line numbers: before:mr-4 before:text-right → before:me-4 before:text-end
  • Language label: ml-1 → ms-1 (code block header and mermaid)
  • Controls/dropdowns: right-0/right-2/right-4 → end-*, left-2/left-4 → start-* (code block, image download, link modal, mermaid fullscreen/pan-zoom, table copy/download dropdowns)
  • Kept physical: nothing else physical remained (no translate-x/left-1/2 patterns were touched)
  • Updated existing tests asserting old classes; added changeset

Testing

  • All existing tests pass (pnpm test in packages/streamdown: 1242 passed)
  • Added new tests for the changes (updated blockquote/table/pan-zoom class assertions)
  • Manually tested the changes
  • pnpm check (ultracite) clean

Checklist

  • I have created a changeset (pnpm changeset)

@vercel

vercel Bot commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

@sleitor is attempting to deploy a commit to the Vercel Team on Vercel.

A member of the Team first needs to authorize it.

@farnabaz farnabaz left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks

@farnabaz
farnabaz merged commit 8aaf182 into vercel:main Oct 20, 2026
5 of 7 checks passed
@sleitor
sleitor deleted the feat/rtl-logical-classes branch October 20, 2026 14:05
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.

Physical left/right classes don't mirror in right-to-left text

2 participants