WMDE-leszek has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/296702

Change subject: Highlight revision "wrapper" when mouse inside a tooltip
......................................................................

Highlight revision "wrapper" when mouse inside a tooltip

Bug: T138946
Change-Id: I93da2bc2fad36dc2927fe4123f91cab470cb3553
---
M modules/ext.RevisionSlider.RevisionListView.js
M modules/ext.RevisionSlider.css
2 files changed, 4 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/RevisionSlider 
refs/changes/02/296702/1

diff --git a/modules/ext.RevisionSlider.RevisionListView.js 
b/modules/ext.RevisionSlider.RevisionListView.js
index 5695d75..440fa50 100644
--- a/modules/ext.RevisionSlider.RevisionListView.js
+++ b/modules/ext.RevisionSlider.RevisionListView.js
@@ -86,6 +86,7 @@
                        if ( this.tooltipTimeout !== -1 ) {
                                window.clearTimeout( this.tooltipTimeout );
                                this.currentTooltip.tipsy( 'hide' );
+                               this.currentTooltip.removeClass( 
'mw-revision-wrapper-hovered' );
                        }
                },
 
@@ -97,6 +98,7 @@
                hideTooltip: function ( $rev ) {
                        this.tooltipTimeout = window.setTimeout( function () {
                                $rev.tipsy( 'hide' );
+                               $rev.removeClass( 'mw-revision-wrapper-hovered' 
);
                        }, 500 );
                },
 
@@ -108,6 +110,7 @@
                showTooltip: function ( $rev ) {
                        this.hideCurrentTooltip();
                        $rev.tipsy( 'show' );
+                       $rev.addClass( 'mw-revision-wrapper-hovered' );
                        this.currentTooltip = $rev;
                },
 
diff --git a/modules/ext.RevisionSlider.css b/modules/ext.RevisionSlider.css
index 921834e..393a965 100644
--- a/modules/ext.RevisionSlider.css
+++ b/modules/ext.RevisionSlider.css
@@ -58,7 +58,7 @@
     z-index: 10;
     height: 140px;
 }
-.mw-revision-wrapper:hover {
+.mw-revision-wrapper:hover, .mw-revision-wrapper-hovered {
     background-color: #f2f2f2;
     transition: all ease 0.2s;
     -webkit-transition: all ease 0.2s;

-- 
To view, visit https://gerrit.wikimedia.org/r/296702
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I93da2bc2fad36dc2927fe4123f91cab470cb3553
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/RevisionSlider
Gerrit-Branch: master
Gerrit-Owner: WMDE-leszek <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to