Skip to content

Commit

Permalink
callout: Remove conditional reveal story (#1910)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisLaneAU authored Dec 13, 2024
1 parent 20d989a commit 598725a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 22 deletions.
5 changes: 5 additions & 0 deletions .changeset/odd-ants-push.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@ag.ds-next/react': patch
---

callout: Remove callout in control group story as we no longer support this pattern.
22 changes: 0 additions & 22 deletions packages/react/src/callout/Callout.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
import { StoryObj, Meta } from '@storybook/react';
import { ConditionalFieldContainer } from '../../../../docs/components/ConditionalFieldContainer';
import { VisuallyHidden } from '../a11y';
import { Box } from '../box';
import { ControlGroup } from '../control-group';
import { Flex } from '../flex';
import { CalendarIcon } from '../icon';
import { Radio } from '../radio';
import { Text } from '../text';
import { Callout } from './Callout';
import { CalloutTitle } from './CalloutTitle';
Expand Down Expand Up @@ -158,25 +155,6 @@ export const CalendarExample: Story = {
),
};

export const InControlGroup: Story = {
render: (args) => (
<ControlGroup label="Control group label" required block>
<Radio checked={false}>Radio option one</Radio>
<Radio checked={true}>Radio option two</Radio>
<ConditionalFieldContainer>
<Callout {...args} />
</ConditionalFieldContainer>
<Radio checked={false}>Text message</Radio>
</ControlGroup>
),
args: {
title: 'Callout heading',
children: <Text as="p">Description of the callout.</Text>,
tone: 'info',
variant: 'compact',
},
};

export const NoTitle: Story = {
args: {
title: undefined,
Expand Down

0 comments on commit 598725a

Please sign in to comment.