summaryrefslogtreecommitdiff
path: root/addons/web_tour/static/src/less/tip.less
diff options
context:
space:
mode:
authorqsm-odoo <qsm@odoo.com>2016-07-18 15:25:42 +0200
committerqsm-odoo <qsm@odoo.com>2016-07-19 11:55:02 +0200
commit19b4902c71bfdae1fa689dabd83c8ff3880142bc (patch)
tree50ab42ddf5fe59989034153d3a5d31094be330a5 /addons/web_tour/static/src/less/tip.less
parenta1c6e7243c7b997dd5919031d761d1f38597f1bc (diff)
[FIX] web_tour: force tooltip content font style
Force tooltip content font style (size, family, line-height, weight) so that it does not depend on where the tooltip is in the DOM. This fixes a problem where the style changed when opening/closing the tooltip. Indeed, the content dimensions, computed in javascript when the tooltip is closed were wrong because of the style and the opening / closing rely on these values.
Diffstat (limited to 'addons/web_tour/static/src/less/tip.less')
-rw-r--r--addons/web_tour/static/src/less/tip.less6
1 files changed, 6 insertions, 0 deletions
diff --git a/addons/web_tour/static/src/less/tip.less b/addons/web_tour/static/src/less/tip.less
index b79633832de..a8fa17cc65a 100644
--- a/addons/web_tour/static/src/less/tip.less
+++ b/addons/web_tour/static/src/less/tip.less
@@ -104,6 +104,12 @@
transition: visibility 0s ease 0s;
color: black;
+ // Force style so that it does not depend on where the tooltip is attached
+ line-height: @line-height-base;
+ font-size: @font-size-base;
+ font-family: @font-family-sans-serif;
+ font-weight: normal;
+
.o_skip_tour {
display: inline-block;
margin-top: 4px;