WordPress.org

Make WordPress Core

Opened 5 years ago

Closed 4 years ago

Last modified 4 years ago

#10881 closed defect (bug) (fixed)

CSS Background for various input elements is not reset in admin and default themes.

Reported by: hakre Owned by:
Milestone: 2.9 Priority: high
Severity: normal Version: 2.8.4
Component: Administration Keywords: has-patch tested
Focuses: Cc:

Description

The theme in the admin area mainly has white backgrounds. Those backgrounds are set. This is done by a pattern called CSS-Reset that ensures that not the browsers background color (often provided by the OS) is chosen but the designers colors.

Many input elements have been forgotten to CSS-Reset the background color as well (even though they are heavily styled). This makes using the admin problemtic in those cases the underlying OS provides a dark background color for input elements.

Attachments (2)

bugs_input.jpg (104.1 KB) - added by hakre 5 years ago.
10881.patch (740 bytes) - added by hakre 5 years ago.
Admin css missing background default value

Download all attachments as: .zip

Change History (9)

hakre5 years ago

comment:1 hakre5 years ago

The standard frontend theme has the same problem (both Default and Classic).

comment:2 hakre5 years ago

  • Keywords has-patch added; needs-patch removed

to properly test, do not forget to use the according constant in wp-config.php:

// use .dev.css stylesheets instead of the packed ones.
define('STYLE_DEBUG', true);

comment:3 hakre5 years ago

  • Keywords tested added

I tested this a bit. Works perfeclty with Opera 9.5 (only if styling of input elements is enabled naturally) so I assume the CSS is valid. Firefox generally has problems styling form elements, especially checkboxes. Chrome (Webkit) does not display any checkboxes. Chrome needed to have the background-color explicitly set otherwise it won't display any checkboxes any longer. Internet Explorer 6 (and I assume above as well) is unable to display the checkboxes background color properly as well.

So one update of the patch regarding the explicit set of the color.

hakre5 years ago

Admin css missing background default value

comment:4 hakre5 years ago

  • Summary changed from CSS Background for various input elements is not reset in admin (frontend as well?) to CSS Background for various input elements is not reset in admin and default themes.

comment:5 azaozz4 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [12234]) Specify background color for input elements, props hakre, fixes #10881

comment:6 hakre4 years ago

Related: #8730

comment:7 hakre4 years ago

Reference: #11645

Note: See TracTickets for help on using tickets.