Skip to content

Commit cdb74ea

Browse files
authored
fix(storybook): MultiSelector row-action stories pass an Icon element, not an icon name (#11884)
fix(storybook): MultiSelector row-action stories pass an Icon element, not an icon name IconButton's icon is a node, so icon="moreHorizontal" rendered the word moreHorizontal, clipped at the popup edge, on every row with an action in Row actions and Row actions RTL. Both now pass <Icon icon="moreHorizontal" />. Story-only.
1 parent a76790f commit cdb74ea

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎apps/storybook/stories/MultiSelector.stories.tsx‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import type {Meta, StoryObj} from '@storybook/react';
44
import {expect, userEvent, waitFor, within} from 'storybook/test';
55
import {useState} from 'react';
66
import {Button} from '@astryxdesign/core/Button';
7+
import {Icon} from '@astryxdesign/core/Icon';
78
import {IconButton} from '@astryxdesign/core/IconButton';
89
import {InputGroup, InputGroupText} from '@astryxdesign/core/InputGroup';
910
import {MultiSelector} from '@astryxdesign/core/MultiSelector';
@@ -885,7 +886,7 @@ export const RowActions: Story = {
885886
const action = (label: string) => (
886887
<IconButton
887888
label={`Edit ${label}`}
888-
icon="moreHorizontal"
889+
icon={<Icon icon="moreHorizontal" />}
889890
variant="ghost"
890891
size="sm"
891892
tooltip={`Edit ${label}`}
@@ -948,7 +949,7 @@ export const RowActionsRtl: Story = {
948949
action: (
949950
<IconButton
950951
label="Edit Bug"
951-
icon="moreHorizontal"
952+
icon={<Icon icon="moreHorizontal" />}
952953
variant="ghost"
953954
size="sm"
954955
/>

0 commit comments

Comments
 (0)