HTML
<div id="wrapper"> <md-input-container> <input mdInput [placeholder]="'common.password' | translate" type="password" formControlName="password" (change)="onPasswordChange($event.target.value)" required validate-onBlur/> <md-hint *ngIf="frmLoginInfo.controls.password.pristine" class="s-text-caption s-hint">{{ 'signup.pwdRule' | translate }}</md-hint> </md-input-container> </div>
CSS
#wrapper .mat-input-wrapper{padding-bottom: 0px !important;}
Important .mat-input-wrapper must be a .mat-input-wrapper child - from your example, I don't know where this class came from
After your message update, I think it should work like this: #forceStyle > .mat-input-wrapper{padding-bottom: 0 !important} - should work even without important , but just to be sure.
Make sure you clear the cache and even restart the application, because sometimes changes do not load
source share