Skip to content

sliderInput control inaccessible for keyboard or screen reader users #2845

New issue

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

Open
gtritchie opened this issue Apr 24, 2020 · 2 comments · May be fixed by #3011
Open

sliderInput control inaccessible for keyboard or screen reader users #2845

gtritchie opened this issue Apr 24, 2020 · 2 comments · May be fixed by #3011
Assignees

Comments

@gtritchie
Copy link
Member

gtritchie commented Apr 24, 2020

System details

Output of sessionInfo():

R version 3.6.3 (2020-02-29)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
Running under: macOS Catalina 10.15.4

Matrix products: default
BLAS:   /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/3.6/Resources/lib/libRlapack.dylib

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] shiny_1.4.0.9002

loaded via a namespace (and not attached):
 [1] Rcpp_1.0.4.6         withr_2.1.2          packrat_0.5.0        digest_0.6.25        later_1.0.0         
 [6] mime_0.9             R6_2.4.1             jsonlite_1.6.1       xtable_1.8-4         magrittr_1.5        
[11] rlang_0.4.5          promises_1.1.0       tools_3.6.3          tinytex_0.22         rsconnect_0.8.16    
[16] httpuv_1.5.2         xfun_0.13            fastmap_1.0.1        compiler_3.6.3       htmltools_0.4.0.9003

Example application or steps to reproduce the problem

Using the default app created by RStudio IDE 1.3.947, but specifically looking at:

            sliderInput("bins",
                        "Number of bins:",
                        min = 1,
                        max = 50,
                        value = 30)

screenshot of sample Shiny App

Describe the problem in detail

Load the page into browser, and try to use the slider via keyboard-only.

The slider control is completely inaccessible. You cannot get focus to it via keyboard (e.g. by Tab key), thus you cannot manipulate it via keyboard. Similarly, it is not annotated in a way that permits screen readers to recognize it as a slider, nor to manipulate it.

This violates numerous WCAG 2.1 level A requirements.
https://www.w3.org/TR/WCAG21/#keyboard-accessible

Expected

@jooyoungseo
Copy link

This issue has been being discussed in ion.rangeSlider repo, and I will follow up with the developer.

@jooyoungseo
Copy link

From an accessibility standpoint, I think noUiSlider could be an alternative solution. However, it will take some time for us to tinker around for this binding.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants