Topic: Why does not the hover effect of dropdown's items work like the example?

Hyunsung Kim free asked 5 years ago


Expected behavior enter image description here

Actual behavior enter image description here

It is still the title. Why does not the hover effect of the dropdown-item appear in the example?


Jakub Mandra staff answered 5 years ago


Hello,

I'm sorry, images are missing and I'm not able to fully discover the problem.

But thanks for reporting, I see that we have to update the dropdowns documentation because there are discrepancies

You mean that some dropdowns have colorful hover effect and others are just grey?

To change the hover effect color, you need to simply define it in <MDBDropdownMenu> like so:

       <MDBDropdownMenu color="indigo">
          <MDBDropdownItem>Action</MDBDropdownItem>
          <MDBDropdownItem>Another Action</MDBDropdownItem>
          <MDBDropdownItem>Something else here</MDBDropdownItem>
          <MDBDropdownItem>Separated link</MDBDropdownItem>
        </MDBDropdownMenu>

Best,

Jakub



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 React
  • MDB Version: 4.11.1
  • Device: PC
  • Browser: Google Chrome
  • OS: Windows10
  • Provided sample code: No
  • Provided link: No
Tags