-
Notifications
You must be signed in to change notification settings - Fork 88
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
Move crumb Actions into hover background area #2416
Conversation
Personally, I would also go in this direction (and this fixes the fact that the text is glued to the round button). By the way this solution is also the behavior adopted by google drive, (but they put an arrow instead of the dots to make it really clear that the last is a dropdown menu and others will just navigate).
So this solution fixes that, because they will be like two separate buttons styles. Plus, clicking on the last button should only be used to download/share/... while others only used to navigate. |
We will also have an arrow down, but that requires #2414.
What do you mean with two separate button styles, the difference between a crumb with and without |
Yeah, for me when I pass my mouse over a button and I see that the arrow is took with it, it's like a "dropdown menu" component, whereas the version without the arrow looks like a simple "button" component. Clicking on a button that has an arrow in the hover zone the user should know immediately that he will not navigate I would also add that when a user clicks on the last breadcrumb, it is never to browse, am I wrong? If that's the case, the user clicking on the last breadcrumb will always want the dropdown behaviour, and when the user clicks on others he only want the navigation behaviour |
35777c3
to
b663599
Compare
Rebased the branch and updated the screenshots to show Input from @nextcloud/designers would be very welcome. |
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.
I'd merge the hover feedbacks, like they do in google drive
Screen.Recording.2021-12-28.at.12.25.30.mov
Looks great with the |
Ok. I will take care of this. Or handle it differently? |
Yup, agree with everyone’s feedback. :) As also said in my original comment:
Also, the dropdown menu can be centered below the entire button, not below the triangle icon, cause that looks like it’s aligned to the right. Makes it simpler to just move the mouse / finger down. :) @raimund-schluessler regarding your question:
No, I’d say in that case it can also be the same as when it’s a dropdown, because for a single action the whole folder entry should be clickable too. |
Ok, I will have a look how to do that. We will likely need to adjust the
Good, that makes it easier to implement. |
Requires #2436. |
4643cd0
to
f940538
Compare
@jancborchardt @nimishavijay One last question, hopefully 🙈 How should the menu look in case of one crumb only (e.g. when being in the root folder) where we show an icon only. Should it look like this?
If so, we will need to adjust the |
@raimund-schluessler good question – to be honest I don’t think the root folder needs these actions.
So I’d say when you are in the root, just show the home icon (doesn’t get any hover/focus feedback cause it’s not clickable), then the chevron divider, then the "+ New" action button. |
That's true, there currently is no Action for the root crumb in the Files app. I just thought to have it consistent and possibly allow Actions for every breadcrumb level, as other apps might have a use case for it (I could think of one for an app of mine, where clicking the root crumb would open the details panel). But we can also do this in a follow-up in case we need it.
@jancborchardt You want the chevron divider in this case? Would be inconsistent with the other crumb levels where you decided not to show the chevron for the last crumb, no? Anyway, I will implement what we discussed now and we can have a look again, once a realization exists. |
Ah sorry of course you are right, no chevron on last one, also cause it would look weird with the dropdown arrow right before, too many arrows. :) |
2e3d15a
to
2cb3682
Compare
Allow done. Checkout the video in #2416 (comment) and play around with the docs on netlify: https://deploy-preview-2416--nextcloud-vue-components.netlify.app/#/Components/Breadcrumbs?id=breadcrumbs-1 |
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.
Nice, just 2 things found in testing:
- Currently the text is colored using color-main-text and opacity: .5 – instead normally it should be color-text-maxcontrast and hover/focus color-main-text.
- When in a subfolder, the home icon needs hover/focus feedback as well as a clicky-cursor because then it’s actually clickable (unlike when you are in the root folder). If it makes it easier, it’s fine if this is the same behavior in root, although it just reloads the same view (could be seen as alternate way of "refresh".
2cb3682
to
8827156
Compare
Done.
True, that was a fallacy of mine. It should be the last crumb that doesn't get a hover feedback (unless it has actions). I fixed it. See the updated video in the first comment. |
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.
Perfect! :)
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.
- misaligned
- It also means we cannot click the last folder anymore @jancborchardt. Currently on files, it refreshes the view. We will lose that feature
⚠️
no preferences from me, you decide, but you should be aware :)
That is due to #2435, so not related to this PR. But since #2435 was just merged, I will rebase, so it looks nice for you 😉
True, that's why I didn't do it like this initially. But I think it's fine. Clicking on the crumb for refreshing the view wouldn't be my first thought, to be honest. |
Signed-off-by: Raimund Schlüßler <[email protected]>
8827156
to
e147a98
Compare
This adjusts the appearance of the breadcrumb bar to have the Actions included in the hover background area and makes the last breadcrumb bold. The Actions menu is now centered below the crumb and clicking anywhere on the crumb opens it. For the first crumb, we removed the hover effect.
Looks like this (please note the misaligned arrow-down icon is a bug in the
Actions
component and will be fixed with #2435):