Topic: Width or styling of select scrollbar

hraud priority asked 2 years ago


We are getting several customers contacting us, because they don't see the scrollbar on our select dropdowns and don't realize that they can scroll. The existing scrollbar is very subtle. Is there some way to override the styling of the scrollbar to make it more visible, perhaps by making it wider and/or a different color?

enter image description here


hraud priority answered 2 years ago


That works perfectly. Thank you!


Michał Duszak staff answered 2 years ago


You can use following selectors:

.select-options-wrapper::-webkit-scrollbar {
    width: 8px;
}

.select-options-wrapper::-webkit-scrollbar-thumb:vertical {
    background-color: pink;
}

Here is a snippet: https://mdbootstrap.com/snippets/standard/m-duszak/3921711#css-tab-view



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: Priority
  • Premium support: Yes
  • Technology: MDB Standard
  • MDB Version: MDB5 4.0.0
  • Device: Laptop
  • Browser: Chrome
  • OS: Windows 11
  • Provided sample code: No
  • Provided link: No