-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
report: snapshot/timespan sticky header #13617
Conversation
|
||
// Mutate at end to avoid layout thrashing. | ||
this.highlightEl.style.transform = `translate(${offset}px)`; |
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.
The above comment applied to this line. Is there not layout thrashing with these changes? I guess not because you made CSS changes to replace the manual transform setting?
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.
Can you confirm w/ the performance panel that scrolling doesn't result in tons of style recalc?
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.
There is some small style updates, but those existed before this change.
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.
Paul reminded me... before, this highlighter was animated between these states. Now that's lost.
idk if we care tbh
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.
also we noticed that clicking the gauges at the top doesnt always update highlighter correctly, viewport size seems to make it vary
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.
The highlight is based on whichever category is in the center of the viewport. For snapshot, performance category can be so small that it will never be in the center.
Honestly, one solution could be to make Accessibility the first category for snapshot reports. Performance isn't important enough to be first for snapshot reports IMO.
Individual snapshot/timespan reports were emitting a bunch of errors because of the sticky header. I also added category labels to the header.
Sample
Mocks: Go to UXR prototype on the sidebar
#11313