-
Notifications
You must be signed in to change notification settings - Fork 93
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
Allow custom action menu icon for breadcrumb #2414
Conversation
661da08
to
1f0c5df
Compare
@raimund-schluessler nice! :) 2 things:
|
@jancborchardt Your requested changes are in #2416. Would be great if we could get this one here in. |
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.
Fine for me! We just have to keep in mind that with the implementation discussed in #2416 (I don't think it needs to be explicit in the docs?), another symbol than MenuDown or MenuUp (if the bar is at the bottom) will not be explicit and requires a separate button elsewhere on the interface (ex: if the action icon is "share", it is better to have a share button elsewhere on the interface)
I am not sure I understand what you mean. Do you mean if there is only a single action which is not in a dropdown #2416 will not work well? Anyway, let's discuss this there. |
1f0c5df
to
effac50
Compare
Well, I think it depends on what it will do. Imagine a share icon. If the share icon is part of the text and only here to say "the folder is shared", it may be ok : But if it's an action that says "share this folder", I don't think it will be intuitive. Passing my mouse over the folder 5, Imagine an user that don't really know that this "icon with three circles and two lines" is a share icon, he'll not understand what it does before clicking (whereas a button with an arrow is way more easy to understand without clicking). In that case I think it would be better to have a real button next to the breadcrumbs bar (or elsewhere) with the text "Share" and this icon next to it. EDIT: or keep that in a dropdown. in a dropdown the share action is clear because there's the text "share" next to it. So in my opinion anyone who uses a custom icon (other than MenuDown and MenuUp) here will have to think carefully before doing so. |
Signed-off-by: Raimund Schlüßler <raimund.schluessler@mailbox.org>
effac50
to
d79a5a8
Compare
@quentinguidee I see what you mean and I agree that it might be problematic. But since this problem will be introduced by #2416 it is better to discuss this there. In this PR here the dropdown or single action is still clearly visible as a button/action since it's not part of the hover background yet. So I will merge this one here, rebase #2416 and we can further discuss the problem there. |
This PR implements to customize the menu icon for the
Actions
menu of each breadcrumb. We can now e.g. useMenuDown
for the actions menu of the last breadcrumb. I adjusted the docs to demonstrate this: