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: MDBInput checkbox margin

Roman Mzh priority asked 5 years ago


Actual:

MDBInput sets my-2 to a wrapping div of checkbox by default. And it is not possible to overwrite it using m- classes.

Expected:

No margin helper class by default. Margin should be set without !important or not present at all.


Aliaksandr Andrasiuk staff answered 5 years ago


Hi,

You are right, it's shouldn't be added by default.

We will fix it in the near future.

If you want to set vertical margins to 0 you can use css :

.form-check{
    margin-bottom: 0 !important;
    margin-top: 0 !important;
}

Best regards.



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 React
  • MDB Version: 4.18.0
  • Device: pc
  • Browser: chrome
  • OS: ubuntu 18.04
  • Provided sample code: Yes
  • Provided link: No