react-component / react-component/slider

Adjust Slider css to handle max limit

Open
#455 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
3.1k
Forks
768
Avg merge
11d 22h
Merged PRs (30d)
5

Description

Hi! Right now I'm setting an intervall of something like [0,100]. I've got a handle that is dynamically adjustable to a value, say 50.

However, if the slider value exceeds the max limit set by the handle, not slider, the progress bar will still adjust the width property according to the slider. Is there any way to limit the rc-slider-track to read and limit the progress styling to the max value of the handle in addition to the slider?

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.

Research direction

Start by reproducing the issue with a slider interval of [0,100] and a dynamically adjustable handle capped at 50. Trace how the slider track calculates its progress width, then verify that the rendered progress does not exceed the handle's maximum value as well as the slider's maximum.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.