-
Notifications
You must be signed in to change notification settings - Fork 6.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Outlined Mat-Form-Field label alignment issue when using matPrefix inside a dialog. #17963
Comments
I'm seeing this issue as well. See screenshot below. I also tried a plain text prefix instead of an icon and it still breaks. One thing I noticed: if I "inspect the element" and update the label text in Chrome's Developer Tools, the outline gets dynamically adjusted and displays properly. I haven't dug into the code, but my guess is there's a "recalculate outline border space" method that's being called too soon and needs to be called later after the DOM gets more fully loaded to include the prefix width.
|
Same problem here.
|
confirmed this is still an issue, here's an updated stackblitz: https://stackblitz.com/edit/components-issue-zmlg1j?file=app/app.module.ts |
Any updates on this issue? |
I'm also facing it. |
Closing as a dup of #15027 |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Reproduction
https://stackblitz.com/edit/components-issue-jglvgg
Steps to reproduce:
Expected Behavior
The label should not overlap and take into account matPrefix spacing in dialogs.
Actual Behavior
If you focus the different inputs you will notice that the field labeled Broken Input will overlap the outline border and have extra spacing before the label.
Environment
Notes
I noticed that there are several other issues relating to Label alignment on Outlined fields but I found those issues either lacking in substance or not relating to inputs in Dialogs.
The text was updated successfully, but these errors were encountered: