diff --git a/src/components/collapsible_nav_beta/collapsible_nav_beta.stories.tsx b/src/components/collapsible_nav_beta/collapsible_nav_beta.stories.tsx index b8a21163188..15c1b1148f7 100644 --- a/src/components/collapsible_nav_beta/collapsible_nav_beta.stories.tsx +++ b/src/components/collapsible_nav_beta/collapsible_nav_beta.stories.tsx @@ -11,6 +11,7 @@ import type { Meta, StoryObj } from '@storybook/react'; import { EuiHeader, EuiHeaderSection, EuiHeaderSectionItem } from '../header'; import { EuiPageTemplate } from '../page_template'; +import { EuiBottomBar } from '../bottom_bar'; import { EuiFlyout } from '../flyout'; import { EuiButton } from '../button'; import { EuiTitle } from '../title'; @@ -469,6 +470,24 @@ export const FlyoutInFixedHeaders: Story = { }, }; +export const GlobalCSSVariable: Story = { + render: ({ ...args }) => ( + <> + + + + This story tests the global `--euiCollapsibleNavOffset` CSS variable + + + + + This text should be visible at all times and the bar position should + update dynamically based on the nav width (including on mobile) + + + ), +}; + export const CollapsedStateInLocalStorage: Story = { render: () => { const key = 'EuiCollapsibleNav__isCollapsed';