[wp-trac] [WordPress Trac] #58835: Twenty Twenty-One: Dark mode is not enabled in the block editor iframe

WordPress Trac noreply at wordpress.org
Tue Jul 18 09:12:44 UTC 2023


#58835: Twenty Twenty-One: Dark mode is not enabled in the block editor iframe
---------------------------+-----------------------------
 Reporter:  poena          |      Owner:  (none)
     Type:  defect (bug)   |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  Bundled Theme  |    Version:
 Severity:  normal         |   Keywords:
  Focuses:                 |
---------------------------+-----------------------------
 When activating dark mode in Twenty Twenty-One in WordPress 6.3 beta, the
 dark mode is not enabled in the block editor.
 The following message shows in the console:

 twenty-twenty-one-custom-color-overrides-inline-css was added to the
 iframe incorrectly. Please use block.json or enqueue_block_assets to add
 styles to the iframe.


 To reproduce:
 Download and activate the Beta tester plugin.
 Update the WordPress install to the nightly version of WordPress 6.3.

 Or if you are testing this issue after WordPress 6.3 is released, please
 make sure you have the latest version of WordPress installed.

 Activate Twenty Twenty-One.
 Go to Appearance > Customize, and open the panel Colors & Dark Mode.
 Enable the dark mode option (the check box).
 In the page preview, in the bottom right corner, enable the dark mode (the
 button).

 Now open the block editor.
 Confirm that the dark mode is not enabled.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/58835>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list