Range input: Add a workaround to enable track color#37499
Range input: Add a workaround to enable track color#37499louismaximepiton wants to merge 6 commits into
Conversation
ffoodd
left a comment
There was a problem hiding this comment.
A few questions here and there! Regarding content, I think the --value custom property should be mentionned somewhere since it's what does the trick so affordable.
Any thought?
|
Regarding the |
|
Do we still want this @julien-deramond? |
Might be some things to tweak here and there in this PR but on my side I like the idea to provide a solution for folks out there totally optional that isn't embedded directly within the library. |
|
Tried rebasing this and making it work again, but ran into an issue with the custom color not working. Might've been a bad rebase or merge, but want to take a crack at it @louismaximepiton? Happy to see this section added. |
|
This is really great! I'd like to see this added to the site too (and maybe added to v6 Bootstrap JS?). One thing to note though, for disabled ranges using this method you need to add CSS to override it. I just used this but there might be a better way: .form-range:disabled {
filter: grayscale(100%);
} |
|
This is now coming in v6. #42525. |
Description
Wanted to add a workaround to add some color on the track part on the range input. I would be fine if this is not planned in Bootstrap, but I couldn't spot any issue/PR about it.
Motivation & Context
Could help folks to implement this functionnality.
Type of changes
Checklist
npm run lint)Live previews
Related issues
NA