-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Tabs: restore vertical alignment for tabs content #66215
Conversation
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
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.
This seems to introduce a regression with tabs that are wider than the icons.
@@ -234,6 +234,9 @@ export const Tab = styled( Ariakit.Tab )` | |||
|
|||
export const TabChildren = styled.span` | |||
flex-grow: 1; | |||
|
|||
display: flex; | |||
align-items: center; |
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.
b43b8d8
to
c780c0d
Compare
@tyxla feedback addressed:
|
Size Change: -56 B (0%) Total Size: 1.77 MB
ℹ️ View Unchanged
|
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, tests well 👍 🚀
Thanks @ciampo 🚢
@@ -46,9 +46,3 @@ | |||
.block-editor-block-inspector__no-block-tools { | |||
border-top: $border-width solid $gray-300; | |||
} | |||
|
|||
.block-editor-block-inspector__tab-item { |
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 for the cleanup 👍
@@ -9,21 +9,18 @@ export const TAB_SETTINGS = { | |||
title: __( 'Settings' ), | |||
value: 'settings', | |||
icon: cog, | |||
className: 'block-editor-block-inspector__tab-item', |
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.
Good riddance 👍
Co-authored-by: ciampo <[email protected]> Co-authored-by: tyxla <[email protected]>
What?
This PR re-introduces some layout styles to
Tabs.Tab
so that the tab contents are vertically centeredWhy?
Fixing an involuntary regression
How?
By re-adding flexbox styles to the Tab container
Testing Instructions
Note: the centering fix can't be seen when the tabs only contain text, as that's already working as expected.
Testing Instructions for Keyboard
Screenshots or screencast