-
Notifications
You must be signed in to change notification settings - Fork 295
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
Wrap icons when there is not enough space. #3920
Conversation
Size Change: -45 B (0%) Total Size: 1.13 MB
ℹ️ View Unchanged
|
@johnPhillips I know you worked on the IB, but can you check my notes in the "Relevant technical choices" of this PR? |
Thanks @asvinb - you helped me a lot with the IB, so you are in a good position to evaluate the best approach here. It sounds good to me, but I'll mention two things I noticed when sketching in the IB we arrived at.
So here we could have gone inline with the first two items, but the third might have looked a little strange. In summary, I'd just suggest eyeballing your solution with some verbose ideas and seeing how it looks? Happy to go with whatever you decide 👍 |
Thanks @johnPhillips . Based on our conversation, I've tweaked the PR so that items are stacked when the viewport is < 1280px. |
I believe this was decided to not visually overload the user with too many action buttons. Any additional thoughts @marrrmarrr? |
If it is the case that we don't want to visually overload the UI with buttons, that's reasonable. But I would point out that we are showing them all on smaller viewports where there is less space: This is my first issue with using
Just wondering if there is a more consistent way to keep the buttons visible but to lessen their visual impact / reduce the clutter. Maybe take a page out of WordPress's book? On the Posts page they use checkboxes and a single row of buttons that allows batch operations. They are also dealing with potentially verbose text, so they put all the actions underneath and only expose them on hover: Batch operations are obviously a fair amount of work. But if we always wrapped the buttons and made them visible, it could solve some of the issues I alluded to above. We could also look at secondary colours for some of the buttons to mute them slightly...
I'm no UX expert and I'm certainly not a designer, so these might be terrible ideas 😂. 🤷♂️. All I'm saying is that perhaps we can find a better way to solve the clutter concern across all viewports? |
@marrrmarrr @alex-moulin Can you share your thoughts on @johnPhillips's feedback above? I tend to agree only showing the buttons on hover is causing issues here, and I'd be okay to change that. |
@felixarntz @marrrmarrr @johnPhillips I would be keen to discuss this as I don't know for sure the reasons behind some of the decisions that were taken to design these elements. However, my 2 cents would be that instead of showing all the icons by default, we could potentially show 3 vertical dots on hover, and when interacted with, it would display the 3 options: Draft, Pin, Dismiss If possible, we could use an animation to show what's happening with the element, i.e. Dismiss would move the element to the left out of the list, Pin would move it to the right (as going into the other tab) and Draft would magnify it to take the users to the other screen. |
+1 to Alex's comment, it will save a lot of space in the mobile UI. |
Thanks @alex-moulin! Two nice ideas: I will give my thoughts on each but ultimately I'll defer to Felix on how he wants to proceed.
I think this is a really nice idea. Do you mean like the button with 3 dots used in Gmail?
If so, we already use Material Design components for the UI so could use Icon Button for the 3 dots and then the Is that what you had in mind? Very happy to knock together a demo if required.
I agree that some sort of visual feedback would be great. Currently the idea just disappears, and apart from a counter incrementing on a neighbouring tab there isn't really any sense what happened. We could try adding some transitions and see how it looks. Another idea might be to use Material's Snackbar component to provide feedback. Over to you @felixarntz - how would you like me to proceed? |
@johnPhillips just to confirm this is indeed what I had in mind regarding the 3 dots and Menu component :) |
Per #3839 (comment), we may actually want to circle back and go with the original PR approach here. |
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 actually looks good to me while testing! Paging @marrrmarrr for an additional approval.
Just tested it too, looks good! |
Summary
Addresses issue #3839
Relevant technical choices
Checklist