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

fix(material/form-field): Don't allow label to grow larger than input #29673

Merged
merged 1 commit into from
Sep 9, 2024

Conversation

mmalerba
Copy link
Contributor

@mmalerba mmalerba commented Aug 30, 2024

Fixes #26558

Note: the label may still briefly be larger than the form-field, during transition from resting to floating. Users may choose to add a CSS animation for this, but we don't want to bake it in because it may negatively impact performance.

@mmalerba mmalerba requested a review from a team as a code owner August 30, 2024 22:55
@mmalerba mmalerba requested review from crisbeto and andrewseguin and removed request for a team August 30, 2024 22:55
@mmalerba mmalerba added the G This is is related to a Google internal issue label Aug 31, 2024

@include _supports-max {
Copy link
Member

Choose a reason for hiding this comment

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

Heads-up that we inherited this _supports-max logic from MDC and reducing the specificity might be break-ey during the presubmit.

@mmalerba mmalerba added action: merge The PR is ready for merge by the caretaker target: patch This PR is targeted for the next patch release labels Sep 9, 2024
@mmalerba mmalerba removed the request for review from andrewseguin September 9, 2024 20:22
@mmalerba mmalerba merged commit 77051f8 into angular:main Sep 9, 2024
26 checks passed
mmalerba added a commit that referenced this pull request Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
action: merge The PR is ready for merge by the caretaker G This is is related to a Google internal issue target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug(mat-form-field): Form field with icon prefix or suffix makes long label overflow
2 participants