htmltools 0.5.4
New Features
- Added a new
bindFillRole()
function for modifyingtag()
object(s) into tags that are allowed to grow and shrink when their parent is opinionated about their height. Seehelp(bindFillRole, "htmltools")
for documentation and examples. Note the primary motivation for adding these functions is to power{bslib}
's newcard()
API (in particular, responsive sizing) as well as the newfill
arguments inshiny::plotOutput()
,shiny::imageOutput()
,shiny::uiOutput()
,htmlwidgets::sizingPolicy()
, andhtmlwidgets::shinyWidgetOutput()
. (#343)
Bug fixes
-
Closed #331:
copyDependencyToDir()
createsoutputDir
recursively, which happens in Quarto or whenlib_dir
points to a nested directory. (@gadenbuie, #332) -
Closed #346:
tagQuery()
's$remove()
,$after()
,$before()
,$replaceWith()
had a bug that prevented expected behavior when sibling children values where not tag elements. (#348)