-
-
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
Button: Don't apply :focus effect on mobile so it's not sticky #8709
Button: Don't apply :focus effect on mobile so it's not sticky #8709
Conversation
Fixes a regression of MudBlazor#8256 caused by MudBlazor#8575 Not perfect but probably the best with the tools we have.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## dev #8709 +/- ##
==========================================
+ Coverage 89.82% 90.08% +0.25%
==========================================
Files 412 418 +6
Lines 11878 12048 +170
Branches 2364 2365 +1
==========================================
+ Hits 10670 10854 +184
+ Misses 681 659 -22
- Partials 527 535 +8 ☔ View full report in Codecov by Sentry. |
@LiZzeira is this ok? |
From what I understand, the button remains highlighted because it has active focus on it, is that correct? |
@LiZzeira It does, but the issue is that the focus remains until you click somewhere else on mobile, which means you see the click style indefinitely, which we tried to avoid previously |
Thanks @danielchalmers |
|
Description
Fixes a regression of #8256 caused by #8575.
See it in action by tapping the button using dev tools (not click).
Not the best solution but it's actively causing a problem and I'm really not sure how else to do it as simple as this.
How Has This Been Tested?
visually
Type of Changes
Before: tapping a button would keep the tap effect visible indefinitely, like the old way.
After: tapping the button only applies the effect while the tap is held, like after the sticky PR.
See the original sticky PR for examples.
Checklist
dev
).