I recently made the switch from Angular Material to Angular Material MDC in preparation for upgrading to Angular 17 from version 15. However, I've noticed that some styles are now broken.
One issue I'm facing is a significant padding between the input text and the error messages. I discovered that the problem lies with the Angular Material MDC mat-mdc-form-field-error-wrapper, which uses display: inline-block with ::before. After experimenting, I found that replacing inline-block with just inline results in a much more visually appealing layout.
The code snippet causing the issue is:
.mat-mdc-form-field-bottom-align::before {
content: "";
display: inline-block;
height: 16px;
}
Could anyone shed light on why this change improves the appearance? And what potential drawbacks should I be aware of if I were to replace
display: inline-block;
with
display: inline;
in order to achieve my desired design?