-
Notifications
You must be signed in to change notification settings - Fork 31
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
fix: Fix missing scrim background on LoadingOverlay #2098
Conversation
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 believe not having an overlay in this case was intentional - the scrim changes the colour unnecessarily of the panel if it hasn't loaded a widget yet.
What ticket are we fixing here? This is for the error covering a dashboard?
This is for DH-16180 where I need a spinner with an overlay while the panel content is updating.
This displays the spinner without the overlay, then on the fade-out the black overlay is shown for a split second, so there's a bit of a flicker. I guess the right usage should be just For my use case, Don suggested adding a background-colored overlay immediately with no fade-in, and do a quick fade-out when loaded. I'm going to update the PR to parameterize background color, fade-in, and fade-out duration. |
Still, I think flickering the overlay when we change |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2098 +/- ##
==========================================
+ Coverage 46.59% 46.63% +0.03%
==========================================
Files 679 682 +3
Lines 38598 38443 -155
Branches 9779 9580 -199
==========================================
- Hits 17986 17928 -58
+ Misses 20560 20505 -55
+ Partials 52 10 -42
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Background class wasn't applied when LoadingOverlay has error or is loading