Closed spdev3000 closed 3 months ago
@spdev3000 Can you also add some documentation around it! That would be very helpful to let the consumers know about the flexibility to use the min-max ranges from -ve
minimum values.
Also can you make sure the storybook
and the documentation
links are not broken as here
will be continued as #4573
This PR adds a way to use fill-start="0" as reference point as well as respecting a provided normalization function to correctly calculate fill offset and length.
Description
First check, if we really just have the attribute
fill-start
provided with no number value, if so, use centered point of track like before. For all other number values, use normalization function of model of active handle to calculate real fill-offset and fill-length.Related issue(s)
4559
Motivation and context
2 current problems:
How has this been tested?
2 new test cases have been added into slider.stories.ts as well as into slider.test.ts
Screenshots (if appropriate)
Types of changes
Checklist
Best practices
This repository uses conventional commit syntax for each commit message; note that the GitHub UI does not use this by default so be cautious when accepting suggested changes. Avoid the "Update branch" button on the pull request and opt instead for rebasing your branch against
main
.