-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Font library: Under dedicated font library page #73630
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
Conversation
|
Size Change: +1.46 kB (+0.06%) Total Size: 2.57 MB
ℹ️ View Unchanged
|
fc35cb4 to
2991bf8
Compare
|
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's a few style glitches that are related to the "Page" component and not the font library. These are going to require normalizing the padding in all site editor pages (all viewports too probably) to 24px. I can take a look at this separately. Also related, the footer is not pushed to the bottom. |
|
Nice, we want this. It's also intriguing on several levels. There are a couple of little details, like misaligned padding and such here:
I tried a little web-inspecting to shore things up:
I sense there was an intention behind the padding of 8px, so an alternative we could do would be this:
That's the same 16px margin on the bottom and right, but zero margin left and top, to align flush with the menu and adminbar. One more thing, the title is "gutenberg-boot", I assume that'll become "Fonts < [site name]". This feedback is specific to the PR here in question. I do think there's a larger systematic approach for this, where we have only a single "Fonts" page, not several, but that requires a unification of concerns that is a larger undertaking. For that reason I'm assuming this is a situational change that brings the wonderful benefit of font management to the masses immediately, but that we are also able to consolidate pages at some point in the future. Is that possible? |
|
Oh, and can we bottom align the footer? |
|
@jasmussen check my previous comments :P I know about the spacing and alignment issues but they shouldn't be fixed adhoc here. There two main issues here and they both relate to the |
Good point, I didn't think about how to approach "page titles" in this new architecture yet. I'll have to think about it :) (and probably also address separately). For now, consider this is a long running (I mean like a week) experiment but I'd like to land things in steps. |
5e3372b to
4447533
Compare
|
Ok I made some updates here, I think this is looking good enough to ship. WDYT. |
|
Flaky tests detected in 4447533. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/20026540637
|
|
I still think you should do the padding changes I proposed here.
It's a "do or do not" thing: either we're embracing that this is a rounded frame, or we shouldn't have the frame at all. That translates to: have a visible padding, same as in the site editor. The present padding doesn't look intentional. |
|
Oh, and I still don't see a page title. That's a followup yes? |
Is this the padding thing that is missing? Because here I prefer to keep 24px because that's how all the tabs are aligned in http://localhost:8888/wp-admin/admin.php?page=gutenberg-boot so this would be inconsistent. But could be considered separately while keeping consistency. For the page title, it first needs an API that is addressed in #73847
I don't understand this and this is intentional and matches the new direction we're taking in http://localhost:8888/wp-admin/admin.php?page=gutenberg-boot |
|
It's supposed to be the same code, I'll check if there's a glitch in the single view, you need Joen's eagle eyes to see it. |
|
Is there a reason why this page is not available for hybrid themes? gutenberg/lib/experimental/fonts/load.php Line 14 in 95f4a6d
|
|
@mrleemon I'll take a look for now I started very conservative and I'll see about opening it more. Do "hybrid themes" have access to global styles today? |
|
@youknowriad Yes, via a |
|
@mrleemon I mean in the UI, can you edit it? |
|
I'd love an example of hybrid theme to test against btw, in case you know any theme in the repo that fits this description. |
|
@youknowriad Will test and report back. |







Related #70862
closes #57904
What?
Adds a new "Fonts" page to manage and install fonts in the WordPress admin. (Also adds the same page to the Gutenberg-boot experiment). This relies on the new routing infrastructure being iterated on.
Why?
The font library is currently only accessible within the global styles interface. This makes it available as a standalone page for easier access and management.
How?
Note
Testing Instructions
Navigate to the fonts page (under appearance) or the fonts page in http://localhost:8888/wp-admin/admin.php?page=gutenberg-boot-wp-admin&p=%2Ffont-list