Skip to content

fix(material/form-field): add min-height to mdc-text-field for textarea consistency #30831

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

Conversation

mistrykaran91
Copy link
Contributor

When textarea is resized to small height it overlaps the content, this fix set's the min-height

Fixes #30089

@mistrykaran91 mistrykaran91 requested a review from a team as a code owner April 9, 2025 11:03
@mistrykaran91 mistrykaran91 requested review from mmalerba and andrewseguin and removed request for a team April 9, 2025 11:03
…ea consistency

When textarea is resized to small height it overlaps the content, this fix set's the min-height

Fixes angular#30089
@mistrykaran91 mistrykaran91 force-pushed the fix/set-min-height-for-textarea branch from acf1fa9 to 429fb52 Compare April 9, 2025 11:08
@mistrykaran91 mistrykaran91 changed the title fix(form-field): add min-height to mdc-text-field for textarea consstency fix(material/form-field): add min-height to mdc-text-field for textarea consistency Apr 9, 2025
Copy link
Contributor

@mmalerba mmalerba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is unfortunately impossible to land. There are many apps that rely on intentionally making the form-field smaller than this. A more feasible fix for the bug might be to allow specifying a min height as an option to the autosize.

@mmalerba mmalerba closed this Apr 15, 2025
@mistrykaran91 mistrykaran91 deleted the fix/set-min-height-for-textarea branch April 15, 2025 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug(MatFormField): textarea can be reduce to a smaller height than it's content
2 participants