[wp-trac] [WordPress Trac] #62678: Twenty Twenty: Letter spacing applied to Media & Text Block does not affect inner paragraph on editor side (was: Twenty Twenty : Letter spacing is not working in Media & Text Block on editor side)
WordPress Trac
noreply at wordpress.org
Fri Jan 3 00:40:58 UTC 2025
#62678: Twenty Twenty: Letter spacing applied to Media & Text Block does not affect
inner paragraph on editor side
-------------------------------------------------+-------------------------
Reporter: pitamdey | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting
| Review
Component: Bundled Theme | Version:
Severity: normal | Resolution:
Keywords: has-patch has-screenshots has- | Focuses: css
testing-info needs-refresh |
-------------------------------------------------+-------------------------
Changes (by sabernhardt):
* focuses: => css
* version: 6.7.1 =>
Comment:
> In style.css it was moved from {{{entry-content p}}} to {{{entry-
content}}}
#49318 changed the front-end selector.
> But because "normal" is the default value for letter-spacing, I think
that removing it is probably safe.
Without `letter-spacing: normal`, then regular paragraphs and lists would
have a [https://core.trac.wordpress.org/browser/trunk/src/wp-
content/themes/twentytwenty/assets/css/editor-style-
block.css?rev=59470&marks=9#L9 negative letter spacing]. Moving `-0.015em`
to the `.editor-styles-wrapper > *` ruleset could be appropriate enough
(in addition to 62678.patch), but another approach might be better:
1. Assign the Inter sans-serif font and negative letter-spacing to
`.editor-styles-wrapper` (reflecting `body` on front).
2. Assign the Hoefler Text serif font and normal letter-spacing to `.wp-
block-post-content` and `.block-editor-block-list__layout > p` (reflecting
`.entry-content` and `.widget_text p` on front).
Previously: [55967] and [58908] made adjustments for the Quote and
Pullquote blocks (only).
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62678#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list