Update bootstrap-accessibility plugin (#3259)

* Copy from installed bslib location, no relative file path

* Adopt the fix from https://github.com/rstudio/bslib/pull/241

Co-authored-by: Carson <cpsievert1@gmail.com>
This commit is contained in:
Barret Schloerke
2021-01-27 10:39:10 -05:00
committed by GitHub
parent b165127d20
commit 83336ef9a5
2 changed files with 4 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@@ -3,9 +3,10 @@
# that obtain and patch in https://github.com/rstudio/bslib
library(rprojroot)
library(sass)
library(htmltools)
src <- find_package_root_file("../bslib/inst/lib/bs-a11y-p/")
if (packageVersion("bslib") < "0.2.4") stop ("`bslib >= 0.2.4` is required to update a11y plugin")
src <- system.file("lib/bs-a11y-p/", package = "bslib")
target <- find_package_root_file("inst/www/shared/bootstrap/accessibility/")
# bslib makes hover/focus outlines transparent by default, which is what we want to do