Skip to content

Commit

Permalink
Add back styling for theme visual testing
Browse files Browse the repository at this point in the history
  • Loading branch information
domyen authored and MichaelArestad committed Aug 17, 2022
1 parent 44488e6 commit 6cffc66
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions code/lib/ui/src/components/sidebar/Menu.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,11 @@ export const Expanded = () => {
false,
false
);
return <SidebarMenu menu={menu} />;
return (
<DoubleThemeRenderingHack>
<SidebarMenu menu={menu} />
</DoubleThemeRenderingHack>
);
};
Expanded.play = async ({ canvasElement }) => {
const canvas = within(canvasElement);
Expand All @@ -78,6 +82,10 @@ export const ExpandedWithoutReleaseNotes = () => {
false,
false
);
return <SidebarMenu menu={menu} />;
return (
<DoubleThemeRenderingHack>
<SidebarMenu menu={menu} />
</DoubleThemeRenderingHack>
);
};
ExpandedWithoutReleaseNotes.play = Expanded.play;

0 comments on commit 6cffc66

Please sign in to comment.