MDB form-control overides Bootstrap form-control-sm CSS


Topic: MDB form-control overides Bootstrap form-control-sm CSS

pro asked 7 years ago

hi there I have a simple field:
<input class="form-control form-control-sm" type="text" placeholder=".form-control-sm">
i have found that the MDB css overrides the Bootstrap CSS (which makes sense), but when there is a form-control-sm - the "-sm" styles should still take effect, and they are being overridden pls see image attached - you will see what i mean. https://ibb.co/b0aFOG Using 4.4.1    

Marta Szymanska staff pro premium answered 7 years ago

Hi, this is because we have our own class for smaller input - .form-sm and we don't use Bootstrap one. Best, Marta

pro commented 7 years ago

in this class for the actual field, or the form? whats the exact usage? thanks

Marta Szymanska staff pro premium answered 7 years ago

Hi, look at here: https://mdbootstrap.com/components/inputs/ on the "small input" section. Best, Marta
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
  • User: Pro
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: Yes
  • Provided link: No