-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Try: Improved editor inserter tabs styles #61974
base: trunk
Are you sure you want to change the base?
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. |
Size Change: -90 B (-0.01%) Total Size: 1.74 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.
To be fair, I prefer how it was before.
From what I understand, we try to keep the tabs occupying all the horizontal space, which made even more visual sense when the X button wasn't there. Even with the X button though, it's OK for them to be wider and occupying more space, there's not much else to do with that space and folks are likely used to have larger inserter category tabs.
This is something @WordPress/gutenberg-design should have a good sense about.
Thanks for your attention to detail. There's an ongoing conversation about these changes, maybe @richtabor has more info. |
Thanks for the visuals, very helpful @richtabor. I think I strongly prefer the first option, personally. |
Yes, and I reported the inconsistencies in #62025 To me, tabs should have the same alignment / layout everywhere. Worth reminding the X close button is candidate to be removed from there, as it breaks the ARIA tabs pattern. See #59013 / #58940 As per @DaniGuardiola proposal in this PR, I support the left alignment option. To me, it doesn't make much sense attempting to have a balanced equal width because the length fo the tabs content is not predictable. It may look niced in English, which usually has shorter strings, but it's a bit pointless with longer / uneven strings in other languages. |
If the consensus is in favor of the left-aligned instead of balanced-width tabs, I'm fine with that 👍 |
This is the aim of the component I am proposing in #62343 |
The styles of these tabs look broken to me, with weird padding. Looks unnaturally stretched out and each of the tabs is uncentered:
chrome_DItpzeDWwt.mp4
After removing these custom styles, it looks much better with the default sizing IMO:
chrome_IBPPwFshCW.mp4