Skip to content

Commit 2ef41dd

Browse files
authored
chore: use dev htmtlools (#1228)
1 parent 8b39a2a commit 2ef41dd

File tree

6 files changed

+26
-22
lines changed

6 files changed

+26
-22
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
3131

3232
### Other changes
3333

34+
* The fill CSS used by fillable containers (i.e. when `fillable=True`) now uses a [CSS cascade layer](https://developer.mozilla.org/en-US/docs/Learn/CSS/Building_blocks/Cascade_layers) named `htmltools` to reduce the precedence order of the fill CSS. (#1228)
35+
3436
## [0.8.1] - 2024-03-06
3537

3638
### Breaking Changes

scripts/htmlDependencies.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ ignore <- capture.output({
2121
"rstudio/bslib@main",
2222
"rstudio/shiny@main",
2323
"rstudio/sass@main",
24-
"cran::htmltools"
24+
"rstudio/htmltools@main"
2525
))
2626
#pak::pkg_install(c("rstudio/bslib@main", "rstudio/shiny@main", "rstudio/htmltools@main"))
2727
})

shiny/_versions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
shiny_html_deps = "1.8.0.9000"
22
bslib = "0.6.1.9001"
3-
htmltools = "0.5.7"
3+
htmltools = "0.5.7.9000"
44
bootstrap = "5.3.1"
55
requirejs = "2.3.6"
66

shiny/www/shared/bootstrap/_version.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
"note!": "This file is auto-generated by scripts/htmlDependencies.R",
33
"shiny_version": "Github (rstudio/shiny@ae308e03adcb040756ac5d13c76b50244216173d)",
44
"bslib_version": "Github (rstudio/bslib@2ec3067eb20fcdcd25260a8ee7ec6a7607839429)",
5-
"htmltools_version": "CRAN (R 4.3.1)",
5+
"htmltools_version": "Github (rstudio/htmltools@f8e059157c3de6f03bf8d8dcebcaff531bc97fd4)",
66
"bootstrap_version": "5.3.1"
77
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"note!": "This file is auto-generated by scripts/htmlDependencies.R",
33
"package": "htmltools",
4-
"version": "CRAN (R 4.3.1)"
4+
"version": "Github (rstudio/htmltools@f8e059157c3de6f03bf8d8dcebcaff531bc97fd4)"
55
}
Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
1-
.html-fill-container {
2-
display: flex;
3-
flex-direction: column;
4-
/* Prevent the container from expanding vertically or horizontally beyond its
5-
parent's constraints. */
6-
min-height: 0;
7-
min-width: 0;
8-
}
9-
.html-fill-container > .html-fill-item {
10-
/* Fill items can grow and shrink freely within
11-
available vertical space in fillable container */
12-
flex: 1 1 auto;
13-
min-height: 0;
14-
min-width: 0;
15-
}
16-
.html-fill-container > :not(.html-fill-item) {
17-
/* Prevent shrinking or growing of non-fill items */
18-
flex: 0 0 auto;
1+
@layer htmltools {
2+
.html-fill-container {
3+
display: flex;
4+
flex-direction: column;
5+
/* Prevent the container from expanding vertically or horizontally beyond its
6+
parent's constraints. */
7+
min-height: 0;
8+
min-width: 0;
9+
}
10+
.html-fill-container > .html-fill-item {
11+
/* Fill items can grow and shrink freely within
12+
available vertical space in fillable container */
13+
flex: 1 1 auto;
14+
min-height: 0;
15+
min-width: 0;
16+
}
17+
.html-fill-container > :not(.html-fill-item) {
18+
/* Prevent shrinking or growing of non-fill items */
19+
flex: 0 0 auto;
20+
}
1921
}

0 commit comments

Comments
 (0)