-
Notifications
You must be signed in to change notification settings - Fork 361
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
Update theme.json to follow latest spec #2480
Conversation
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.
🤔 That is super-weird. I wonder if the variables need to be defined differently if custom units is active. |
I pushed a quick fix for this. Turns out that Seedlet doesn't actually provide the user with all of the font sizes we use for headings. Since these values need to match up with what's declared in the parent theme's |
@jffng Actually, I overlooked a totally obvious solution for the near term: We should just remove those variables and let the standard version of Seedlet continue to do its thing. 😄 I think that's fine for now — there's no need to generate custom sizes there since, since we're not actually mapping the H1 and H2 blocks to custom sizes (via I did this in baeb9bf, and this PR should now be working. |
Just gave this a spin on 9.1.1 and the styles are failing to render. This is likely because I'm getting invalid values for the presets generated by the global styles mechanism: I checked the theme.json, and there are no json errors. Some kind of warning system / error reporting between gutenberg / global styles and the theme is really important because it's challenging to debug without it. cc @nosolosw |
👋 Ah, so I've noticed that all presets added use the
Regarding reporting errors: how would you like it to work? It occurs to me that one possibility would be to add a command along the lines of |
It would be useful to see errors reported in the browser console. Maybe if some kind of debugging flag is enabled, the entire output of |
😄 Good catch! I think I missed this change when the new format was declared initially. I've updated this in 52a7bbb.
Yeah, the console would be excellent if possible. But really... anywhere is good — anything would be an improvement over these silent fails. |
oh, was there any issue updating the experimental-theme.json I can help with? I see that its format wasn't fixed https://github.com/Automattic/themes/blob/trunk/seedlet-blocks/experimental-theme.json |
@nosolosw — I think we're good. This was closed in error when @scruffian deleted the master branch. We'll re-open and point it to |
Opened here: #2659 Sorry everyone |
Thanks! |
Updates the
experimental-theme.json
file to follow the latest spec.This mostly just ensures that the variables are generated — the
add_theme_support
settings in Seedlet's functions.php still ensure that these settings show up in the Global Styles sidebar.