-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
ui: improve tabbar styling #10822
ui: improve tabbar styling #10822
Conversation
The commit fixes the tabbar styling so that no shift happens when switching tabs (inactive/active). The fix includes: - adding a "transparent" border for inactive tabs. - removing extraneous code that made file-icons and the close icon shift when clicked. Signed-off-by: vince-fugnitto <vincent.fugnitto@ericsson.com>
.p-TabBar.theia-app-centers .p-TabBar-tab.p-mod-current > .theia-tab-icon-label > .p-TabBar-tabIcon { | ||
margin-top: -2px; | ||
} | ||
|
||
.p-TabBar.theia-app-centers .p-TabBar-tab.p-mod-current > .p-TabBar-tabCloseIcon { | ||
margin-top: 0px; | ||
} |
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.
@msujew I'm not sure why the changes were necessary for the current tab but it caused the shifting of the file-icon
and the close
to occur:
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.
Interesting, that only seems to happen on Chrome. I tested this (and build the original PR) on Firefox, where these lines of CSS fixed the shifting issue. But it seems like they introduced shifting in Chrome
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.
Looks good to me 👍
What it does
The pull-request fixes some user-experience issues related to the tabbar styling.
Previously, when cycling through the tabs a shift would occur with the tab, file-icons, and close icons.
The pull-request addresses these problems by:
tab-styling.mp4
How to test
Review checklist
Reminder for reviewers
Signed-off-by: vince-fugnitto vincent.fugnitto@ericsson.com