Skip to content

Commit

Permalink
Forward visibility hidden for all recalculating widgets, not just tho…
Browse files Browse the repository at this point in the history
…se with a error message (otherwise spinner won't be visible after a req())
  • Loading branch information
cpsievert committed Dec 13, 2024
1 parent 99e1327 commit 7904545
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
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.

13 changes: 7 additions & 6 deletions srcts/extras/busy-indicators/busy-indicators.scss
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,14 @@
}

/*
When htmlwidget errors are rendered, an inline `visibility:hidden` is put on the
html-widget-output, and the error is put in a sibling element that overlays
the output container (this way, the height of the output container doesn't change).
Work around this by making the output container itself visible and making
the children (except the spinner) invisible.
When htmlwidget errors are rendered, an inline `visibility:hidden` is put
on the html-widget-output, and the error message (if any) is put in a
sibling element that overlays the output container (this way, the height
of the output container doesn't change). Work around this by making the
output container itself visible and making the children (except the
spinner) invisible.
*/
&.html-widget-output:has( + .shiny-output-error) {
&.html-widget-output {
visibility: inherit !important;
> * {
visibility: hidden;
Expand Down

0 comments on commit 7904545

Please sign in to comment.