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

feat(slider): Add the ticks variant #1104

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

Conversation

MarkoOleksiyenko
Copy link
Contributor

No description provided.

@MarkoOleksiyenko MarkoOleksiyenko force-pushed the slider-ticks branch 2 times, most recently from 31e16dd to 3aeb903 Compare February 12, 2025 12:31
Copy link

codecov bot commented Feb 12, 2025

Codecov Report

Attention: Patch coverage is 89.09091% with 6 lines in your changes missing coverage. Please review.

Project coverage is 91.15%. Comparing base (d0cfae6) to head (28b235f).
Report is 9 commits behind head on main.

Files with missing lines Patch % Lines
...ootstrap/src/components/slider/slider.component.ts 50.00% 2 Missing ⚠️
core/src/components/slider/slider.ts 95.23% 0 Missing and 2 partials ⚠️
react/bootstrap/src/components/slider/slider.tsx 77.77% 0 Missing and 2 partials ⚠️
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     
Flag Coverage Δ
e2e 82.92% <89.09%> (+0.18%) ⬆️
unit 84.02% <73.80%> (-0.24%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@MarkoOleksiyenko MarkoOleksiyenko force-pushed the slider-ticks branch 9 times, most recently from 77ba539 to 28b235f Compare February 18, 2025 08:55
@MarkoOleksiyenko MarkoOleksiyenko marked this pull request as ready for review February 18, 2025 09:33
},
styles: {
left: computed(() => (vertical$() ? null : percent(tickContext$().item.position))),
cursor: disabled$() ? 'disabled' : 'pointer',
Copy link
Member

@divdavem divdavem Feb 19, 2025

Choose a reason for hiding this comment

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

Suggested change
cursor: disabled$() ? 'disabled' : 'pointer',
cursor: computed(() => disabled$() ? 'disabled' : 'pointer'),

(cf #1114)

@@ -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',
Copy link
Member

@divdavem divdavem Feb 19, 2025

Choose a reason for hiding this comment

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

Suggested change
cursor: showTicks$() ? 'default' : 'pointer',
cursor: computed(() => showTicks$() ? 'default' : 'pointer'),

(cf #1114)

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.

[Slider]: allow possible step look on the horizontal / vertical bar to identify better the range.
2 participants