Skip to content

Commit 5dd6492

Browse files
Merge pull request #353 from UdeshAthukorala/rtl
fix(react): Make CSS files direction-aware to support RTL layouts
2 parents 055ed38 + f29f64b commit 5dd6492

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.changeset/tangy-falcons-fly.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@oxygen-ui/react": patch
3+
---
4+
5+
Make CSS files direction-aware to support RTL layouts

packages/react/src/components/Header/header.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
height: 40px;
4141
max-width: 100px;
4242
display: flex;
43-
margin-right: 0.5rem;
43+
margin-inline-end: 0.5rem;
4444

4545
img {
4646
width: 100%;

packages/react/src/components/NavbarItem/navbar-item.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
justify-content: initial;
7373

7474
.oxygen-list-item-icon {
75-
margin-right: 10px;
75+
margin-inline-end: 10px;
7676
}
7777

7878
.oxygen-list-item-text {

0 commit comments

Comments
 (0)