Skip to content

Commit

Permalink
feat: Re-export htmltools::css() (#1086)
Browse files Browse the repository at this point in the history
* feat: Re-export `htmltools::css()`
  • Loading branch information
gadenbuie committed Jul 15, 2024
1 parent 9cb53b0 commit 1bd7e03
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 0 deletions.
2 changes: 2 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ export(card_footer)
export(card_header)
export(card_image)
export(card_title)
export(css)
export(font_collection)
export(font_face)
export(font_google)
Expand Down Expand Up @@ -156,6 +157,7 @@ import(htmltools)
import(sass)
importFrom(grDevices,col2rgb)
importFrom(htmltools,as.tags)
importFrom(htmltools,css)
importFrom(jquerylib,jquery_core)
importFrom(jsonlite,fromJSON)
importFrom(lifecycle,deprecated)
Expand Down
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@

* Example apps provided with bslib have now moved from `examples` to `examples-shiny` to take advantage of the new `package` argument in `shiny::runExample()` with shiny >= 1.8.1. For example, try `shiny::runExample("build-a-box", package = "bslib")`. (#1049)

* bslib now re-exports `htmltools::css()` to make it easier to specify style declarations. (#1086)

## Bug fixes

* `toggle_sidebar()` once again correctly closes a sidebar. (@fredericva, #1043)
Expand Down
4 changes: 4 additions & 0 deletions R/bslib-package.R
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ utils::globalVariables("!!")
## usethis namespace: end
NULL

#' @export
#' @importFrom htmltools css
htmltools::css


# For usethis::use_release_issue()
release_bullets <- function() {
Expand Down
16 changes: 16 additions & 0 deletions man/reexports.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1bd7e03

Please sign in to comment.