Skip to content

Commit

Permalink
Pin Boostrap version to 4 in bs4_book theme (#1211)
Browse files Browse the repository at this point in the history
  • Loading branch information
cderv authored Jul 28, 2021
1 parent 3e25495 commit 8a45014
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion R/bs4_book.R
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,12 @@ bs4_book <- function(theme = bs4_book_theme(),
#' @export
#' @rdname bs4_book
#' @param primary Primary colour: used for links and background of footer.
bs4_book_theme <- function(primary = "#0068D9", ...) {
#' @param version Passed to [bslib::bs_theme()]. This should not be changed as
#' [bs4_book()] has been designed to work with Bootstrap version 4 for now.
#' @md
bs4_book_theme <- function(primary = "#0068D9", version = 4, ...) {
bslib::bs_theme(...,
version = 4,
primary = primary,
"font-size-base" = "1rem",
)
Expand Down
6 changes: 5 additions & 1 deletion man/bs4_book.Rd

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

0 comments on commit 8a45014

Please sign in to comment.