Skip to content

Commit 8d13dd1

Browse files
authored
rtl implementation fix (#1170)
1 parent 5e0c0f1 commit 8d13dd1

File tree

6 files changed

+18
-10
lines changed

6 files changed

+18
-10
lines changed

stories/components/agenda/agenda.a.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ export const events = () => html`
3232
`;
3333

3434
export const RTL = () => html`
35-
<mgt-agenda dir="rtl"></mgt-agenda>
35+
<body dir="rtl">
36+
<mgt-agenda></mgt-agenda>
37+
</body>
3638
`;
37-

stories/components/file/file.a.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,10 @@ export const file = () => html`
1818
<mgt-file file-query="/me/drive/items/01BYE5RZZFWGWWVNHHKVHYXE3OUJHGWCT2"></mgt-file>
1919
`;
2020

21-
2221
export const RTL = () => html`
23-
<mgt-file file-query="/me/drive/items/01BYE5RZZFWGWWVNHHKVHYXE3OUJHGWCT2" dir="rtl"></mgt-file>
22+
<body dir="rtl">
23+
<mgt-file file-query="/me/drive/items/01BYE5RZZFWGWWVNHHKVHYXE3OUJHGWCT2"></mgt-file>
24+
</body>
2425
`;
2526

2627
export const localization = () => html`

stories/components/fileList/fileList.a.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ export const fileList = () => html`
1919
`;
2020

2121
export const RTL = () => html`
22-
<mgt-file-list dir="rtl"></mgt-file-list>
22+
<body dir="rtl">
23+
<mgt-file-list></mgt-file-list>
24+
</body>
2325
`;
2426

2527
export const localization = () => html`
@@ -61,8 +63,6 @@ export const events = () => html`
6163
</style>
6264
`;
6365

64-
65-
6666
export const openFolderBreadcrumbs = () => html`
6767
<style>
6868
body {

stories/components/login/login.stories.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@ export const Templates = () => html`
4747
`;
4848

4949
export const RTL = () => html`
50-
<mgt-login dir="RTL"></mgt-login>
50+
<body dir="rtl">
51+
<mgt-login></mgt-login>
52+
</body>
5153
`;
5254

5355
export const Events = () => html`

stories/components/people/people.a.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,7 @@ export const People = () => html`
1919
`;
2020

2121
export const RTL = () => html`
22-
<mgt-people show-max="5" dir="RTL"></mgt-people>
22+
<body dir="rtl">
23+
<mgt-people show-max="5"></mgt-people>
24+
</body>
2325
`;

stories/components/person/person.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,5 +59,7 @@ export const events = () => html`
5959
`;
6060

6161
export const RTL = () => html`
62-
<mgt-person person-query="me" view="twoLines" dir="RTL"></mgt-person>
62+
<body dir="rtl">
63+
<mgt-person person-query="me" view="twoLines"></mgt-person>
64+
</body>
6365
`;

0 commit comments

Comments
 (0)