# NOT RUN {
if (interactive()) {
ui <- fluidPage(
h2("Using a screen reader
hit Tab and Shift + Tab to
navigate between the buttons
and stop at button 2 to see the difference"),
div(
id = "paragraph",
p("The following paragraph tag will be used as a descriptor")
),
actionButton(
inputId = "inp1",
label = "button 1"
),
actionButton(
inputId = "inp2",
label = "button 2"
) %>%
describe_using(
descID = "paragraph"
)
)
server <- function(input, output, session) {}
shinyApp(ui, server)
}
# }
Run the code above in your browser using DataLab