Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


Topic: Change range bubble color

Darryl free asked 3 years ago


How do I change the color of the bubble that appears above the range slider when someone clicks and drags it? The one with the number in it.

https://mdbootstrap.com/docs/standard/forms/range/#docsTabsOverview


Michał Duszak staff answered 3 years ago


Hello, it's possible using .range .thumb:after selector, for example:

.range .thumb:after {
    background: rebeccapurple;
}

Please see the snippet with the solution: https://mdbootstrap.com/snippets/standard/m-duszak/3253874#css-tab-view


Darryl free answered 3 years ago


Anything? I can see that the actual slider color can be changed via --

.form-range::-webkit-slider-thumb {
  background-color: #fff !important;
}
.form-range::-moz-range-thumb {
  background-color: #fff !important;
}
.form-range::-ms-thumb {
  background-color: #fff !important;
}

Kinanda Nugraha priority commented 2 years ago

Exactly what I'm looking for. Thanks!



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB Standard
  • MDB Version: MDB5 3.9.0
  • Device: PC
  • Browser: Chrome
  • OS: Win
  • Provided sample code: No
  • Provided link: Yes