Skip to content
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

Long mat-hints in Form Fields invade other form fields. #13485

Closed
joshvanallen opened this issue Oct 8, 2018 · 4 comments
Closed

Long mat-hints in Form Fields invade other form fields. #13485

joshvanallen opened this issue Oct 8, 2018 · 4 comments
Assignees
Labels
area: material/form-field design This issue needs design work before implementing forms This issue is related to Angular Forms integration P5 The team acknowledges the request but does not plan to address it, it remains open for discussion

Comments

@joshvanallen
Copy link

Bug, feature request, or proposal:

Bug

What is the expected behavior?

Prevent mat-hints from invading other inputs.

What is the current behavior?

Currently, mat-input-subscript is position absolute which results in long mat-hints invading other inputs. I believe there were good intentions behind this but not too sure of them.

What are the steps to reproduce?

https://stackblitz.com/edit/angular-material2-issue-rva4vq

Have an mat-hint in a mat-form-field that have at least 300 characters in text.

What is the use-case or motivation for changing an existing behavior?

My use-case is building a dynamic form tool, driven entirely by the users of the system. Their description can be very long because to fill out a field might be very difficult.

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

From my understanding, besides changing the overall class name from input-container to form-field, this has been part of the style sheet from the beginning.

@josephperrott josephperrott added P5 The team acknowledges the request but does not plan to address it, it remains open for discussion design This issue needs design work before implementing forms This issue is related to Angular Forms integration labels Nov 1, 2018
@totszwai
Copy link

Is there any workaround for this other than nasty CSS hack directly on individual mat-hint component...?

@Totati
Copy link
Contributor

Totati commented Nov 20, 2020

The same happens with mat-error, we overcome this issue with brief messages and an icon with popup explaining the details.

@amysorto amysorto self-assigned this Jun 27, 2022
@amysorto
Copy link
Contributor

Duplicate of #4580

@amysorto amysorto marked this as a duplicate of #4580 Jun 27, 2022
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Jul 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area: material/form-field design This issue needs design work before implementing forms This issue is related to Angular Forms integration P5 The team acknowledges the request but does not plan to address it, it remains open for discussion
Projects
None yet
Development

No branches or pull requests

6 participants