-
-
Notifications
You must be signed in to change notification settings - Fork 777
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
base: master
Are you sure you want to change the base?
Conversation
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.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
This might also allow to drop |
Codecov ReportAll modified and coverable lines are covered by tests ✅
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. |
...(active ? styles.markActive : {}), | ||
...styles.mark, |
There was a problem hiding this comment.
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.
export type OnStartMove = ( | ||
e: React.MouseEvent | React.TouchEvent, | ||
valueIndex: number, | ||
startValues?: number[], | ||
) => void; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unnecessary changes.
Similar to the other components we have like
tracks
,rail
andhandle
, 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.