jenkins-bot has submitted this change and it was merged.
Change subject: Add a CSS class to the title text of Special:CX header
......................................................................
Add a CSS class to the title text of Special:CX header
Change-Id: I15e586f660de8a4cad7577c3b1797b220fd3d0b6
---
M modules/header/ext.cx.header.js
1 file changed, 9 insertions(+), 6 deletions(-)
Approvals:
Santhosh: Looks good to me, approved
jenkins-bot: Verified
diff --git a/modules/header/ext.cx.header.js b/modules/header/ext.cx.header.js
index b4805ee..ea91c31 100644
--- a/modules/header/ext.cx.header.js
+++ b/modules/header/ext.cx.header.js
@@ -149,15 +149,18 @@
* Render the header
*/
ContentTranslationHeader.prototype.render = function () {
- var $headerTitle, $headerBar,
- $translationCenterLink, $translationCenter,
$publishArea;
+ var $logo, $titleText, $headerTitle,
+ $translationCenterLink, $translationCenter,
$publishArea,
+ $headerBar;
+ $logo = $( '<div>' )
+ .addClass( 'cx-header__logo' );
+ $titleText = $( '<span>' )
+ .addClass( 'cx-header__title-text' )
+ .text( mw.msg( 'cx' ) );
$headerTitle = $( '<div>' )
.addClass( 'cx-header__title' )
- .append(
- $( '<div>' ).addClass( 'cx-header__logo' ),
- $( '<span>' ).text( mw.msg( 'cx' ) )
- );
+ .append( $logo, $titleText );
$translationCenterLink = $( '<a>' )
// TODO update the text when the dashboard is ready
--
To view, visit https://gerrit.wikimedia.org/r/171230
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I15e586f660de8a4cad7577c3b1797b220fd3d0b6
Gerrit-PatchSet: 3
Gerrit-Project: mediawiki/extensions/ContentTranslation
Gerrit-Branch: master
Gerrit-Owner: Amire80 <[email protected]>
Gerrit-Reviewer: Pginer <[email protected]>
Gerrit-Reviewer: Santhosh <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits