-
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
perf(material/form-field): resolve scrolling performance issues #27251
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with nits
src/material/form-field/_mdc-text-field-structure-overrides.scss
Outdated
Show resolved
Hide resolved
src/material/form-field/_mdc-text-field-structure-overrides.scss
Outdated
Show resolved
Hide resolved
Any updates on this? |
MDC was setting `will-change` on a couple of elements which caused significant scrolling performance issues on pages with a lot of form fields. These changes reset the `will-change`, because one of the elements wasn't being animated at all and the other one was only animating `transform` which is hardware-accelerated. Fixes angular#27249.
9106377
to
72c7f2c
Compare
MDC was setting `will-change` on a couple of elements which caused significant scrolling performance issues on pages with a lot of form fields. These changes reset the `will-change`, because one of the elements wasn't being animated at all and the other one was only animating `transform` which is hardware-accelerated. Fixes #27249. (cherry picked from commit f6e8584)
When `will-change` was removed in angular#27251, the form field lost its implicit stacking context which means that some of its descendants may be stacked on top of the container. These changes add an explicit `z-index` on the container to resolve the issue. Fixes angular#28708.
When `will-change` was removed in angular#27251, the form field lost its implicit stacking context which means that some of its descendants may be stacked on top of the container. These changes add an explicit `z-index` on the container to resolve the issue. Fixes angular#28708.
…28713) When `will-change` was removed in #27251, the form field lost its implicit stacking context which means that some of its descendants may be stacked on top of the container. These changes add an explicit `z-index` on the container to resolve the issue. Fixes #28708. (cherry picked from commit ce9a395)
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. |
MDC was setting
will-change
on a couple of elements which caused significant scrolling performance issues on pages with a lot of form fields. These changes reset thewill-change
, because one of the elements wasn't being animated at all and the other one was only animatingtransform
which is hardware-accelerated.Fixes #27249.
For reference, this is before:
https://github.com/angular/components/assets/4450522/923fbb24-4984-47ba-b87b-5645fd344bf6
And this is after:
https://github.com/angular/components/assets/4450522/26565ce1-662d-4c52-b3a3-a5a209027ddb