Skip to content

Commit 1c11cf9

Browse files
authored
Merge pull request #1031 from rstudio/feat/panel-conditional-gap-spacing
feat(gap-spacing): Apply gap spacing margin-bottom rules to conditionalPanel too
2 parents 32abf6d + 4ee746c commit 1c11cf9

File tree

6 files changed

+9
-10
lines changed

6 files changed

+9
-10
lines changed

NEWS.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848

4949
* `tooltip()` and `popover()` now work as expected when inserted into a navbar/navset via `nav_insert()`. (#1020)
5050

51-
* `uiOutput()` no longer yields unwanted double padding when it's parent container uses `gap` for spacing multiple elements (e.g., `layout_columns()`, `page_fillable()`, etc). (#992)
51+
* `uiOutput()` and `conditionalPanel()` no longer result in unwanted double padding when their parent container uses `gap` for spacing multiple elements (e.g., `layout_columns()`, `page_fillable()`, etc). (#992, #1031)
5252

5353
* `page_navbar()` and `navset_bar()` now validate and transform `padding` and `gap` arguments into appropriate CSS values. (#991)
5454

@@ -58,7 +58,7 @@
5858

5959
# bslib 0.6.2
6060

61-
Increased the version requirement on the `{sass}` package to 0.4.9. As a result, `font_google(local=TRUE)` should no longer fail to download font files.
61+
Increased the version requirement on the `{sass}` package to 0.4.9. As a result, `font_google(local=TRUE)` should no longer fail to download font files.
6262

6363
# bslib 0.6.1
6464

R/sysdata.rda

215 Bytes
Binary file not shown.

inst/bslib-scss/spacer.scss

+4-5
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,10 @@ $bslib-spacer: $spacer !default;
2121
// ...And this class for layout containers (e.g, layout_columns())
2222
.bslib-gap-spacing {
2323
gap: var(--bslib-mb-spacer);
24-
> .bslib-mb-spacing, > .form-group, > p, > pre {
25-
margin-bottom: 0;
26-
}
27-
// Make sure to get similar behavior in a uiOutput()/renderUI() context
28-
> .shiny-html-output {
24+
25+
&,
26+
& > .shiny-html-output,
27+
& > .shiny-panel-conditional {
2928
> .bslib-mb-spacing, > .form-group, > p, > pre {
3029
margin-bottom: 0;
3130
}

inst/css-precompiled/3/bootstrap.min.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

inst/css-precompiled/4/bootstrap.min.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

inst/css-precompiled/5/bootstrap.min.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)