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

Add range coloring #176

Closed
Thanood opened this issue May 3, 2016 · 3 comments · Fixed by #182
Closed

Add range coloring #176

Thanood opened this issue May 3, 2016 · 3 comments · Fixed by #182

Comments

@Thanood
Copy link
Collaborator

Thanood commented May 3, 2016

It's static atm.
☝️ 3. Mai 2016 02:27

@Thanood
Copy link
Collaborator Author

Thanood commented May 4, 2016

Seems I don't know how to color the thumb..
I've tried several variatons of:

md-range .range-field input[type="range"]::-webkit-slider-thumb, md-range .range-field input[type=range]::-moz-range-thumb, md-range .range-field input[type=range]::-ms-thumb {
  background-color: ${mdAccentColor} !important;
}

I've looked that up here:
https://github.com/Dogfalo/materialize/blob/master/sass/components/forms/_range.scss

@Ullfis
Copy link
Contributor

Ullfis commented May 14, 2016

Tested on Firefox and Chrome:

    <style>
        input[type=range]+.thumb {
            background-color: blue!important;
        }
        input[type=range]::-webkit-slider-thumb {
            background: blue;
        }
        input[type=range]::-ms-thumb {
            background: blue;
        }
        input[type=range]::-moz-range-thumb {
            background: blue;
        }
    </style>
    <div>
        <md-range md-value.bind="rangeValue"></md-range>
    </div>
    <div>
        Value: ${rangeValue}
    </div>

@Thanood
Copy link
Collaborator Author

Thanood commented May 16, 2016

Thanks, @Ullfis. I'm wondering where is the difference to what I did? Apart from not writing it in a single row. 😄

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 a pull request may close this issue.

2 participants