spectrum-web-components icon indicating copy to clipboard operation
spectrum-web-components copied to clipboard

[Feat]: Fill-start in slider should respect 0-values as well as normalization function

Open spdev3000 opened this issue 1 year ago • 0 comments

Code of conduct

  • [X] I agree to follow this project's code of conduct.

Impacted component(s)

Silder

Description of the requested feature

  1. Currently fill-start attribute only allows to set values !== 0, but sometimes clients have sliders with min<0 , so for example: min="-100", max="200" - so we need a possibility to define fill-start="0" to not start from centered track position
  2. Also currently the fill-start calculation doesn't respect any provided normalization function, so we'd like to calculate all fill-related values (offset + length) by a given normalization function of model of active handle

Mockups or screenshots

Screenshot 2024-06-12 at 18 05 40

Implementation notes or ideas

No response

spdev3000 avatar Jun 12 '24 16:06 spdev3000