Repository navigation
fix(storybook): MultiSelector row-action stories pass an Icon element, not an icon name - #11884
Conversation
…, 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.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
PR Analysis Report🔎 Preview ·
|
There was a problem hiding this comment.
Approved pending CI: the two MultiSelector row-action stories now render the "…" icon instead of the text moreHorizontal, and nothing else changes. CI passes on this head.
Optional follow-up, outside this pull request: the Popover story's <Token label="Status: Active" icon="filter" /> passes a bare icon name to Token, whose icon also takes a node, so it shows the word filter the same way.
Claims and files checked
Review mode: same-head; reason: none
- changed rules (1): Whatever the scope, these are computed over the whole pull request — checked: the earlier and current review rules and this pull request's history, no finding
- Claim: before the change, each row action showed the clipped word
moreHorizontalwith the focus ring over it — verified in before frames of both stories. - Claim: after the change, each row shows the "…" icon button — verified in after frames; the button keeps its size and position.
- Claim: apps are unaffected and the component is not at fault — verified:
IconButtonrenders whatever node it is given, and only the story file changes. - Claim:
IconButton'siconprop is a node — verified inIconButton.tsx. - Claim: both stories now pass
<Icon icon="moreHorizontal" />— verified at both call sites. - Claim: the Typeahead "Result Actions" story uses the same pattern — verified in that story's open pull request (#11733); it is not on
mainyet. - Claim: no other story passes a bare icon name to an
IconButton— verified by a sweep of every story file. - Claim: the menu items that take icon names accept an icon type — verified for the dropdown menu item, submenu, radio item and the breadcrumb menu item alias.
- Claim: story-only, so no changeset or version change — verified: one file in the private Storybook app.
- Claim: the issue was found in earlier browser stills on the Bug, Design review, P0 and P1 rows — those are exactly the rows with actions; the stills themselves were not read.
- Claim: the re-shoot on this head compares against an earlier
maincommit — verified: that commit's story file differs from the head only by this change, and the stated results match this review's frames. - Claim: in Row actions the head shows one icon, no text, inside the popup with a 2 px focus ring, and the base cuts the word at the right edge — verified in frames; the ring width is the default 2 px focus outline.
- Claim: in Row actions RTL the head shows the icon at the row's left end with the ring, and the base spills the word past the left edge — verified in frames.
- Claim: the focused element and active descendant are the same in both builds — verified: the same button boxes and active descendant in both trees.
- Claim: ESLint and Prettier pass on the story file — verified: both passed, and the Lint workflow passes on this head.
- Claim: #11851 edits other stories in this file, not these lines — verified; it has since landed, and this change still merges cleanly with
main. - File:
apps/storybook/stories/MultiSelector.stories.tsx— clear.
|
/approve-spec bc40946 |
Primary intent
Story fix: the MultiSelector row-action stories show the "…" icon instead of the word "moreHorizontal".
User impact
Cause and change
IconButton'siconprop is a node ("Icon element rendered inside the button"), so the string"moreHorizontal"rendered as text. Both stories now pass<Icon icon="moreHorizontal" />, as the Typeahead "Result Actions" story does. No other story passes a bare icon name to anIconButton; the menu items that take names accept an icon type.Story-only: no Changeset, release note or version change.
Evidence
eslintandprettierpass on the story file.Owner and land path
Overlap checked: #11851 (focus return after a pick; it edits other stories in this file, not the row-action icon lines)