Topic: Select with option groups hover color?

SGalway pro asked 4 years ago


How do I change the option hover color in this example?

https://mdbootstrap.com/snippets/jquery/sgalway/1283710

I need to make sure that the option group headings remain disabled with no hover effect. I have tried a few things in css with no success.

Thanks

Steve


SGalway pro answered 4 years ago


Worked it out.

 .dropdown-content li.active, .dropdown-content li:hover {
background-color: #4285f4;

}

I was using !important; which was over rideing the disabled state of the optgroup titles.



Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Resolved

Specification of the issue

  • ForumUser: Pro
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: 4.8.7
  • Device: all
  • Browser: all
  • OS: all
  • Provided sample code: No
  • Provided link: Yes