-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Contain the tabs within the tabbar (do not use translation transform) #13671
Conversation
Thanks for making a pull request to jupyterlab! |
37d1877
to
66bf3e2
Compare
please update snapshots |
Galata snapshots updated. |
Kicking CI (#13505). |
Looks like it should indeed be fine at first glance. Adding to the 3.6 milestone for consideration. |
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.
Thanks @krassowski
@meeseeksdev please backport to 3.6.x |
Owee, I'm MrMeeseeks, Look at me. There seem to be a conflict, please backport manually. Here are approximate instructions:
And apply the correct labels and milestones. Congratulations — you did some good work! Hopefully your backport PR will be tested by the continuous integration and merged soon! Remember to remove the If these instructions are inaccurate, feel free to suggest an improvement. |
…not use translation transform)
…r (do not use translation transform)) (#13702) * Backport PR #13671: Contain the tabs within the tabbar (do not use translation transform) * Update Playwright Snapshots Co-authored-by: Michał Krassowski <5832902+krassowski@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
References
This is a prerequisite for full adoption of
contain: strict
jupyterlab/lumino#504.Briefly, the current tab was using
transform: translateY()
style exceeding its box which means that we could not contain painting for it (i.e. it would have no effect).Code changes
::after
pseudo-element rather than existing opt-out approach (element which should not have it is resized up and shifted down to cover the common border)..lm-TabBar-tab.lm-mod-current:hover
)User-facing changes
Removes the jitter of the tab title when switching the active tab.
Old (see how "Launcher" title moves down upon activation):
New (see no title movement upon activation):
Backwards-incompatible changes
I think it can be safely backported, but would appreciate a second opinion.