Bläddra i källkod

Fix typo with background_size_fallback

tags/v0.3.0
Garrick Aden-Buie 7 år sedan
förälder
incheckning
d69a999e59
3 ändrade filer med 3 tillägg och 2 borttagningar
  1. +1
    -0
      .Rbuildignore
  2. +1
    -1
      R/write_theme.R
  3. +1
    -1
      inst/scripts/write_xaringan_theme_body.R

+ 1
- 0
.Rbuildignore Visa fil

@@ -8,3 +8,4 @@
^_.+$
^docs$
^index\.Rmd$
^man-roxygen$

+ 1
- 1
R/write_theme.R Visa fil

@@ -167,7 +167,7 @@ write_xaringan_theme <- function(
# prepare variables for template
body_font_family <- paste(c(text_font_family, text_font_family_fallback, text_font_base), collapse = ', ')
backround_size_fallback <- if (is.null(background_position)) "cover" else "100%"
background_size_fallback <- if (is.null(background_position)) "cover" else "100%"
background_size <- background_image %??% (background_size %||% background_size_fallback)
title_slide_background_size <- title_slide_background_size %||% (
title_slide_background_image %??% "cover"

+ 1
- 1
inst/scripts/write_xaringan_theme_body.R Visa fil

@@ -41,7 +41,7 @@ for (var in f_args) {

# prepare variables for template
body_font_family <- paste(c(text_font_family, text_font_family_fallback, text_font_base), collapse = ', ')
backround_size_fallback <- if (is.null(background_position)) "cover" else "100%"
background_size_fallback <- if (is.null(background_position)) "cover" else "100%"
background_size <- background_image %??% (background_size %||% background_size_fallback)
title_slide_background_size <- title_slide_background_size %||% (
title_slide_background_image %??% "cover"

Laddar…
Avbryt
Spara