Open kaspnilsson opened 3 years ago
cc @mmalerba
The floating label is a known issue that we have a PR for here: https://github.com/angular/components/pull/23005, we're just trying to resolve some presubmit issues in google3 so we can get it in.
The fact that the form-field doesn't resize in response to the font size is actually WAI. The old version of form-field extrapolated from the spec to support that, but it was never a real thing in the spec. The spec has since added support for density which is the officially supported way to change the height of the form-field (you can use @include mat.mdc-form-field-density(...)
to change it).
Affected component[s]: Form field
Observed behavior:
Outlined input's floating label does not comply with custom typography -- only applies to MDC component.
In addition, MDC component does not shrink in height the same way the non-MDC component does -- not sure why this would be
To actually reproduce this, you unfortunately need to create two separate modules and export two separate components so the
[matInput]
directives don't collide, but this is the gist of the repro case:Code:
Screen recording:
https://user-images.githubusercontent.com/5749398/131729202-5c30d0b1-8a58-4b43-95ae-adc931757455.mp4
Expected behavior: