-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
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
[Chip] Add skipFocusWhenDisabled
prop to not allow focussing deletable chip if disabled
#35065
Conversation
|
Signed-off-by: Zeeshan Tamboli <zeeshan.tamboli@gmail.com>
…nto zee-chip-focus
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 pushed a change and improved the test. @sai6855 Some other MUI team member may review it again. From my side, it looks good. Great first contribution!
Hey thanks for approval, looking forward for more contribution |
Hi @ZeeshanTamboli I saw a new pr for 5.10.15 version release, will this PR be a part of 5.10.15 release? |
It's part of the release only if it is merged. I wouldn't want to merge PRs until there is an approval from a MUI Core team member that it looks good. I am just a MUI maintainer (not part of the core team). I just try to review PRs to polish it up. But the final go ahead is from a core member. |
Ah got it, no issues |
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.
In order to avoid breaking changes in the behavior compared to before, how about we add a prop that will determine whether the disabled chip should be focusable (and have it true by default). We have something similar in the @mui/base's Button for example: focusableWhenDisabled
. cc @michaldudak for additional thoughts.
I agree, this should be configurable. Ideally, we would use the same prop as in ButtonUnstyled, |
@michaldudak as you suggested i added |
skipFocusWhenDisabled
prop to allow not to focus deletable chip if disabled
skipFocusWhenDisabled
prop to allow not to focus deletable chip if disabledskipFocusWhenDisabled
prop to not allow focussing deletable chip if disabled
…ble chip if disabled (mui#35065) Signed-off-by: Zeeshan Tamboli <zeeshan.tamboli@gmail.com> Co-authored-by: ZeeshanTamboli <zeeshan.tamboli@gmail.com>
…ble chip if disabled (mui#35065) Signed-off-by: Zeeshan Tamboli <zeeshan.tamboli@gmail.com> Co-authored-by: ZeeshanTamboli <zeeshan.tamboli@gmail.com>
Fixes: #35038