color-js / elements

WIP
13 stars 1 forks source link

`tooltip="progress"` on `<color-slider>` (and other related elements) inherits `min`, `max`, and `step` from the slider #16

Closed DmitrySharabin closed 5 months ago

DmitrySharabin commented 6 months ago

Instead of setting them to 0, 100, and 1, respectively.

We can move the slider thumb and see the correct result in the tooltip, but changing the progress manually might be impossible.

Testcase

<color-slider
    space="oklch"
    stops="oklch(85% 50% 80), oklch(65% 50% 180)"
    min="-50" max="50" value="20"
    tooltip="progress"
></color-slider>