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
bslib is close to being supported in learnr, but learnr's custom components need to be updated.
The text was updated successfully, but these errors were encountered:
Some sass that I've used in the bslib Rmd chunk... (similar to last example in https://rstudio.github.io/bslib/articles/bslib.html#add-rules)
bslib
.topicsList .topic { border-bottom: 1px solid $primary } .topicsList .topic.current, .topicsList .topic.current:hover, .topicsList .topic:hover { background-color: $primary } .panel-heading.tutorial-panel-heading { background-color: $primary } .btn-tutorial-start-over:hover { background-color: $warning }
Sorry, something went wrong.
With the default tutorial, change the header to
--- title: "Tutorial" output: learnr::tutorial: theme: bootswatch: cerulean runtime: shiny_prerendered ---
When running the tutorial, you'll get an error:
Caused by popover js within bootstrap moving from destroy method to dispose method.
destroy
dispose
Called here:
learnr/inst/lib/tutorial/tutorial.js
Line 1322 in 6a1592f
bs3 docs (destroy): https://www.w3schools.com/bootstrap/bootstrap_ref_js_popover.asp bs4 docs (dispose): https://getbootstrap.com/docs/4.0/components/popovers/#popoverdispose bs5 docs (dispose): https://getbootstrap.com/docs/5.0/components/popovers/#dispose
How shiny currently detects if bs3 exists: https://github.com/rstudio/shiny/blob/244fdc72bc7334d182113b5e0494f1a16f04d9c1/srcts/src/utils/index.ts#L373 . Could be used to toggle the method name.
cc @rjknell
'dispose'
No branches or pull requests
bslib is close to being supported in learnr, but learnr's custom components need to be updated.
The text was updated successfully, but these errors were encountered: