Skip to content

Commit

Permalink
Do not use Button for thir composite item
Browse files Browse the repository at this point in the history
  • Loading branch information
ciampo committed Oct 2, 2024
1 parent ad4f4f3 commit 50466a8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/components/src/composite/stories/index.story.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import { useContext, useMemo } from '@wordpress/element';
import { createSlotFill, Provider as SlotFillProvider } from '../../slot-fill';
import { Composite } from '..';
import { Tooltip } from '../../tooltip';
import Button from '../../button';

const meta: Meta< typeof Composite > = {
title: 'Components/Composite',
Expand Down Expand Up @@ -390,9 +389,7 @@ export const WithTooltips: StoryObj< typeof Composite > = {
<Composite.Item>Item two</Composite.Item>
</Tooltip>
<Tooltip text="Tooltip three">
<Composite.Item render={ <Button /> }>
Item three
</Composite.Item>
<Composite.Item>Item three</Composite.Item>
</Tooltip>
</>
),
Expand Down

0 comments on commit 50466a8

Please sign in to comment.