-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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
[material-ui][Breadcrumbs] Allow overriding onClick
button base of ellipsis icon
#42597
Comments
Why use breadcrumbs to trigger a menu? These two UI components shouldn't be combined. Can you provide an example of this in a real world application? |
onClick
button base of ellipsis icononClick
button base of ellipsis icon
Hi @ZeeshanTamboli,
|
Just found some examples of using overflow menu for accessibility enhancement. |
I see this is supported in Joy UI: https://mui.com/joy-ui/react-breadcrumbs/#condensed-with-menu. We can add this new feature. Feel free to work on it. |
That's nice. However, it'd be ideal if my repo wouldn't have to install another dependency like Joy UI just for that behavior. So what you mean is I can create a PR for this? Or is there anything I can do to get this feature implemented? |
Yes, you can create a PR to add this feature in Material UI Breadcrumbs component. |
Hi @ZeeshanTamboli , |
@duynguyen-kun I have reviewed your PR. |
Hello @ZeeshanTamboli! I'm beginning work on adding this feature. Could you please assign it to me? |
@ZeeshanTamboli PR is ready for review. |
@ZeeshanTamboli after reviewing the ask again. I realized that the original ask from issue was to be able to create the menu functionality similar to the Joy package example. That is currently possible without any code changes. I updated the PR to instead update the documentation to demonstrate how this can be implemented using the MUI package. @duynguyen-kun I believe you are wanting to implement something like this: |
I'm looking at it. Thanks @Sergio16T |
The PR #42973 looks great. I approved it. TYSM |
This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue. Note We value your feedback @duynguyen-kun! How was your experience with our support team? |
Summary
The breadcrumbs when reaching its max items will display an Ellipsis component. Currently, the component behaves in a way that will unhide any extra items.
Expected Behavior
Modifiable
onClick
Current
Trigger unhiding extra items
Examples
No response
Motivation
In my context, it would not worth mentioning if there's only 1 item hidden, but there are up to 4 - 5 items. And I want to display those within a context menu whenever I click on the ellipsis instead of popping off everything and having the layout broken.
MUI Breadcrumbs
currently does not support a prop to modify thatonClick
of the ellipsis button base.Hopefully get your support. Thank you 🙏
Search keywords: Breadcrumbs
The text was updated successfully, but these errors were encountered: