Make WordPress Core

Opened 21 months ago

Last modified 14 months ago

#56015 new defect (bug)

Twenty Twenty-One: Preview Changes Background Colour To Default

Reported by: mrfoxtalbot's profile mrfoxtalbot Owned by:
Milestone: Awaiting Review Priority: normal
Severity: minor Version:
Component: Bundled Theme Keywords:
Focuses: Cc:


When using Twenty Twenty-One (have only tested on this theme), if you select a different background colour for the site in Customizer > Colors & Backgrounds the page is the correct colour in normal view preview but reverts to the default colour when previewed in Tablet or Mobile views.

Steps to reproduce:

  • Change to Twenty Twenty-One theme
  • Go to Appearance > Colors & Backgrounds
  • Edit background colour to anything of your choosing
  • Open the editor for a page
  • Click Preview
  • Choose Tablet or Mobile

What I expected to happen:

I expected to see the site in the same colour as I have just chosen in the customizer

What actually happened:

Site shows with default background (#D1E4DD) regardless of what colour has been chosen

Attachments (1)

Screen Capture on 2022-06-20 at 14-34-27.mp4 (158.4 KB) - added by mrfoxtalbot 21 months ago.
Twenty Twenty-One Preview Changes Background Colour To Default

Download all attachments as: .zip

Change History (3)

21 months ago

Twenty Twenty-One Preview Changes Background Colour To Default

#2 @poena
14 months ago

I have not been able to reproduce this on other themes (though most of the themes I tested did not change the background color of the editor at all.

It is possibly due to how the background color is handled to work with the dark mode.

Note: See TracTickets for help on using tickets.