Skip to content

Conversation

@codecalm
Copy link
Member

@codecalm codecalm commented Nov 16, 2025

This pull request updates the SCSS codebase to use logical (direction-aware) CSS properties instead of physical (left/right) properties. This improves support for right-to-left (RTL) languages and makes the styles more robust across different writing directions. The changes touch utility classes, layout, component styles, and helper classes.

The most important changes are:

Utilities and Mixins:

  • Updated utility classes in _utilities.scss and _utilities-marketing.scss to use logical properties like margin-inline-start, margin-inline-end, padding-inline-start, padding-inline-end, border-inline-start, and border-inline-end instead of their physical counterparts. This affects margin, padding, and border utilities for both positive and negative values. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11]

Layout and Positioning:

  • Replaced left, right, margin-left, margin-right, and similar properties with logical equivalents such as inset-inline-start, inset-inline-end, margin-inline-start, and margin-inline-end in layout files (e.g., _navbar.scss, _page.scss, _root.scss, _core.scss, _pricing.scss). [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16] [17] [18] [19] [20]

Component Styles:

  • Updated component SCSS (e.g., _accordion.scss, _browser.scss, _pricing.scss) to use logical properties for alignment, spacing, and borders, such as margin-inline-start, margin-inline-end, border-inline-start, border-inline-end, and text-align: start. [1] [2] [3] [4] [5] [6] [7]

Helpers and Bootstrap Overrides:

  • Converted helper classes and Bootstrap overrides to logical properties, including caret styling and positioning helpers. [1] [2] [3] [4]

Text Alignment:

  • Replaced text-align: left with text-align: start in various components to ensure correct alignment in RTL contexts. [1] [2]

These changes collectively modernize the codebase for internationalization and future-proof the styling for diverse language support.

@changeset-bot
Copy link

changeset-bot bot commented Nov 16, 2025

🦋 Changeset detected

Latest commit: 8120750

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@tabler/core Patch
@tabler/preview Patch
@tabler/docs Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link

vercel bot commented Nov 16, 2025

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

Project Deployment Preview Comments Updated (UTC)
tabler Ready Ready Preview Comment Nov 17, 2025 8:38pm
tabler-docs Ready Ready Preview Comment Nov 17, 2025 8:38pm

@codecalm codecalm merged commit 0106d6b into dev Nov 23, 2025
6 checks passed
@codecalm codecalm deleted the dev-logical-properties branch November 23, 2025 21:05
@kevinpapst
Copy link
Collaborator

Nice one!
The changes look like search & replace where the white-spaces were changed weirdly.
Do you use a code formatter to apply formattings?

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.

3 participants