-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
MudRipple: Follow theme colors and improve visibility (#8072) #8460
Conversation
This made the ripple effect a few pixels larger than the clicked link, which looked very odd.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## dev #8460 +/- ##
==========================================
+ Coverage 88.84% 89.01% +0.16%
==========================================
Files 416 411 -5
Lines 12358 12188 -170
Branches 2458 2433 -25
==========================================
- Hits 10980 10849 -131
+ Misses 845 803 -42
- Partials 533 536 +3 ☔ View full report in Codecov by Sentry. |
Looks great! Naturally handles light/dark themes and makes the hover->active->ripple effect less jarring. I think I personally think the hover and ripple should be more opaque like MUI but that's a separate issue. |
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 love it.
Should probably be configurable through the Palette
|
I don't expect many will need to customize it but who knows. Would this be easy to do as part of this PR? |
I've added configuration options to the palette, both opacity values can be changed separately. |
Thanks @meenzen |
Amazing, thanks for doing that |
Description
Previously the ripple effect would only use a static color (
#000
) which doesn't work well with the dark theme. Additionally it was hard to see on filled buttons.Changes:
MudNavLink
ripple effect was too largeNote: Other Material UI libraries also use the text color for the ripple effect.
resolves #8072
How Has This Been Tested?
visually
Types of changes
Filled Buttons
Before:
Screencast_20240325_130427.webm
After:
Screencast_20240325_130518.webm
Text Buttons
Before:
Screencast_20240325_130742.webm
After:
Screencast_20240325_130811.webm
MudNavLink
Before:
After:
Checklist:
dev
).