Add class to items in changeslist legend
authorumherirrender <umherirrender_de.wp@web.de>
Fri, 19 Jun 2015 15:36:18 +0000 (17:36 +0200)
committerUmherirrender <umherirrender_de.wp@web.de>
Sat, 27 Jun 2015 23:20:21 +0000 (23:20 +0000)
The text part of the legend on Special:RecentChanges and
Special:Watchlist does not have a own class for styling.

Added a 'mw-changeslist-legend-*' class to the items similar to the
already existing class 'mw-changeslist-legend-plusminus' for the last
item.

Change-Id: Ib249d4d7a78a5e3deaace27ceee1abc955b96160

includes/specialpage/ChangesListSpecialPage.php

index b913235..23bd394 100644 (file)
@@ -434,7 +434,8 @@ abstract class ChangesListSpecialPage extends SpecialPage {
                        $legend .= Html::element( 'dt',
                                array( 'class' => $cssClass ), $context->msg( $letter )->text()
                        ) . "\n" .
-                       Html::rawElement( 'dd', array(),
+                       Html::rawElement( 'dd',
+                               array( 'class' => Sanitizer::escapeClass( 'mw-changeslist-legend-' . $key ) ),
                                $context->msg( $label )->parse()
                        ) . "\n";
                }