From 19b4902c71bfdae1fa689dabd83c8ff3880142bc Mon Sep 17 00:00:00 2001 From: qsm-odoo Date: Mon, 18 Jul 2016 15:25:42 +0200 Subject: [PATCH] [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. --- addons/web_tour/static/src/less/tip.less | 6 ++++++ 1 file changed, 6 insertions(+) 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;