Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xaringanExtra::style_banner() call has no effect on banner colors #189

Open
danswart opened this issue Nov 11, 2023 · 0 comments
Open

xaringanExtra::style_banner() call has no effect on banner colors #189

danswart opened this issue Nov 11, 2023 · 0 comments

Comments

@danswart
Copy link

After watching reprex videos I'm reposting my issue with a tested, small, reproducible 2-slide example demonstrating that the banners show up, but are not altered in any way by the style_banner() call. Slide deck created via Rmarkdown template 'Ninja Themed Presentation' without changing anything except adding the two r code chunks defined in your Banner Demo slides found at https://pkg.garrickadenbuie.com/xaringanExtra/banner/#1

I also tried selector = NULL, selector = "xe-banner", and selector = ":root" all to no effect.

The style_banner call obviously works in your Banner Demo deck, but I could not see the .Rmd file for those and cannot analyze the diff between that xaringan markdown file and my own.

Thank you - Dan Swart


title: "Presentation Ninja"
subtitle: "⚔️ xaringan +
😎 xaringanthemer"
author:

  • "Yihui Xie"
  • "Garrick Aden-Buie"
    date: 'r Sys.Date()'
    output:
    xaringan::moon_reader:
    css: xaringan-themer.css
    nature:
    slideNumberFormat: "%current%"
    highlightStyle: github
    highlightLines: true
    ratio: 16:9
    countIncrementalSlides: true

options(htmltools.dir.version = FALSE)
knitr::opts_chunk$set(
  fig.width=9, fig.height=3.5, fig.retina=3,
  out.width = "100%",
  cache = FALSE,
  echo = TRUE,
  message = FALSE, 
  warning = FALSE,
  hiline = TRUE
)
library(xaringanthemer)
style_duo_accent(
  primary_color = "#1381B0",
  secondary_color = "#FF961C",
  inverse_header_color = "#FFFFFF"
)

xaringanExtra::use_banner(
  top_left = "My Awesome Talk Title",
  top_right = "Mr. Fancy Pants",
  bottom_left = "bit.ly/my-awesome-talk",
  exclude = "title-slide"
)


xaringanExtra::style_banner(
  text_color = "#1874CD",
  background_color = "#F0F8FF",
  selector = ".special-slide"
)

Typography

Text can be bold, italic, strikethrough, or inline code.

Link to another slide.

Lorem Ipsum

Dolor imperdiet nostra sapien scelerisque praesent curae metus facilisis dignissim tortor.
Lacinia neque mollis nascetur neque urna velit bibendum.
Himenaeos suspendisse leo varius mus risus sagittis aliquet venenatis duis nec.

  • Dolor cubilia nostra nunc sodales

  • Consectetur aliquet mauris blandit

  • Ipsum dis nec porttitor urna sed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant