shiny icon indicating copy to clipboard operation
shiny copied to clipboard

Change cursor when hovering over sliderInput()

Open Mkranj opened this issue 4 months ago • 0 comments

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:
slider_before

After, the cursor appears as a pointer, which makes sense because clicking it transports the slider point / multi range slider to the clicked place: slider_after

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)

Mkranj avatar Sep 16 '25 07:09 Mkranj