You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -674,7 +669,7 @@ export const CustomSummary: Story = {
674
669
docs: {
675
670
description: {
676
671
story:
677
-
'Use the `renderSummary` prop to customize how the selection is displayed in the trigger button.',
672
+
'Use the `renderSummary` prop to customize how the selection is displayed in the trigger button. When the custom renderer returns null (e.g., when no selection is made), the placeholder is shown instead.',
678
673
},
679
674
},
680
675
},
@@ -689,11 +684,6 @@ export const NoSummary: Story = {
689
684
icon: <FilterIcon/>,
690
685
rightIcon: null,
691
686
},
692
-
play: async({ canvasElement })=>{
693
-
constcanvas=within(canvasElement);
694
-
consttrigger=canvas.getByRole('button');
695
-
awaituserEvent.click(trigger);
696
-
},
697
687
render: (args)=>(
698
688
<FilterPicker{...args}>
699
689
{fruits.map((fruit)=>(
@@ -707,7 +697,7 @@ export const NoSummary: Story = {
707
697
docs: {
708
698
description: {
709
699
story:
710
-
'When `renderSummary={false}`, no text is shown in the trigger, making it useful for icon-only filter buttons.',
700
+
'When `renderSummary={false}`, no text is shown in the trigger, making it useful for icon-only filter buttons. The trigger displays only the icon, regardless of selection state.',
0 commit comments