Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow easier styling of mark and dot #949

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

razzeee
Copy link

@razzeee razzeee commented Nov 9, 2023

Similar to the other components we have like tracks, rail and handle, this allows easier styling via classes or inline styles.

I've also separated the active styles of both, as being able to style, how a selected range should look is very helpful.

Similar to the other components we have like `tracks`, `rail` and
`handle`, this allows easier styling via classes or inline styles.

I've also separated the active styles of both, as being able to style,
 how a selected range should look is very helpful.
Copy link

vercel bot commented Nov 9, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
slider ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 9, 2023 4:51pm

@razzeee
Copy link
Author

razzeee commented Nov 10, 2023

This might also allow to drop dotStyle and activeDotStyle from the top level, like seems to have been done for the other styles

Copy link

codecov bot commented Dec 3, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (fa77b3e) 99.81% compared to head (40ea35e) 99.81%.
Report is 6 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #949   +/-   ##
=======================================
  Coverage   99.81%   99.81%           
=======================================
  Files          13       13           
  Lines         551      554    +3     
  Branches      151      154    +3     
=======================================
+ Hits          550      553    +3     
  Misses          1        1           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Comment on lines +38 to +39
...(active ? styles.markActive : {}),
...styles.mark,
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be:

...styles.mark,
...(active ? styles.markActive : {}),

markActive styles should override the default mark styles, not the other way around.

Comment on lines +5 to +9
export type OnStartMove = (
e: React.MouseEvent | React.TouchEvent,
valueIndex: number,
startValues?: number[],
) => void;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unnecessary changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants