-
Notifications
You must be signed in to change notification settings - Fork 15
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
feat(slider): Add the ticks variant #1104
base: main
Are you sure you want to change the base?
feat(slider): Add the ticks variant #1104
Conversation
31e16dd
to
3aeb903
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1104 +/- ##
==========================================
- Coverage 91.18% 91.15% -0.04%
==========================================
Files 99 99
Lines 2701 2759 +58
Branches 446 459 +13
==========================================
+ Hits 2463 2515 +52
- Misses 157 159 +2
- Partials 81 85 +4
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
77ba539
to
28b235f
Compare
core/src/components/slider/slider.ts
Outdated
}, | ||
styles: { | ||
left: computed(() => (vertical$() ? null : percent(tickContext$().item.position))), | ||
cursor: disabled$() ? 'disabled' : 'pointer', |
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.
cursor: disabled$() ? 'disabled' : 'pointer', | |
cursor: computed(() => disabled$() ? 'disabled' : 'pointer'), |
(cf #1114)
core/src/components/slider/slider.ts
Outdated
@@ -857,6 +995,9 @@ export function createSlider(config?: PropsConfig<SliderProps>): SliderWidget { | |||
'au-slider-clickable-area': horizontal$, | |||
'au-slider-clickable-area-vertical': vertical$, | |||
}, | |||
styles: { | |||
cursor: showTicks$() ? 'default' : 'pointer', |
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.
cursor: showTicks$() ? 'default' : 'pointer', | |
cursor: computed(() => showTicks$() ? 'default' : 'pointer'), |
(cf #1114)
28b235f
to
672472e
Compare
No description provided.