[Feature]: Change cursor when hovering over input_slider()

Open
#2,087 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
52/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
python
Domain
frontend

Research direction

Start by locating the input_slider() UI component and inspect how its hover cursor is styled. Reproduce the behavior in a Shiny app, then verify that hovering over the slider uses a horizontal resize cursor or leaves the cursor unchanged, as requested.

Written by the indexing model from the issue text.

Description

enhancement needs-triage
Category

UI Components

Scope

Quality of Life

Problem

Basically, when I have an input slider and hover over the slider line, my cursor changes to this:
Image

This is unintuitive, if anything, the arrows should point left-right like the slider itself moves. So changing the cursor icon or keeping the default cursor would be appreciated.

NOTE:
This is also true for R Shiny, even though the slider itself looks different!

Solution

Changing the cursor icon to sideways double arrow, or not having any on-hover cursor changes for the slider.

Alternatives (Optional)

No response

Example (Optional)

Impact (Optional)

It would be more intuitive for users of Shiny apps. The current behavior looks like you can resize the slider, instead of being able to click on a specific spot.

Contribution? (Optional)

None

Dominant language
Python
Stars
1.8k
Forks
135
Avg merge
2d 18h
Merged PRs (30d)
21

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from posit-dev/py-shiny

All issues in posit-dev/py-shiny

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.