Skip to content

Commit

Permalink
chore: Simplify story
Browse files Browse the repository at this point in the history
  • Loading branch information
engfragui committed Jul 26, 2024
1 parent 65ba250 commit 5622d77
Showing 1 changed file with 10 additions and 15 deletions.
25 changes: 10 additions & 15 deletions src/tabs/tabs.stories.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -301,31 +301,26 @@ This is just a sample story to show you that Tooltip outside Tab does not work,
<Story parameters={{ docs: { source: { type: 'code' } } }} name="Wrapped by Tooltip component">
<Tabs>
<TabList aria-label="Multiple tablist example tabs">
<Tooltip content={'Tooltip for Tab 1'}>
<Tooltip content="Tooltip outside Tab">
<Tab id="tab1">
<Box>Tab 1</Box>
</Tab>
</Tooltip>

<Tab id="tab2">
<Tooltip content={'Tooltip for Tab 2'}>
<Tooltip content="Tooltip inside Tab">
<Box>Tab 2</Box>
</Tooltip>
</Tab>
</TabList>
<TabPanel
id="tab1"
renderMode="active"
render={<Box paddingX="small" paddingY="xlarge" />}
>
<Text>Content of tab 1</Text>
<TabPanel id="tab1">
<Box paddingX="small" paddingY="xlarge">
<Text>Content of tab 1</Text>
</Box>
</TabPanel>
<TabPanel
id="tab2"
renderMode="active"
render={<Box paddingX="small" paddingY="xlarge" />}
>
<Text>Content of tab 2</Text>
<TabPanel id="tab2">
<Box paddingX="small" paddingY="xlarge">
<Text>Content of tab 2</Text>
</Box>
</TabPanel>
</Tabs>
</Story>
Expand Down

0 comments on commit 5622d77

Please sign in to comment.