Fixed lintr & complexity issues
This commit is contained in:
@@ -60,5 +60,5 @@ a11yCheckboxGroupInput <- function(
|
|||||||
selectAll
|
selectAll
|
||||||
)
|
)
|
||||||
|
|
||||||
htmltools::attachDependencies(fieldset, accessibleShinyInputsDependency())
|
htmltools::attachDependencies(fieldset, a11yShinyInputsDependency())
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,7 +26,8 @@ a11yFileInput <- function(
|
|||||||
class = "shiny-input-file",
|
class = "shiny-input-file",
|
||||||
name = inputId,
|
name = inputId,
|
||||||
type = "file",
|
type = "file",
|
||||||
style = "position: absolute !important; top: -99999px !important; left: -99999px !important;",
|
style = "position: absolute !important; top: -99999px !important; \
|
||||||
|
left: -99999px !important;",
|
||||||
`data-restore` = restoredValue
|
`data-restore` = restoredValue
|
||||||
)
|
)
|
||||||
if (multiple) {
|
if (multiple) {
|
||||||
@@ -54,7 +55,8 @@ a11yFileInput <- function(
|
|||||||
class = "input-group-btn input-group-prepend",
|
class = "input-group-btn input-group-prepend",
|
||||||
htmltools::tags$span(
|
htmltools::tags$span(
|
||||||
class = "btn btn-default btn-file", buttonLabel, inputTag
|
class = "btn btn-default btn-file", buttonLabel, inputTag
|
||||||
)),
|
)
|
||||||
|
),
|
||||||
htmltools::tags$input(
|
htmltools::tags$input(
|
||||||
type = "text",
|
type = "text",
|
||||||
class = "form-control",
|
class = "form-control",
|
||||||
|
|||||||
@@ -40,5 +40,5 @@ a11yRadioButtons <- function(
|
|||||||
options
|
options
|
||||||
)
|
)
|
||||||
|
|
||||||
htmltools::attachDependencies(fieldset, accessibleShinyInputsDependency())
|
htmltools::attachDependencies(fieldset, a11yShinyInputsDependency())
|
||||||
}
|
}
|
||||||
|
|||||||
2
R/deps.R
2
R/deps.R
@@ -1,4 +1,4 @@
|
|||||||
accessibleShinyInputsDependency <- function() {
|
a11yShinyInputsDependency <- function() {
|
||||||
if (getOption("shiny.minified", TRUE)) {
|
if (getOption("shiny.minified", TRUE)) {
|
||||||
js <- c("js/a11yShinyInputs.min.js", "js/a11yCheckboxGroupInput.min.js")
|
js <- c("js/a11yShinyInputs.min.js", "js/a11yCheckboxGroupInput.min.js")
|
||||||
css <- "css/a11yShinyInputs.min.css"
|
css <- "css/a11yShinyInputs.min.css"
|
||||||
|
|||||||
Reference in New Issue
Block a user