Skip to content

fix(storybook): MultiSelector row-action stories pass an Icon element, not an icon name - #11884

Merged
cixzhang merged 1 commit into
mainfrom
fix/multiselector-row-actions-story-icon
Nov 19, 2026
Merged

cixzhang merged 1 commit into
mainfrom
fix/multiselector-row-actions-story-icon

Conversation

@cixzhang

@cixzhang cixzhang commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

Primary intent

Story fix: the MultiSelector row-action stories show the "…" icon instead of the word "moreHorizontal".

User impact

  • People reading the Storybook "Core/MultiSelector › Row actions" and "Row actions RTL" stories:
    • Before: every row with an action showed the literal text "moreHorizontal", clipped at the popup's edge, with the focus ring over the clipped text.
    • After: the rows show the "…" icon button the component is meant to show.
  • Apps: none. The component is not at fault; only the stories passed the wrong value.

Cause and change

IconButton's icon prop 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 an IconButton; the menu items that take names accept an icon type.

Story-only: no Changeset, release note or version change.

Evidence

  • Found by real-Chrome stills: frame 7 of the feat(Typeahead): show a result's action in the panel's grid #11733 sheet, rows Bug, Design review, P0 and P1.
  • Re-shot on this head (Chrome for Testing 149, 1280×800, light, base 5ac1267):
    • Row actions: ArrowDown to "Bug", then ArrowRight. The head shows one icon and no text, with the button inside the popup and a 2 px focus ring on it. The base shows the word, cut at the popup's right edge.
    • Row actions RTL: ArrowLeft. The head shows the icon at the row's left end with the ring. The base spills the word past the left edge.
    • The focused element and active descendant are identical across builds; only the icon content differs.
  • eslint and prettier pass on the story file.

Owner and land path

  • Owner: Astryx maintainers, fix-loop lane 1.
  • Land path: code review, then CI and merge (the re-shot still is in).

Overlap checked: #11851 (focus return after a pick; it edits other stories in this file, not the row-action icon lines)

…, 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.
@vercel

vercel Bot commented Nov 15, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
astryx Ready Ready Preview Nov 15, 2026 2:55pm UTC

Request Review

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Nov 15, 2026
@astracat-bot

astracat-bot Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🟢 Reviewed (for maintainers only) Nov 19, 2026, 4:14 AM UTC

@github-actions

github-actions Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

PR Analysis Report

🔎 Preview · bc40946

Storybook · Sandbox · built from this PR's head

Not run on this PR: add ci:run-visual for Visual, ci:run-a11y for Accessibility, ci:run-rtl for RTL.


Generated by PR Enrichment workflow | View full report

@astracat-bot astracat-bot Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 moreHorizontal with 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: IconButton renders whatever node it is given, and only the story file changes.
  • Claim: IconButton's icon prop is a node — verified in IconButton.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 main yet.
  • 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 main commit — 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.

Automated review (maintainer link)

@cixzhang

Copy link
Copy Markdown
Contributor Author

/approve-spec bc40946

@cixzhang
cixzhang marked this pull request as ready for review November 19, 2026 03:55
@cixzhang
cixzhang merged commit cdb74ea into main Nov 19, 2026
137 checks passed
@github-actions
github-actions Bot deleted the fix/multiselector-row-actions-story-icon branch November 20, 2026 06:06

This branch was successfully deployed

1 active deployment
Preview — bc409467 Deployed Nov 15, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant