react-component / react-component/slider

Using styles.( track | handle ) can't replace ( track | handle )Styles property

Open
#988 0 comments 4 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

since trackStyles can be used to set different colors for multiple tracks using the code below,

trackStyles = {[{ backgroundColor: 'red' }, { backgroundColor: 'blue' }]}

can set only one color to styles.track (IDK the usage of styles.tracks but, styles.tracks are not even able to be seen if there is track sets)

So I think trackStyles or handleStyles should not be deprecated yet.
If now, want to know specific usage of styles.track or styles.handle

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 reading the slider API and the behavior of the styles.track, styles.handle, trackStyles, and handleStyles props, then reproduce the reported case with multiple tracks. Done means the supported replacement or deprecation behavior is clarified and covered by the relevant documentation or tests.

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.