-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
List View: Only show ellipsis on first selected item or when focused #40174
List View: Only show ellipsis on first selected item or when focused #40174
Conversation
Size Change: +138 B (0%) Total Size: 1.22 MB
ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This worked as advertised for me:
✅ Only first selected item showed menu icon
✅ On mouseover the menu icon showed for selected items
✅ Select items showed the menu icon
✅ The border radius only showed on first and last items
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the speedy reviews, folks! 🙇 |
Fixes #40066
What?
In the List View component, only show the icon for the ellipsis / settings menu on the first selected item in a multi selection, to reduce clutter in the interface. So that the settings are still accessible for any other selected item, the icon is revealed when an item is hovered or focused.
This PR also tweaks the border radii so that only the first and last selected items have rounded borders, so that the selection looks a bit more like a single selected unit.
Why?
As reported in #40066, when many items are selected in the List View, the settings icon appearing on every row makes the interface look a little cluttered.
How?
ListViewBlock
component, check if the current block is the first or last selected.is-first-selected
andis-last-selected
so that the border radii is set correctly on only the first and last selected blocks. If there is only one selected block, it will receive both of these class names, so the border radii should still be correct.Testing Instructions
Screenshots or screencast
Screen grab: