Comments (7)
@mrfoxtalbot It's a little of both really, but I think it probably lands more on the theme side than the Gutenberg side? But it seems to affect a lot of themes. I've been able to replicate using Twenty Twenty-Four and Infield just now.
The problem (as far as I can tell anyway) comes down to CSS specificity: the Gutenberg stylesheets are more specific with their selectors for the default body font than the theme is. So, theoretically, any theme that uses just plain old body
as a selector instead of :where(body)
would most likely be fine, as long as it comes later in the Cascade. But it seems like a lot of our themes are using :where(body)
for... reasons that I assume sounded good at the time, but I can't fathom what they would be.
from wp-calypso.
Also confirmed it's an issue on Simple sites as well as Atomic. it's especially egregious on the Free plan because changing that font will prompt you to upgrade in order to unlock custom styles that you can't even see 😬
from wp-calypso.
Support References
This comment is automatically generated. Please do not edit it.
- 8056292-zen
- 8063771-zen
from wp-calypso.
same issue in 8063771-zen, using the Byrne theme.
it looks like what's happening behind-the-scenes (on this user's site anyway) is that editor-experimental.css
and index.css
are overriding the body
font choice set in the editor -- because declaring just body
is more specific than :where(body)
, which is what the <style>
tag is using.
:where(body)
seems like an unnecessarily-complicated way to try and select this element anyway, unless we're trying to give it 0 specificity for some reason...
![Screenshot 2024-04-18 at 12 43 49 PM](https://private-user-images.githubusercontent.com/34486913/323708647-6618dfc2-5f37-46dc-85a4-61ea0e7df9fe.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTcxMTc1NTQsIm5iZiI6MTcxNzExNzI1NCwicGF0aCI6Ii8zNDQ4NjkxMy8zMjM3MDg2NDctNjYxOGRmYzItNWYzNy00NmRjLTg1YTQtNjFlYTBlN2RmOWZlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA1MzElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNTMxVDAxMDA1NFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWM0Mzk1ZjI3MzVjZTViMTIwZDk3ZDdhMmMyYjkxMTNkMmY1YmE3ZGYyNGFmMWVkMDNlYTYyMDExNGI1NTM1NzYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.-IbFPUC2sMasFdeCV3VubT50bpkzwUjuSzPaLHAEf7k)
from wp-calypso.
Thank you for the additional details, @tvolpert. Just to make sure I am following you, does this mean the bug is theme-dependent or does it have to do with the way we implement Gutenberg on dotcom?
If it is theme-specific, we should transfer it to the /themes remo and tag the affected themes.
Thank you!
from wp-calypso.
@jorpdesigns, were you able to reproduce this (on simple or AT) using Twenty Twenty-Four or any other of the bundled themes?
from wp-calypso.
Thank you for the additional testing @tvolpert.
I did a quick test and this is NOT happening on a self-hosted site (with or without the Gutenberg plugin) using Twenty Twenty-Four... so this is something dotcom-specifc.
from wp-calypso.
Related Issues (20)
- /me: Part of the navigation is impossible to see (Untangling Calypso) HOT 3
- Email notifications: not all email clients format the email templates the same HOT 6
- Stepper: only trigger `calypso_signup_step_start` Tracks events when step is actually rendered
- CSP Followup for inline-scripts
- Scheduled Updates: Scroll back to top after creating (and potentially editing) a schedule
- Captions Global Styles for Stewart Theme
- Sites management page: Renamed site addresses should not be listed as deleted sites HOT 3
- Activity Log: Differentiate between WP-CLI used by Support or Users via SSH HOT 5
- Impossible to unlock blocks HOT 5
- Inconsistent Plan name in marketing email subject HOT 2
- Stepper: improve `calypso_signup_start` tracking
- Command Palette: WP-CLI Command Wildcards
- Scheduled updates: Update layout for the single site context
- HTML Block - Preview button: Unconsistent Javascript Code Handling Depending On Browser HOT 3
- Site Migration: Possible to get to old flow through new flow
- Reader: Clicking back to a List from a post goes to the top of the page HOT 2
- Reader: Site Icon Shape Options
- Request for Feature to Sort Sites on Reader based on Language
- Feature request to mute specific blogs in the "recent" section, without blocking them.
- Connected Email Not Working HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wp-calypso.