Skip to content

Commit

Permalink
Change css class tooltip to mptooltip to avoid name clashes with othe…
Browse files Browse the repository at this point in the history
…r css stylesheets
  • Loading branch information
alan-wu committed May 28, 2019
1 parent e38371d commit f51cdbb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/styles/tooltip.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
user-select: none;
}

.tooltip {
.mptooltip {
position: relative;
display: inline-block;
border-bottom: 1px dotted black;
pointer-events: none;
}

.tooltip .tooltiptext {
.mptooltip .mptooltiptext {
font: 500 1em "Lucida Sans Unicode", "Lucida Grande", sans-serif;
visibility: hidden;
width: 120px;
Expand All @@ -34,7 +34,7 @@
pointer-events: none;
}

.tooltip .tooltiptext::after {
.mptooltip .mptooltiptext::after {
content: "";
position: absolute;
top: 100%;
Expand Down
2 changes: 1 addition & 1 deletion src/ui/tooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ exports.ToolTip = function(container) {
var tipElement = undefined;
var tiptextElement = undefined;
var parent = undefined;
var template = '<div id="tooltipcontainer"><div class="tooltip" id="tip"><span class="tooltiptext" id="tiptext"> Tooltip text</span></div></div>';
var template = '<div id="tooltipcontainer"><div class="mptooltip" id="tip"><span class="mptooltiptext" id="tiptext"> Tooltip text</span></div></div>';
var _this = this;

/**
Expand Down

0 comments on commit f51cdbb

Please sign in to comment.