Closed
Description
Description
The ActionList.TrailingAction
component within ActionList.Item
is causing a layout issue. Specifically, the underlying IconButton
(32px) exceeds the available height of 20px, which causes unwanted expansion of the wrapping element..

Here's the current component structure:
<ActionList.Item key={thread.id} onSelect={() => manager.selectThread(thread)}>
<ActionList.LeadingVisual>
<CommentIcon />
</ActionList.LeadingVisual>
{threadName(thread)}
<ActionList.Description variant="inline">
<RelativeTime date={new Date(Date.parse(thread.updatedAt))} format="relative" />
</ActionList.Description>
<ActionList.TrailingAction
icon={TrashIcon}
label={`Delete conversation: "${threadName(thread)}"`}
onClick={async () => {}}
/>
</ActionList.Item>
Steps to reproduce
https://codesandbox.io/p/sandbox/magical-zhukovsky-3wj36g
Looking at the reproduction, it also seems that TrailingAction
is missing a hover state.
Version
v37.11.2
Browser
No response