diff --git a/DESCRIPTION b/DESCRIPTION index 03422d065..0fb6d071a 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -32,7 +32,7 @@ Imports: base64enc, cachem, grDevices, - htmltools (>= 0.5.4.9000), + htmltools (>= 0.5.6.9001), jquerylib (>= 0.1.3), jsonlite, lifecycle, diff --git a/NAMESPACE b/NAMESPACE index 3a9f6c9c7..876d237a7 100644 --- a/NAMESPACE +++ b/NAMESPACE @@ -9,6 +9,8 @@ S3method(print,bslib_fragment) S3method(print,bslib_page) S3method(print,bslib_showcase_layout) S3method(print,bslib_value_box_theme) +S3method(save_html,bslib_fragment) +S3method(save_html,bslib_page) export(accordion) export(accordion_panel) export(accordion_panel_close) diff --git a/NEWS.md b/NEWS.md index f3fcb3657..0a1bd344c 100644 --- a/NEWS.md +++ b/NEWS.md @@ -36,6 +36,8 @@ * Improved the style and appearance of the button to enter full screen in `card()`s and `value_box()`es to better adapt to Bootstrap's dark mode. (#780) +* `htmltools::save_html()` now works as expected when applied directly to components (e.g., `card()`, etc) and pages with a non-default theme. (#823, #815) + * `layout_sidebar()` received a new design. The button to collapse and expand the sidebar now appears at the top edge of the sidebar, and we now use the [arrow-bar-left](https://icons.getbootstrap.com/icons/arrow-bar-left/) icon instead of [chevron-left](https://icons.getbootstrap.com/icons/chevron-left/). On mobile devices, the sidebar now fills the `layout_sidebar()` area as an overlay, rather than expanding from above the main content area. **Note** the `max_mobile_height` argument of `sidebar()` determines the maximum height of the sidebar area on mobile, but it now only applies when `open = "always"`. (#798) * `layout_sidebar()` now uses an `