Skip to content

Commit

Permalink
fix(busy): Show pulse if only UI are recalculating (#4137)
Browse files Browse the repository at this point in the history
* fix(busy): Show pulse if only UI are recalculating

Because UI elements don't get spinners
  • Loading branch information
gadenbuie authored Sep 30, 2024
1 parent 09d4155 commit 2e2114f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

* Small improvements to the default pulse busy indicator to better blend with any background. It's also now slightly smaller by default. (#4122)

* When spinners and the pulse busy indicators are enabled, Shiny now shows the pulse indicator when dynamic UI elements are recalculating if no other spinners are present in the app. (#4137)

## Bug fixes

* Fixed a bug in `conditionalPanel()` that would cause the panel to repeatedly show/hide itself when the provided condition was not boolean. (@kamilzyla, #4127)
Expand Down
2 changes: 1 addition & 1 deletion inst/www/shared/busy-indicators/busy-indicators.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion srcts/extras/busy-indicators/busy-indicators.scss
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,9 @@
&.shiny-busy::after {
@include shiny-page-busy;
}
&.shiny-busy:has(.recalculating)::after {
// Hide the pulse if there are spinners on the page
// (Note: UI outputs don't get spinners)
&.shiny-busy:has(.recalculating:not(.shiny-html-output))::after {
display: none;
}
&.shiny-busy:has(#shiny-disconnected-overlay)::after {
Expand Down

0 comments on commit 2e2114f

Please sign in to comment.