Fixed lintr & complexity issues

This commit is contained in:
2026-02-03 14:50:18 +00:00
parent de80828968
commit e28403929d
4 changed files with 130 additions and 128 deletions

View File

@@ -60,5 +60,5 @@ a11yCheckboxGroupInput <- function(
selectAll selectAll
) )
htmltools::attachDependencies(fieldset, accessibleShinyInputsDependency()) htmltools::attachDependencies(fieldset, a11yShinyInputsDependency())
} }

View File

@@ -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",

View File

@@ -40,5 +40,5 @@ a11yRadioButtons <- function(
options options
) )
htmltools::attachDependencies(fieldset, accessibleShinyInputsDependency()) htmltools::attachDependencies(fieldset, a11yShinyInputsDependency())
} }

View File

@@ -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"