Jdlrobson has uploaded a new change for review.
https://gerrit.wikimedia.org/r/148462
Change subject: Make Flow use mw-ui-constructive etc rather than flow-ui-
......................................................................
Make Flow use mw-ui-constructive etc rather than flow-ui-
The flow-ui-constructive buttons are not loaded in new version of Flow,
only on cached pages, so let's update the appropriate buttons.
Change-Id: I4e125deb22e2de4f83ab8a6b3328480c9ae0b650
---
M handlebars/flow_topic_navigation.handlebars
M includes/TemplateHelper.php
M modules/new/mw-ui.enhance.js
M modules/new/styles/mediawiki.ui/tooltips.less
4 files changed, 10 insertions(+), 10 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Flow
refs/changes/62/148462/1
diff --git a/handlebars/flow_topic_navigation.handlebars
b/handlebars/flow_topic_navigation.handlebars
index b522f68..d956042 100644
--- a/handlebars/flow_topic_navigation.handlebars
+++ b/handlebars/flow_topic_navigation.handlebars
@@ -26,7 +26,7 @@
<a href="{{links.pagination.rev.url}}"
title="{{links.pagination.rev.title}}" class="mw-ui-button mw-ui-progressive
mw-ui-quiet"><span class="wikiglyph wikiglyph-article"></span> {{l10n
"flow-load-more"}}</a>
{{else}}
<!-- @todo make disabled class do something? -->
- <a class="mw-ui-button flow-ui-progressive
mw-ui-quiet disabled"><span class="wikiglyph wikiglyph-article"></span> {{l10n
"flow-load-more"}}</a>
+ <a class="mw-ui-button mw-ui-progressive
mw-ui-quiet disabled"><span class="wikiglyph wikiglyph-article"></span> {{l10n
"flow-load-more"}}</a>
{{/if}}
{{/if}}
</li>
diff --git a/includes/TemplateHelper.php b/includes/TemplateHelper.php
index 2c3fc7b..f50e9b8 100644
--- a/includes/TemplateHelper.php
+++ b/includes/TemplateHelper.php
@@ -868,7 +868,7 @@
return (
self::processTemplate( 'flow_tooltip', array(
'positionClass' => $params['positionClass'] ?
'flow-ui-tooltip-' . $params['positionClass'] : null,
- 'contextClass' => $params['contextClass'] ?
'flow-ui-' . $params['contextClass'] : null,
+ 'contextClass' => $params['contextClass'] ?
'mw-ui-' . $params['contextClass'] : null,
'extraClass' => $params['extraClass'] ?: '',
'blockClass' => $params['isBlock'] ?
'flow-ui-tooltip-block' : null,
'content' => $fn(),
diff --git a/modules/new/mw-ui.enhance.js b/modules/new/mw-ui.enhance.js
index 01aefda..37c0921 100644
--- a/modules/new/mw-ui.enhance.js
+++ b/modules/new/mw-ui.enhance.js
@@ -218,11 +218,11 @@
// Try to inherit tooltipContext from the target's
classes
if ( !optionsUnreferenced.tooltipContext ) {
- if ( $target.hasClass( 'flow-ui-progressive' )
) {
+ if ( $target.hasClass( 'mw-ui-progressive' ) ) {
optionsUnreferenced.tooltipContext =
'progressive';
- } else if ( $target.hasClass(
'flow-ui-constructive' ) ) {
+ } else if ( $target.hasClass(
'mw-ui-constructive' ) ) {
optionsUnreferenced.tooltipContext =
'constructive';
- } else if ( $target.hasClass(
'flow-ui-destructive' ) ) {
+ } else if ( $target.hasClass(
'mw-ui-destructive' ) ) {
optionsUnreferenced.tooltipContext =
'destructive';
}
}
@@ -242,8 +242,8 @@
// Tooltip style context
if ( optionsUnreferenced.tooltipContext ) {
- $tooltip.removeClass( 'flow-ui-progressive
flow-ui-constructive flow-ui-destructive' );
- $tooltip.addClass( 'flow-ui-' +
optionsUnreferenced.tooltipContext );
+ $tooltip.removeClass( 'mw-ui-progressive
mw-ui-constructive mw-ui-destructive' );
+ $tooltip.addClass( 'mw-ui-' +
optionsUnreferenced.tooltipContext );
}
// Tooltip size (small, large)
diff --git a/modules/new/styles/mediawiki.ui/tooltips.less
b/modules/new/styles/mediawiki.ui/tooltips.less
index 176d52e..76a3400 100644
--- a/modules/new/styles/mediawiki.ui/tooltips.less
+++ b/modules/new/styles/mediawiki.ui/tooltips.less
@@ -181,13 +181,13 @@
// Don't apply these classes on IE6
&[class] {
- &.flow-ui-progressive {
+ &.mw-ui-progressive {
.flow-ui-tooltip-color( @colorProgressive );
}
- &.flow-ui-constructive {
+ &.mw-ui-constructive {
.flow-ui-tooltip-color( @colorConstructive );
}
- &.flow-ui-destructive {
+ &.mw-ui-destructive {
.flow-ui-tooltip-color( @colorDestructive );
}
&.flow-ui-tooltip-small {
--
To view, visit https://gerrit.wikimedia.org/r/148462
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I4e125deb22e2de4f83ab8a6b3328480c9ae0b650
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Flow
Gerrit-Branch: master
Gerrit-Owner: Jdlrobson <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits