Alignment of Prefix icon when combined with Help Text.

Topic: Alignment of Prefix icon when combined with Help Text.

pleach asked 2 years ago

Expected behavior Prefix icon should be within the field Actual behavior Icon is mis aligned Resources (screenshots, code snippets etc.)

<div class="md-form md-outline input-with-pre-icon mt-sm-4">
            <i class="fas fa-lock  input-prefix"></i>
             <input type="password" id="password1" class="form-control">
             <label for="password1">Password</label>
             <small id="passwordHelp" class="form-text text-muted">8 - 50 characters including one upper case letter, one lowercase letter one digit and one special character.</small>

enter image description here

Marta Szymanska staff pro premium answered 2 years ago


we will fix that bug in our package as soon as possible, but for now, just for your outline input with help text, you can apply code from my snippet to resolve the problem in your project now:

Best, Marta

pleach answered 2 years ago

Thanks, the workaround works the simple case i.e one line of help text.

Marta Szymanska staff pro premium commented 2 years ago

Yes, I added this workaround for your above specific case. If you need more help with other cases, please create a snippet and paste it here and I'll try to help you.

Please insert min. 20 characters.


Specification of the issue
  • User: Free
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: 4.15.0
  • Device: Macbook Pro
  • Browser: Safari & Chrome
  • OS: macOS
  • Provided sample code: No
  • Provided link: No