Update SCSS to use logical properties #2537
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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:
_utilities.scssand_utilities-marketing.scssto use logical properties likemargin-inline-start,margin-inline-end,padding-inline-start,padding-inline-end,border-inline-start, andborder-inline-endinstead 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:
left,right,margin-left,margin-right, and similar properties with logical equivalents such asinset-inline-start,inset-inline-end,margin-inline-start, andmargin-inline-endin 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:
_accordion.scss,_browser.scss,_pricing.scss) to use logical properties for alignment, spacing, and borders, such asmargin-inline-start,margin-inline-end,border-inline-start,border-inline-end, andtext-align: start. [1] [2] [3] [4] [5] [6] [7]Helpers and Bootstrap Overrides:
Text Alignment:
text-align: leftwithtext-align: startin 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.