Open annezazu opened 11 months ago
I would expect this command would available in the Site Editor, opening the Styles > Typography panel, with the Fonts modal open.
@annezazu It strikes me that if the Font Library is going to land in 6.5 - that this would be a good one to squeeze in as well.
Agreed! @mikachan & @matiasbenedetto for consideration.
Thanks for the ping. It would be very nice to add this :+1:
Agreed, this would be a super cool addition!
I had a try at this, but was unable to find a way to open not only the modal, but also the typography panel.
In comparison, (simplified) the custom CSS, stylebook and preference modal commands work because these are separate screens with their own paths.
Thanks for taking a look at this, @carolinan. Maybe we need to use a different kind of trigger to open the Font Library modal, something that's more similar to the preference modal. (I say all this without looking into the details yet.)
Just to be sure, is this command expected to open the Font Library modal itself, rather than opening the Global Styles typography panel? If so, I think we need to manage the modal's state with a datastore. I'm testing it with #58350.
is this command expected to open the Font Library modal itself, rather than opening the Global Styles typography panel?
Yes, I think opening the modal makes the most sense. Thanks for testing a solution for this! Managing the modal's state with the datastore sounds like a good step forward.
I think it should do both.
I think it should do both.
After some simple hacking and testing of existing command actions, it seems possible to open the Typograph panel with a command action.
I would like to proceed with #58350.
https://github.com/WordPress/gutenberg/assets/54422211/81b76803-2979-47ea-9ca6-07a8d6d474ae
I think it should do both.
Agreed.
As seen in https://github.com/WordPress/gutenberg/pull/58350#discussion_r1470690520, refactoring (removing) the context is necessary to move this issue forward.
I have submitted https://github.com/WordPress/gutenberg/issues/58428, but if anyone is interested, please join.
In order to add the command using the ideal approach, #58428 would need to be resolved first. This command is not originally on the roadmap and I don't think it's essential to include it in WP6.5, so I'll punt it to 6.6.
Today I was playing around looking for the modal in 6.5 beta 2 ... And I didn't easily find it. Now, does this mean that the font library is only here for FSE themes? Is it ever coming to non FSE themes?
Also, I expected it to be in the block options but don't know if that's the best idea.
Hi folks, We are only one week away from the Beta 1 cut-off date for WordPress 6.6. This issue hasn’t seen any movement in a while, so we (the editor triage leads of the 6.6 release) have decided to remove it from the WordPress 6.6 Editor Tasks project board.
Pulled from the FSE Outreach Program's Final Touches call for testing:
In checking, there is not a command in place for opening the font management and it seems wise to add in. At the minimum, a "Open font management" command, similar to "Open styles".