Skip to content

Commit

Permalink
Fix opacity dimming on recalculating uiOutput() (#4028)
Browse files Browse the repository at this point in the history
* Close #4027: Fix opacity dimming on recalculating uiOutput(). Also, only apply display:content when there are child elements

* Update inst/www/shared/shiny_scss/shiny.bootstrap5.scss

* Add news item
  • Loading branch information
cpsievert authored Apr 10, 2024
1 parent 420a2c0 commit 3edf9bf
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
3 changes: 3 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# shiny (development version)

## Bug fixes

* Fixed a recent issue with `uiOutput()` and `conditionalPanel()` not properly lower opacity when recalculation (in a Bootstrap 5 context). (#4027)

# shiny 1.8.1.1

Expand Down
11 changes: 9 additions & 2 deletions inst/www/shared/shiny_scss/shiny.bootstrap5.scss
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,15 @@ $datepicker-disabled-color: $dropdown-link-disabled-color !default;

$shiny-file-active-shadow: $input-focus-box-shadow !default;

/* Treat conditional panels and uiOutput as "pass-through" containers */

.shiny-panel-conditional,
div:where(.shiny-html-output) {
display: contents;
/* uiOutput()/ conditionalPanel() are "pass-through" containers when they have children. */
&:has(> *) {
display: contents;
/* Pass along styles that no longer impact the pass-through container */
&.recalculating > * {
opacity: 0.3;
}
}
}

0 comments on commit 3edf9bf

Please sign in to comment.