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: MDBPopConfirm has a btn-primary button class always applied to it

clickstudioltd priority asked 2 years ago


In dark theme, I wish to change the button color for MDBPopConfirm to something other than primary, but there is always a btn-primary already applied to the button class so when I use for example a btn-danger class it doesn't work. This works fine in the light theme probably because of the precedence of the class names, but still there should be either a buttonColor attribute for the component to specify it that way or there shouldn't be a default class applied to it.

enter image description here

As you can see there is a red glow from the btn-danger class but the actual color is btn-primary.


Wojciech Staniszewski staff commented 2 years ago

You are right, we will fix that. For now, you can try to add a custom class with !important background color style. And try to apply it to the button.



Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Opened

Specification of the issue

  • ForumUser: Priority
  • Premium support: Yes
  • Technology: MDB React
  • MDB Version: MDB5 5.0.0
  • Device: PC
  • Browser: Mozilla Firefox
  • OS: Windows 10
  • Provided sample code: Yes
  • Provided link: No