-
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
Fix item font family item height in the sidebar #63125
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: +9 B (0%) Total Size: 1.76 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.
I'd like to defer to the design team for final sign-off, but this looks like a good visual improvement to me 👍
Flaky tests detected in a60266a. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/10093000158
|
This PR makes the itemgroup items closer to 40px than 32, so that's good: A few things, but they may be more on the component side, so CC @tyxla:
But overall, the intent of this PR is right, I'm just not sure this is the right fix on the code level. Seems like this should be fixed in the component itself? |
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.
Code-wise, this looks good 👍 The variety we're seeing in the total height is not related to this PR.
If we need to always have the same item height, we might have to play with the padding math right there: If we're aiming at a particular item height, it might actually be more straightforward to not rely on padding at all, but rather to apply item height directly and center the contents vertically. cc @WordPress/gutenberg-components |
Agreed!
It looks like the As we're looking at stabilizing
|
If the |
Can you resolve the conflicts and merge this PR? In trunk, fonts are grouped by source. By the way, there is an issue proposing to revert this grouping: #63505 |
# Conflicts: # packages/edit-site/src/components/global-styles/font-families.js
Done! I'll enable auto-merge. |
Sorry, I missed it, but don't we need to change the height of the custom fonts? Here it is: |
Thanks @t-hamano! I missed it too, I think I managed to push the change just before the auto-merge happened 👀 |
What?
Fix item font family item height in the sidebar
Why?
To match the other components height
How?
Setting the large prop in the component
Screenshots or screencast