[drupal-devel] [bug] Zebra stripe table CSS class names are badly
chosen
Bèr Kessels
drupal-devel at drupal.org
Wed Jun 15 15:38:01 UTC 2005
Issue status update for http://drupal.org/node/25067
Project: Drupal
Version: 4.6.0
Component: base system
Category: bug reports
Priority: normal
Assigned to: Anonymous
Reported by: Thox
Updated by: Bèr Kessels
Status: patch
themes/bluemarine/style.css:13:tr.dark td, tr.light td {
themes/pushbutton/style.css:27:tr.dark td, tr.light td {
themes/pushbutton/style.css:512:#tracker tr.light, #tracker tr.dark {
themes/pushbutton/style.css:542:#forum tr.dark {
are core styles still using dark and light. jsut a quick grep.
but other than that a +1 for these better named classes.
Bèr Kessels
Previous comments:
------------------------------------------------------------------------
June 15, 2005 - 14:58 : Thox
Attachment: http://drupal.org/files/issues/zebra-classnames.patch (1.41 KB)
The CSS class names chosen for table rows are badly chosen: "light" and
"dark". Since CSS could be used to make the "dark" rows light and the
"light" rows dark, the names are wrong. The attached patch changes
"light" and "dark" to "odd" and "even".
In the future, all class names should describe /why/ an element is
styled differently, not /how/ it is to be styled. e.g. "Red" is a bad
class name, "important" is far better.
More information about the drupal-devel
mailing list