Added aria label to the select/clear all links to make them unique per input

This commit is contained in:
2026-02-13 11:37:30 +00:00
parent 8bb836b996
commit 582a310b9c
2 changed files with 5 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
Package: AVSDevR.A11yShinyInputs
Title: Accesible Alternatives to Shiny Inputs
Version: 0.1.0
Version: 0.1.0.9000
Authors@R:
person("Craig", "Williams", , "craig@avsdev.uk", role = c("aut", "cre"))
Description: Provides accessible alternatives to shiny inputs such as the radio

View File

@@ -38,13 +38,15 @@ a11yCheckboxGroupInput <- function(
href = "#",
onclick = "return checkAll(event)",
"select all",
class = "link select-all"
class = "link select-all",
`aria-label` = paste("Select all", label)
)
sn <- htmltools::tags$a(
href = "#",
onclick = "return clearAll(event)",
"clear all",
class = "link select-none"
class = "link select-none",
`aria-label` = paste("Clear all", label)
)
selectAll <- htmltools::tags$div(
"(", sa, "/", sn, ")", class = "select-all-container"