Make WordPress Core


Ignore:
Timestamp:
10/04/2023 08:54:34 PM (16 months ago)
Author:
audrasjb
Message:

Twenty Twenty: Fix style issues within iframed editor.

This changeset:

  • Replaces body with html for the first CSS selector that makes text white against a dark background
  • Moves twentytwenty_block_editor_styles() from the enqueue_block_editor_assets action to enqueue_block_assets for WordPress 6.3 and later
  • Removes the obsolete twentytwenty-block-editor-script from the styles function to avoid an error in the iframe

Props floydwilde, poena, huzaifaalmesbah, greenshady, sabernhardt, audrasjb, pooja1210, shailu25, joemcgill.
Fixes #59086.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentytwenty/inc/custom-css.php

    r56548 r56783  
    145145            // Text color.
    146146            if ( $body && $body !== $body_default ) {
    147                 twentytwenty_generate_css( 'body .editor-styles-wrapper, .editor-post-title__block .editor-post-title__input, .editor-post-title__block .editor-post-title__input:focus', 'color', $body );
     147                twentytwenty_generate_css( 'html .editor-styles-wrapper, .editor-post-title__block .editor-post-title__input, .editor-post-title__block .editor-post-title__input:focus', 'color', $body );
    148148            }
    149149
Note: See TracChangeset for help on using the changeset viewer.