Skip to content

Commit 5e07b9e

Browse files
committed
fix(Item): remove description placement auto
1 parent 8122d86 commit 5e07b9e

File tree

2 files changed

+4
-38
lines changed

2 files changed

+4
-38
lines changed

src/components/content/Item/Item.stories.tsx

Lines changed: 3 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export default {
5555
description: 'Description text displayed with the item',
5656
},
5757
descriptionPlacement: {
58-
options: ['inline', 'block', 'auto'],
58+
options: ['inline', 'block'],
5959
control: { type: 'radio' },
6060
description:
6161
'How the description is positioned relative to the main content',
@@ -1026,31 +1026,7 @@ export const WithDescription: StoryFn<CubeItemProps> = (args) => (
10261026
</Item>
10271027
</Space>
10281028

1029-
<Title level={5}>Description Placement: Auto</Title>
1030-
<Space gap="1x" flow="column" placeItems="start">
1031-
<Item
1032-
{...args}
1033-
styles={DEFAULT_STYLES}
1034-
type="outline"
1035-
icon={<IconUser />}
1036-
description="Auto placement chooses based on content"
1037-
descriptionPlacement="auto"
1038-
>
1039-
User Account
1040-
</Item>
1041-
<Item
1042-
{...args}
1043-
styles={DEFAULT_STYLES}
1044-
type="outline"
1045-
icon={<IconSettings />}
1046-
description="Auto adapts to layout"
1047-
descriptionPlacement="auto"
1048-
>
1049-
Application Settings
1050-
</Item>
1051-
</Space>
1052-
1053-
<Title level={5}>Comparison: All Placements</Title>
1029+
<Title level={5}>Comparison: Inline vs Block</Title>
10541030
<Space gap="2x" flow="column" placeItems="start">
10551031
<Item
10561032
{...args}
@@ -1072,16 +1048,6 @@ export const WithDescription: StoryFn<CubeItemProps> = (args) => (
10721048
>
10731049
Block Placement
10741050
</Item>
1075-
<Item
1076-
{...args}
1077-
styles={DEFAULT_STYLES}
1078-
type="outline"
1079-
icon={<IconUser />}
1080-
description="Auto: Smart placement"
1081-
descriptionPlacement="auto"
1082-
>
1083-
Auto Placement
1084-
</Item>
10851051
</Space>
10861052
</Space>
10871053
);
@@ -1094,7 +1060,7 @@ WithDescription.parameters = {
10941060
docs: {
10951061
description: {
10961062
story:
1097-
'Demonstrates the `description` prop with different `descriptionPlacement` values: "inline" (default, appears next to the label), "block" (appears below the entire item), and "auto" (smart placement based on content). Use inline for short secondary text, block for longer descriptions, and auto for adaptive behavior.',
1063+
'Demonstrates the `description` prop with different `descriptionPlacement` values: "inline" (default, appears next to the label) and "block" (appears below the entire item). Use inline for short secondary text and block for longer descriptions.',
10981064
},
10991065
},
11001066
};

src/components/content/Item/Item.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export interface CubeItemProps extends BaseProps, ContainerStyleProps {
7373
prefix?: ReactNode;
7474
suffix?: ReactNode;
7575
description?: ReactNode;
76-
descriptionPlacement?: 'inline' | 'block' | 'auto';
76+
descriptionPlacement?: 'inline' | 'block';
7777
/**
7878
* Whether the item is selected.
7979
* @default false

0 commit comments

Comments
 (0)