diff --git a/lib/ui/src/components/sidebar/Menu.stories.tsx b/lib/ui/src/components/sidebar/Menu.stories.tsx index c4331196365..125e02cc997 100644 --- a/lib/ui/src/components/sidebar/Menu.stories.tsx +++ b/lib/ui/src/components/sidebar/Menu.stories.tsx @@ -1,6 +1,7 @@ import React, { Fragment, FunctionComponent } from 'react'; import { WithTooltip, TooltipLinkList, Icons } from '@storybook/components'; +import { styled } from '@storybook/theming'; import { MenuItemIcon, SidebarMenu, MenuButton, SidebarMenuList } from './Menu'; import { useMenu } from '../../containers/menu'; @@ -30,6 +31,12 @@ export const Items = () => ; export const Real = () => ; +const DoubleThemeRenderingHack = styled.div({ + '#root > div:first-child > &': { + textAlign: 'right', + }, +}); + export const Expanded = () => { const menu = useMenu( // @ts-ignore @@ -40,16 +47,18 @@ export const Expanded = () => { false ); return ( - } - > - - - - + + } + > + + + + + ); };