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(field): fixed a bug where the width could collapse while the inset label animation is executing #730

Merged
merged 1 commit into from
Nov 7, 2024

Conversation

DRiFTy17
Copy link
Collaborator

@DRiFTy17 DRiFTy17 commented Nov 1, 2024

PR Checklist

Please check if your PR fulfills the following requirements:

  • Tests for the changes have been added/updated: Y
  • Docs have been added/updated: N
  • Does this PR introduce a breaking change? N
  • I have linked any related GitHub issues to be closed when this PR is merged? N

Describe the new behavior?

When fields (text-fields for example) are used within layouts that collapse their content, such as flexbox, the field width could collapse down to the min content width while the inset/floating label animation is executing. This change ensures that the internal input container locks its width to the current width before the animation begins to avoid the collapse, and then removes the locked width after the animation completes.

Additional information

Given that this is only temporary while the animation executes, and there is no reliable CSS-based solution to it without restructuring the field component to avoid using position: absolute, this should be adequate.

@DRiFTy17 DRiFTy17 added patch Increment the patch version when merged skip-release Preserve the current version when merged labels Nov 1, 2024
@DRiFTy17 DRiFTy17 requested a review from a team as a code owner November 1, 2024 14:58
Copy link

stackblitz bot commented Nov 1, 2024

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@DRiFTy17 DRiFTy17 merged commit c37b124 into main Nov 7, 2024
13 checks passed
@DRiFTy17 DRiFTy17 deleted the fix/field-inset-input-collapse branch November 7, 2024 16:04
Copy link
Contributor

github-actions bot commented Nov 7, 2024

🚀 PR was released in v3.3.2 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
patch Increment the patch version when merged released This issue/pull request has been released. skip-release Preserve the current version when merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants