-
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
bug(mat-form-field): label is not within the border gap for outline appearance #23863
Comments
The position of the outline gap depends on the size of the prefix, but we weren't set up to update it when that happens. Fixes angular#23863.
I've pushed #23869 which will fix this. Until the fix is released, you can also resolve it on your end by calling |
The position of the outline gap depends on the size of the prefix, but we weren't set up to update it when that happens. Fixes angular#23863.
) The position of the outline gap depends on the size of the prefix, but we weren't set up to update it when that happens. Fixes #23863.
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. |
…ular#23869) The position of the outline gap depends on the size of the prefix, but we weren't set up to update it when that happens. Fixes angular#23863.
Reproduction
https://stackblitz.com/edit/components-issue-jbhqbn
Modify the initial value of
countryCode
insrc/app/example-component.ts
to see that the gap is moving based on the initial prefix length (e.g.""
and"+12345"
).Now changing the country to USA:
Expected Behavior
When the input is focused, the label and the gap in the outline are properly aligned in the upper left corner.
Actual Behavior
The gap is placed based on the initial prefix while the label is placed based on the current prefix so if the initial prefix length is not the same as the current prefix length, the label will appear misaligned.
Environment
The text was updated successfully, but these errors were encountered: