amices/shinymice

Check accessibility (e.g., use of headers for screen reader functionality)

hanneoberman opened this issue · 2 comments

Add 'alt' tag to images:

plotOutput("plot") %>% 
      tagAppendAttributes(alt = "Plot of iris")

Add keystroke instead of click for action buttons:

textInput("text", "title") %>% 
      tagAppendAttributes(
        onKeyPress = "Shiny.setInputValue(
        'keypress', 
        {value : event.key}, 
        {priority: 'event'}
        )"
      ), 
    actionButton("go", "Go")