Make WordPress Core

Opened 15 years ago

Closed 14 years ago

Last modified 14 years ago

#10881 closed defect (bug) (fixed)

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

Reported by: hakre's profile 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 15 years ago.
10881.patch (740 bytes) - added by hakre 15 years ago.
Admin css missing background default value

Download all attachments as: .zip

Change History (9)

@hakre
15 years ago

#1 @hakre
15 years ago

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

#2 @hakre
15 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);

#3 @hakre
15 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.

@hakre
15 years ago

Admin css missing background default value

#4 @hakre
15 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.

#5 @azaozz
14 years ago

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

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

#6 @hakre
14 years ago

Related: #8730

#7 @hakre
14 years ago

Reference: #11645

Note: See TracTickets for help on using tickets.