feat(details): add summary-suffix slot - #12385
Open
JoeJoeflyn wants to merge 1 commit into
Open
Conversation
Add a new `summary-suffix` slot to `<vaadin-details>` so action buttons can be placed on the right side of the summary, visible in both open and closed states, without triggering the toggle behavior. Closes vaadin/hilla#5896
JoeJoeflyn
force-pushed
the
feat/details-summary-suffix
branch
from
August 8, 2026 12:39
0b7e4d8 to
db7ee05
Compare
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Summary
Add a
summary-suffixslot to<vaadin-details>so action buttons can be placed on the right side of the summary, visible in both open and closed states, without triggering the toggle behavior.Changes
summaryslot and a newsummary-suffixslot in a<div part="summary-wrapper">with flex layoutflex: 1, suffix takesflex: none(sits on the right)Why
Currently there is no way to add action buttons (edit, delete, etc.) next to the summary without them also toggling the panel open/close. The
summary-suffixslot provides a dedicated area for such buttons.Closes vaadin/hilla#5896
Test plan
summary-wrapperpart renders in shadow DOMsummary-suffixslot renders in shadow DOMscreenrecording-2026-08-08_19-12-14.mp4