-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Font library: Update the spacing in the font collection panel #59357
Conversation
@matiasbenedetto I've tried to fix the layout shift in the font collection panels but there is now a visible shift in the width of the category selection instead. |
Size Change: +6 B (0%) Total Size: 1.71 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.
@matiasbenedetto I've tried to fix the layout shift in the font collection panels but there is now a visible shift in the width of the category selection instead.
That's unrelated to this PR, and it is caused by different contents (different categories) in the categories select component. That's out of the scope of this PR.
Regarding the problem this PR is about, it is working as advertised, so I'm approving it.
Thanks for the fix.
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. |
…#59357) Co-authored-by: carolinan <poena@git.wordpress.org> Co-authored-by: matiasbenedetto <mmaattiiaass@git.wordpress.org>
I just cherry-picked this PR to the update/packages-6.5-rc1 branch to get it included in the next release: df0c480 |
…#59357) Co-authored-by: carolinan <poena@git.wordpress.org> Co-authored-by: matiasbenedetto <mmaattiiaass@git.wordpress.org>
What?
Follow-up to #59205 #59036
Adjusts the spacing at the top of the font collection panel, to account for the height of the dropdown menu button.
Why?
When you switched between the Google Fonts panel and another font collection panel there was a visible layout shift at the top of the panel.
How?
Places both the heading and the description inside a VStack inside the existing Hstack, which means that the height of the dropdown menu button no longer affects the vertical position of the two texts.
Testing Instructions
Switch between the two font collection panels: Google Fonts and "My Custom Collection".
Screenshots or screencast
Before:
2024-02-23.13-02-11.mp4
After:
font-library-collection.mp4