Making WordPress.org

Opened 3 months ago

Last modified 3 months ago

#7287 new defect (bug)

Theme Preview background should be white

Reported by: raikas's profile raikas Owned by:
Milestone: Priority: normal
Component: Theme Directory Keywords:
Cc:

Description

The theme preview's background is dark (# 1d2327 in .theme-install-overlay .wp-full-overlay-main), causing websites expecting the website background to be white by default to show incorrectly.

By default in pretty much all browsers the background is always white, and the air-light theme expects that. And I think that the theme preview should be white to mimic normal browser behaviour.

Issue on Air Light theme issue tracker: https://github.com/digitoimistodude/air-light/issues/183
Affected page: https://wordpress.org/themes/air-light/ (and others) -> press "Preview"

Change History (2)

#1 @dufresnesteven
3 months ago

Out of curiosity, why would your theme expect the browser background to be white?

#2 @raikas
3 months ago

Well, the theme itself doesn't "expect expect" it to be white, but as all major browsers have a white background by default, having a single statement with "html { background: #fff }", just for the WordPress.org site to work, feels dumb.

Note: See TracTickets for help on using tickets.