Skip to content

htmltools 0.5.4

Compare
Choose a tag to compare
@cpsievert cpsievert released this 07 Dec 20:53
· 40 commits to main since this release

New Features

  • Added a new bindFillRole() function for modifying tag() object(s) into tags that are allowed to grow and shrink when their parent is opinionated about their height. See help(bindFillRole, "htmltools") for documentation and examples. Note the primary motivation for adding these functions is to power {bslib}'s new card() API (in particular, responsive sizing) as well as the new fill arguments in shiny::plotOutput(), shiny::imageOutput(), shiny::uiOutput(), htmlwidgets::sizingPolicy(), and htmlwidgets::shinyWidgetOutput(). (#343)

Bug fixes

  • Closed #331: copyDependencyToDir() creates outputDir recursively, which happens in Quarto or when lib_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)