Skip to content

Commit

Permalink
added story for RTL
Browse files Browse the repository at this point in the history
  • Loading branch information
Malavika Koppula committed Dec 5, 2023
1 parent 9ce14a3 commit ec16eea
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 0 deletions.
14 changes: 14 additions & 0 deletions blocks/numbered-list-block/index.story.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,17 @@ export const noImageNoHeadline = () => {

return <NumberedList {...props} customFields={customFields} />;
};

export const withRtl = () => {
const customFields = {
...sampleData,
showHeadline: true,
showImage: true,
};

return (
<div dir="rtl">
<NumberedList {...props} customFields={customFields} />
</div>
);
};
14 changes: 14 additions & 0 deletions blocks/simple-list-block/index.story.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,17 @@ export const noImageNoHeadline = () => {

return <SimpleList {...props} customFields={customFields} />;
};

export const withRtl = () => {
const customFields = {
...sampleData,
showHeadline: true,
showImage: true,
};

return (
<div dir="rtl">
<SimpleList {...props} customFields={customFields} />
</div>
);
};
14 changes: 14 additions & 0 deletions blocks/top-table-list-block/index.story.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -257,3 +257,17 @@ export const fourSmallStoriesPerRowNoBorder = () => (
}}
/>
);

export const withRtl = () => (
<div dir="rtl">
<TopTableListWrapper
customFields={{
...config,
extraLarge: 1,
large: 1,
medium: 1,
small: 2,
}}
/>
</div>
);

0 comments on commit ec16eea

Please sign in to comment.