Repository navigation
Conversation
In the table layout, primary actions now sit next to the title, like the list layout, and take no room until the row is hovered or focused. The actions column only holds the menu, which lists every action. When the title isn't displayed, primary actions stay in the actions column. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Revealing the primary actions next to the title widened the primary column whenever the row's title and actions didn't fit, so the column jumped between rows. The actions are now positioned out of the flow and never add to the column's width; the title gives up the room they need instead, measured in `usePrimaryActionsFit`. The actions are capped to the room left after a minimum of title (the whole title when it's short, 10 characters otherwise). Actions that don't fit are hidden, so they can't take focus while invisible, and stay available in the actions menu. Also keeps the hierarchy mark from shrinking under the title. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Instead of hiding the primary actions that don't fit next to the title, wrap them onto more lines. The row grows taller while they're revealed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The primary column now reserves room for each row's primary actions on one line, next to its whole title, up to the title's 80 character cap. At rest the title uses that room; once revealed, the actions do, so the title isn't elided and the actions don't wrap. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With primary actions next to the title, the actions column only holds the actions menu, but its visible "Actions" label set its width and left the menu off-center. Hide the label visually, keeping it for assistive technology, and render the menu at its regular size through a new `isMenuOnly` prop, instead of the smaller `isCompact` one. When the title isn't displayed, primary actions stay in the actions column, and so does its visible label. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The table's actions column now always holds only the actions menu, which lists every action. Primary actions render as buttons next to the title, so when the title isn't displayed they're only in the menu, and the column's label is always visually hidden. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Selected rows, and rows holding focus elsewhere, such as on their checkbox, revealed the primary actions next to the title. Reveal them only on hover, or while one of them has keyboard focus. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
🤖 PR meta 🤖📦 Bundle sizeSize Change: +4.45 kB (+0.05%) Total Size: 8.67 MB 📦 View Changed
⚡ PerformanceShow the resultsClient side metrics exclude the server response time. front-end-block-theme
front-end-classic-theme
media-processing
media-upload
post-editor
site-editor
|
|
How do we think about action styles here? It seems the blueish (or the primary color of the user's palette, etc.) would be better than the previous black, given we want actions to stand out over the title (they are so close we don't want actions and title to be confused). I suppose we also want to remove the underlines. |
|
cc @verofasulo |
|
I need to stress test wrapping actions (when there are many of them), but it's promising: large titles create enough space for common scenarios (1-3 actions) and small titles reserve some space for them. |
|
Thanks for the fast work. Quick GIF as I tested this:
This is better than what's shipping, I think, so that's progress. It also does reveal the main downside of showing quick actions as a title-suffix rather than, say, below. It causes a river-effect, where the the position of the actions jumps between rows. Not too sure how hard work it would be to ask Opus to try the other direction as well—actions below the title. It would definitely unify us towards what list tables do, which has its own benefits, and you could explore the cautious mockup I shared here. That mockup also has the benefit of retaining neutral colours for the main actions, and destructive for "Trash", which surfaces another conversation to have at some point (but not today): blue or black titles? |
That's available at #86247 (comment) (just rebased and updated with some tweaks). |
|
I guess it wasn't clear in my original mockup but the idea was for the actions to be right-aligned within the column; that should address the river. It might make the actions feel too detached from the title though, needs testing. Which component are we using for the actions? They look like links which seems wrong for 'actions'. |
|
Still eager for this PR! Thanks @oandregal for iterating. |
|
We use DataViews in MailPoet for Subscribers, Emails, and other listings. In the screenshot below, the Subscribers listing’s Actions column reserves space for “Edit” on every row, even though it only shows on hover. That leaves less room for the subscriber, tags, and lists columns, which already wrap. This direction works well for us because the Actions column only needs room for the ⋯ menu and “Edit” appears next to the title when needed. We already use a button in the row when an action needs to stand out, so the always-visible buttons in #82109 would take up more space than we need.
|


What?
See #75668
In the table layout, primary actions now sit next to the title, like in the list layout, and only show while the row is hovered. The actions column only holds the actions menu, which lists every action.
Why?
Primary actions take a lot of room in the actions column, which every row reserves whether or not it's hovered. This is a fourth approach to #75668, after #86916 (assign space dynamically), #86247 (actions below the title) and #75671 (actions as an overlay), following the mockup in #75668 (comment).
How?
max-width, which tables ignore when they size their columns.usePrimaryActionsFitmeasures the widths this needs and shares them as custom properties.isMenuOnlyprop ofItemActions, and its "Actions" label is visually hidden, so the column is as wide as the menu button. When the title isn't displayed, primary actions are only in the menu.Testing Instructions
Testing Instructions for Keyboard
Screenshots or screencast
Use of AI Tools
Written with Claude Code (Claude Opus 5.5), directed and reviewed by the author.