-
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
Font Library and Global Style revisions: inconsistencies around deleted font assets. #54222
Comments
@jasmussen What do you think of this?
|
Nice! I like it, simpler, clearer. The only thing is, we might want higher prominence of this one, either color or a more explicit warning icon or something, as it can be a pretty important thing. And of course to sketch out the modal that occcurs when you press "Review". There's also the question of whether this is a has-to-be-dismissed snackbar or something else. This isn't a notice I would want to disappear after n seconds, it should require your interaction, don't you think? |
Is this still planned to be addressed for 6.4? I'm not seeing any progress on it and we're trying to triage for beta 2 :) I know Fonts is a blessed task so I assume we might see some movement here eventually but would rather remove if it's not slated. I see it's part of stage 3 and my understanding is just stage 1 & 2 are for 6.4. |
@richtabor @jasmussen thanks for the snackbar mockups. In the font library modal, how should we display the information about missing fonts / variants? There may be multiple font families missing variants, and multiple variants missing per font family, that need to be either uploaded or installed via a provider. It would be helpful to show how both the library tab and individual font family tabs will appear in these states. |
Yes, that one is captured here: #49090. I agree it makes sense to fix that because we should not show weights to the user that aren't available.
I think the inconsistency in those screenshots is a separate issue. After I install Epilogue, I see the following: How did you get the style names (Bold, Extra Bold, etc) to show up instead of the numbered weight?
Thank you for the sketches. Some thoughts:
|
👍 I understand, I should clarify this is a different use case than the original issue from a technical POV, but some of the UI for addressing both issues will overlap.
In this version, how does the user differentiate between and take action (upload or install) on a font style that is missing, versus a font that that is intentionally omitted / not activated?
It seems we're talking about two different cases when a font is "missing":
To solve 1, my suggestion was allowing the user to delete the missing font style from their global styles. |
Is there a difference between how we deal with the two types of unavailable fonts that @jffng described? In one use case a font that is installed is broken (the referenced file is unavailable) and should be fixed somehow (either by deleting or uploading it). This has nothing to do with content, just configuration. I think this workflow is appropriate for that need. In another use case content references a font that isn't installed. That seems more akin to a "suggested plugin" and I would imagine in that case the font isn't "broken" but "suggested". Technically speaking, knowing that a configuration is "broken" seems easy enough, but to know that a particular font in the content is missing seems like a much different challenge (unless you're editing that block/content). |
For anything that references a font that isn't installed, the "Missing fonts" flow to me makes sense. In the case of "missing font weights", I don't think of that as a problem — if you install a font family with 14 weights, it's going to be a bit of a download for every user, at least until we can be smart about it and only enqueue the fonts used. But even then, it's useful to be prudent about how many weights you add. That's why I think the solution there is to only ever show the weights, here, that are actually available to you: |
This flow is looking good! I just have a question about this frame: What state is this showing? If it's showing what happens after I've installed the missing font, I wonder if the font style should be activated automatically. This would match the current behavior — font styles are automatically activated upon install. |
The idea there is that the font weight that's being used somewhere in the theme or pattern you just inserted, has been identified as available through your font sources (Google Fonts presumably), so we just take you to the font there and let you pick the missing weight. I think we can be flexible on that particular screen too, depending on what you unearth in implementation. If it feels more intuitive to show the missing weight already pre-selected, that could be good. If it is more intuitive to show only the missing weight, pre-selected, and with the "Missing Fonts" tab active, that could work too. What do you think? |
👍 Thanks for clarifying, I think there's enough here to get moving on the UI for this flow. |
I un-assigned myself from this, as I'm starting an extended leave on Monday and did not get to implement it (currently it is blocked by related development work). It's on the team's tasks to pick up when the font library refactor is complete. |
Based on the recent Editor Triage session, I'm removing this from the WordPress 6.5 Editor Task board. Hopefully, someone will still pick it up for 6.5, but it is not critical. Thanks! |
What?
There are potential inconsistencies between Font Library and Global Styles revisions.
These inconsistencies will arise if a user follows these steps:
In this case, the font family will be activated (restored in global styles), but it won't render appropriately because the font asset was deleted when uninstalled.
Questions:
The text was updated successfully, but these errors were encountered: