The MDC (https://github.com/material-components/material-components-web) based input components in angular material (https://material.angular.io/) take up a lot of space above and below.
I tried to reduce the theme desinsity to -2 but nevertheless, the height of the inputs is too much.... But even so padding-top is 12px, padding-bottom is 12px.
If I naively try to overwrite the padding (and so on) in the CSS classes, it always has an effect so that various inputs no longer look correct (e.g. textarea, date input, autocomplete)
How to change this consistently across the different input types and reduce the space?
if your matInput is included in a mat-grid-list you can use this class:
It uses the ::ng-deep method that is deprecated but I don't know other methods
if it's not included in a grid-list you can take advantage of part of it