Skip to content

Commit 843d693

Browse files
fix(text): fixed text's stable operation on RTL
1 parent da2c905 commit 843d693

File tree

20 files changed

+280
-0
lines changed

20 files changed

+280
-0
lines changed

src/components/Badge/__snapshots__/Badge.test.tsx.snap

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ exports[`Badge should render Badge correctly 1`] = `
5151
"fontFamily": "Rubik-Medium",
5252
"fontSize": 14,
5353
"fontWeight": "500",
54+
"textAlign": "left",
5455
},
5556
[
5657
{
@@ -119,6 +120,7 @@ exports[`Badge should render badge correctly when custom badge 1`] = `
119120
"fontFamily": "Rubik-Medium",
120121
"fontSize": 14,
121122
"fontWeight": "500",
123+
"textAlign": "left",
122124
},
123125
[
124126
{
@@ -187,6 +189,7 @@ exports[`Badge should render badge correctly when default 1`] = `
187189
"fontFamily": "Rubik-Medium",
188190
"fontSize": 14,
189191
"fontWeight": "500",
192+
"textAlign": "left",
190193
},
191194
[
192195
{
@@ -255,6 +258,7 @@ exports[`Badge should render badgeBackground correctly when default 1`] = `
255258
"fontFamily": "Rubik-Medium",
256259
"fontSize": 14,
257260
"fontWeight": "500",
261+
"textAlign": "left",
258262
},
259263
[
260264
{
@@ -429,6 +433,7 @@ exports[`Badge should render badgeIcon correctly when custom badge 1`] = `
429433
"fontFamily": "Rubik-Medium",
430434
"fontSize": 14,
431435
"fontWeight": "500",
436+
"textAlign": "left",
432437
},
433438
[
434439
{
@@ -575,6 +580,7 @@ exports[`Badge should render badgeIcon correctly when danger 1`] = `
575580
"fontFamily": "Rubik-Medium",
576581
"fontSize": 14,
577582
"fontWeight": "500",
583+
"textAlign": "left",
578584
},
579585
[
580586
{
@@ -721,6 +727,7 @@ exports[`Badge should render badgeIcon correctly when neutral 1`] = `
721727
"fontFamily": "Rubik-Medium",
722728
"fontSize": 14,
723729
"fontWeight": "500",
730+
"textAlign": "left",
724731
},
725732
[
726733
{
@@ -867,6 +874,7 @@ exports[`Badge should render badgeIcon correctly when success 1`] = `
867874
"fontFamily": "Rubik-Medium",
868875
"fontSize": 14,
869876
"fontWeight": "500",
877+
"textAlign": "left",
870878
},
871879
[
872880
{
@@ -1013,6 +1021,7 @@ exports[`Badge should render badgeIcon correctly when warning 1`] = `
10131021
"fontFamily": "Rubik-Medium",
10141022
"fontSize": 14,
10151023
"fontWeight": "500",
1024+
"textAlign": "left",
10161025
},
10171026
[
10181027
{
@@ -1159,6 +1168,7 @@ exports[`Badge should render badgeText correctly when custom badge 1`] = `
11591168
"fontFamily": "Rubik-Medium",
11601169
"fontSize": 14,
11611170
"fontWeight": "500",
1171+
"textAlign": "left",
11621172
},
11631173
[
11641174
{
@@ -1305,6 +1315,7 @@ exports[`Badge should render badgeText correctly when danger 1`] = `
13051315
"fontFamily": "Rubik-Medium",
13061316
"fontSize": 14,
13071317
"fontWeight": "500",
1318+
"textAlign": "left",
13081319
},
13091320
[
13101321
{
@@ -1451,6 +1462,7 @@ exports[`Badge should render badgeText correctly when default 1`] = `
14511462
"fontFamily": "Rubik-Medium",
14521463
"fontSize": 14,
14531464
"fontWeight": "500",
1465+
"textAlign": "left",
14541466
},
14551467
[
14561468
{
@@ -1597,6 +1609,7 @@ exports[`Badge should render badgeText correctly when neutral 1`] = `
15971609
"fontFamily": "Rubik-Medium",
15981610
"fontSize": 14,
15991611
"fontWeight": "500",
1612+
"textAlign": "left",
16001613
},
16011614
[
16021615
{
@@ -1743,6 +1756,7 @@ exports[`Badge should render badgeText correctly when success 1`] = `
17431756
"fontFamily": "Rubik-Medium",
17441757
"fontSize": 14,
17451758
"fontWeight": "500",
1759+
"textAlign": "left",
17461760
},
17471761
[
17481762
{
@@ -1889,6 +1903,7 @@ exports[`Badge should render badgeText correctly when warning 1`] = `
18891903
"fontFamily": "Rubik-Medium",
18901904
"fontSize": 14,
18911905
"fontWeight": "500",
1906+
"textAlign": "left",
18921907
},
18931908
[
18941909
{
@@ -2164,6 +2179,7 @@ exports[`Badge should render correctly only text badge 1`] = `
21642179
"fontFamily": "Rubik-Medium",
21652180
"fontSize": 14,
21662181
"fontWeight": "500",
2182+
"textAlign": "left",
21672183
},
21682184
[
21692185
{
@@ -2310,6 +2326,7 @@ exports[`Badge should render fontSize correctly when large 1`] = `
23102326
"fontFamily": "Rubik-Medium",
23112327
"fontSize": 14,
23122328
"fontWeight": "500",
2329+
"textAlign": "left",
23132330
},
23142331
[
23152332
{
@@ -2456,6 +2473,7 @@ exports[`Badge should render fontSize correctly when medium 1`] = `
24562473
"fontFamily": "Rubik-Medium",
24572474
"fontSize": 14,
24582475
"fontWeight": "500",
2476+
"textAlign": "left",
24592477
},
24602478
[
24612479
{
@@ -2602,6 +2620,7 @@ exports[`Badge should render fontSize correctly when small 1`] = `
26022620
"fontFamily": "Rubik-Medium",
26032621
"fontSize": 14,
26042622
"fontWeight": "500",
2623+
"textAlign": "left",
26052624
},
26062625
[
26072626
{

src/components/BottomSheet/__snapshots__/BottomSheet.test.tsx.snap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,7 @@ exports[`BottomSheet should render BottomSheet when visible true 1`] = `
246246
"color": "#273142",
247247
"fontFamily": "Rubik-Regular",
248248
"fontSize": 14,
249+
"textAlign": "left",
249250
},
250251
]
251252
}

src/components/Button/__snapshots__/Button.test.tsx.snap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ exports[`Button should render button correctly 1`] = `
7272
"fontWeight": "500",
7373
"lineHeight": 16,
7474
"marginLeft": 0,
75+
"textAlign": "left",
7576
},
7677
]
7778
}

0 commit comments

Comments
 (0)