Skip to content

Commit 5db3ec6

Browse files
authored
Use 'start' and 'end' text alignment properties for better RTL support (facebook#4442)
1 parent fdf33d2 commit 5db3ec6

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

website/src/css/customTheme.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -318,14 +318,14 @@ hr {
318318
text-transform: uppercase;
319319
padding: 6px 10px;
320320
font-size: 0.7rem;
321-
text-align: left;
321+
text-align: start;
322322
}
323323

324324
tr td {
325325
font-size: 90%;
326326
line-height: 1.3em;
327327
padding: 10px;
328-
text-align: left;
328+
text-align: start;
329329

330330
code {
331331
display: inline-block;
@@ -1184,7 +1184,7 @@ button[class*="tocCollapsibleButton"] {
11841184

11851185
.lastUpdated {
11861186
font-size: 13px;
1187-
text-align: right;
1187+
text-align: end;
11881188
}
11891189

11901190
time,

website/src/css/showcase.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ html[data-theme="dark"] {
6767
h2 {
6868
margin: 4px -20px 12px;
6969
padding: 0 40px 0;
70-
text-align: left;
70+
text-align: start;
7171

7272
img {
7373
margin: 16px 0 8px;
@@ -80,7 +80,7 @@ html[data-theme="dark"] {
8080
}
8181

8282
.showcaseSectionDescription {
83-
text-align: left;
83+
text-align: start;
8484
color: var(--subtle);
8585
padding: 0 20px;
8686
margin-bottom: 8px;

website/src/pages/Home/Framework/styles.module.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848

4949
.card {
5050
flex-direction: row;
51-
text-align: left;
51+
text-align: start;
5252
}
5353

5454
.cardImage {

website/src/theme/DocItem/Footer/styles.module.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66

77
@media (min-width: 997px) {
88
.lastUpdated {
9-
text-align: right;
9+
text-align: end;
1010
}
1111
}

0 commit comments

Comments
 (0)