Skip to content

[6.x] Fix the action menu button that addActionsToChip() builds - #20400

Merged
brandonkelly merged 1 commit into
6.xfrom
bugfix/chip-actions
Nov 6, 2026
Merged

brandonkelly merged 1 commit into
6.xfrom
bugfix/chip-actions

Conversation

@i-just

@i-just i-just commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Description

When a chip has an action container (slot="suffix") but no menu yet, addActionsToChip() builds a craft-action-menu in JS. Its invoker set appearance="plain" and variant="inherit", neither of which craft-button supports, so the button fell back to the filled variant. On a coloured chip (e.g. an entry whose entry type has a colour) that showed as a dark filled button.

This sets variant="plain" and the boolean inherit attribute instead, matching the invoker that ActionMenu::invokerHtml() renders server-side.

The bug came in with #20378 and hasn't been released, so there's no changelog entry.

Screenshots

before:
before
after:
after

🤖 Generated with Claude Code

When a chip has an action container but no menu yet, addActionsToChip()
builds a craft-action-menu in JS. Its invoker set appearance="plain" and
variant="inherit", neither of which craft-button supports, so the button
fell back to the filled variant. On a coloured chip, e.g. an entry whose
entry type has a colour, that showed as a dark filled button.

Set variant="plain" and the boolean inherit attribute instead, matching
the invoker ActionMenu::invokerHtml() renders server-side.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown

📚 Storybook previews

@craftcms/ui — open Storybook

No changed components detected in this Storybook.

resources/js — open Storybook

No changed components detected in this Storybook.

@i-just
i-just requested a review from brandonkelly November 5, 2026 13:43
@i-just i-just changed the title Fix the action menu button that addActionsToChip() builds [6.x] Fix the action menu button that addActionsToChip() builds Nov 5, 2026
@brandonkelly
brandonkelly merged commit be7f831 into 6.x Nov 6, 2026
20 checks passed
@brandonkelly
brandonkelly deleted the bugfix/chip-actions branch November 6, 2026 18:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants