Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
CSS
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
20 Dec 2010 at 11:49 UTC
Updated:
29 Jul 2014 at 19:15 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
chx commentedI doubt we want to change a class name in D7 past D 7.0 RC3. Otherwise, looks good.
Comment #2
rstamm commentedI doubt that the class is used by a theme.
Comment #3
dries commentedJust a heads up: I'd like to commit #1136130: Regression: Reinstate WATCHDOG_* constants and document why they are necessary. first. This patch will likely need a re-roll after #1136130 lands.
Comment #4
dries commentedI committed #1136130: Regression: Reinstate WATCHDOG_* constants and document why they are necessary. so marking this patch 'needs work'. It will need a fairly simple re-roll.
Comment #5
rstamm commentedpatch rerolled
Comment #6
tstoecklerNow that we use the PHP constants I think we should strive for consistency with those.
So instead of renaming EMERG to EMERGENCY we should rename CRITICAL to CRIT and so forth, in my opinion.
Comment #7
jbrown commentedComment #8
tstoecklerYes, that looks good. I'm inclined to mark this RTBC, but it could probably use another review. Also I didn't try this out locally. In theory, it could be tested that the CSS changes don't break anything, but I don't know if that's requried to get this committed.
Comment #9
rstamm commented-1 not themer friendly, written out is better
Comment #10
jbrown commentedI'm happy either way.
Comment #11
kscheirer-1 from me too - we just end up with less clear class names for themers.
Comment #12
tstoecklerWell this is simply about consistency. I think 'emergency' is clearer than 'emerg' both for developers and themers. But since PHP gives us 'emerg' we should go with that.
I guess this somehow got forgotten. Marking RTBC.
Comment #13
webchickThis smells like won't fix to me. Those classes are there for themers. Themers have no reason to be exposed to PHP internals.
Comment #14
tstoecklerWell at some point then you're going to have that inconsistency between 'emerg' == 'emergency', which is much more of a WTF than a 'emerg' in the first place. That's just me, though. Maybe back to needs review?
Comment #15
webchickWell so far everyone who's reviewed it has said -1. :)
I guess we can leave it in needs review if you want, but until some themers jump in here and say "yes, please remove a semantic classname in favour of a non-semantic classname that leaks odd PHP internal behaviour" I don't see a compelling reason to commit this. The inconsistency argument doesn't make sense, because nowhere else do we abbreviate our class names like that. If anything, we make them longer and more descriptive than their respective raw data structure in order to provide clarity to front-end developers; for example:
#forum td.last-reply,
instead of:
#forum td.updated,
Comment #16
webchickMoving to the right component at any rate.
Comment #17
jacineDon't like this patch at all. PHP != CSS and naming a class err, crit, emerg, or any other half-word over plain english that people reading it can clearly understand makes no sense to me. FTR, I think PHP is Doing it wrong™ too, but that doesn't mean we have to repeat those mistakes.
@Ralf's patch in #5 looks like the right fix here to me.
Comment #18
tstoecklerAlright then, who am I to argue :)
Patch #5 won't apply, though.
I grepped for 'dblog-emerg' and the following came up:
Marking as Novice together with these detailed instructions:
'dblog-emerg'to'dblog-emergency'in all 3 lines.Comment #19
schnippy commentedOk - @BoJoe22 and are I rolling this up as our first core patch at the DC Learn Drupal Issue Sprint in Alexandria, VA (http://groups.drupal.org/node/235688)
Comment #20
tstoecklerThis looks good.
I didn't grep again (#18 is 4 months old), but I highly doubt any new use of these classes was introduced anywhere.
I didn't try this out locally, though, so I am not marking RTBC. Should be as easy visiting "admin/reports/dblog" and checking that all of the different error types are displayed correctly.
Btw, I checked where dblog.css is loaded and found this:
http://drupalcode.org/project/drupal.git/blob?f=core/modules/dblog/dblog...
We should probably open a follow-up to use #attached and rename the file to dblog.admin.css.
Comment #21
devin carlson commentedThe patch in #19 applied cleanly and successfully changed all occurrences of "dblog-emerg" to "dblog-emergency".
Attached is a screenshot of the log page demonstrating the "emergency" class (using a fake emergency message).
Comment #22
sun#19: dblog-make_dblog_css_classes_consistent-1003168-16.patch queued for re-testing.
Comment #23
dries commentedCommitted to 8.x. Thanks.