-
Notifications
You must be signed in to change notification settings - Fork 137
Fix Spinner Ripple Effect in WCMaterialOutlinedSpinnerView. #13265
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
Conversation
Disabled Hint: Set hintEnabled="false" in the WCMaterialOutlinedSpinnerView style to prevent the floating hint from occupying space and causing unintended ripple effects in the layout.
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.
Thank you so much @Akshaykomar890!
It wouldn't have crossed my mind this was caused by the hint, good catch! Seeing it now it makes total sense.
This change unfortunately breaks all the spinners that are setting a hint. For example:
| Before | After |
|---|---|
![]() |
![]() |
Steps to reproduce:
- Tap on Products
- Tap on Plus icon
- Tap on
Simple Subscription product - Tap on Add Price
Understanding the reason now, I can't think of a solution. Update: Perhaps we could create a custom background-ripple drawable with top padding, wdyt? I'm not sure whether it'd work as expected for different font-size(accessibility settings).
What about you, do you have some ideas?
|
Hi @malinajirka , Thank you for pointing this out and for the detailed steps to reproduce the issue. You're absolutely right that we can try creating a custom ripple with top padding. However, I believe it might not be fully stable across different font sizes and accessibility settings. While it's worth exploring,
this approach address issue without introducing instability. Let me know what you think, and I’m happy to refine the solution further. |
|
Thanks @Akshaykomar890, replacing all the components with different components introduces a risk of regression which is IMO not worth it for such a small UI glitch most users won't even notice. I'd suggest either testing the approach with padding (it doesn't need to necessarily be perfect, as long as it's an improvement) or marking this issues as |
|
Thanks for your detailed feedback @malinajirka I completely understand the concern about regression risks. I'll test the padding adjustment approach and see if it provides a noticeable improvement. If the results aren't significant, I'm fine with marking this as "Won't Fix" for now. Thanks again. |
|
hello @malinajirka You can find the commit here:e0599ff I’ve tested it both with and without hints, and it’s working as expected in both cases. Looking forward to hearing your thoughts! |
|
Version |
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.
Thanks for following up on this @Akshaykomar890!
I’ve tested it both with and without hints, and it’s working as expected in both cases.
Nice, thanks for sharing what you tested!
I also tested light/dark mode and different font size and it all looks good to me. It's tiny bit off with custom font sizes as we anticipated, but it's still an improvement compared to the previous state.
Thank you for contributing and congrats on your first merged PR in this repo! 🚢
|
Thank you so much @malinajirka for testing it thoroughly. I'm glad the changes have improved the previous state, and it’s exciting to contribute to the repo. I thankful for your guidance and support throughout the process. Should I wait for this PR to merge, or can I start working on a new issue in the meantime? |
Nice, thank you! Feel free to pick up any amount of issues in parallel you like. |




Fixes #5463
Disabled Hint: Set hintEnabled="false" in the WCMaterialOutlinedSpinnerView style to prevent the floating hint from occupying space and causing unintended ripple effects in the layout.
Before:

After:

Reviewer (or Author, in the case of optional code reviews):
Please make sure these conditions are met before approving the PR, or request changes if the PR needs improvement: