shiny
shiny copied to clipboard
Change cursor when hovering over sliderInput()
Initially noticed this in the Python version of Shiny.
This changes the cursor that appears when hovering over the line in sliderInputs. Before the change, the cursor appears as an up-down arrow, which is likely to confuse users:
After, the cursor appears as a pointer, which makes sense because clicking it transports the slider point / multi range slider to the clicked place:
Here is a minimal app to showcase this behavior:
library(shiny)
ui <- fluidPage(
sliderInput("single", label = "Single slider", 1, 10, 2),
sliderInput("multiple", label = "Two value slider", 1, 10, value = c(3,6))
)
server <- function(input, output, session) {
}
shinyApp(ui, server)