How can I invert the track of the slider?

Discussão em 'Angular' iniciado por gauperaa, Março 23, 2025.

  1. gauperaa

    gauperaa Guest

    In our design we want the user to select a value between 0 and 20 and have the selected range be that value and up to 20. In the current implementation of the Angular Material slider component, the values from 0 and up to the value selected are highlighted (active track). Is it possible to reverse this?

    I did consider trying to reverse the colors in the css, so that the inactive track would look like the active, but the inactive has some opacity applied to it, and I don't know how to adjust that. Anyway, that would be more of a hack.

    Thankful for any insight on this.

    I've looked at the API and couldn't find any way to reverse the track

    Continue reading...

Compartilhe esta Página