From b518c2f2ca16c6f8086f6d151d10bf864ef309f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Warnon?= Date: Thu, 29 Oct 2020 09:45:21 +0000 Subject: [PATCH] [IMP] mail: correctly support hidden textarea with emojis mixin This commit fixes the scss file to correctly hide emojis button if they are linked to a Text-type field that is also hidden (using attributes, attrs, ...). Task-2209729 ENT PR odoo/enterprise#14027 UPG PR odoo/upgrade#2333 IAP PR odoo/iap-apps#284 closes odoo/odoo#63220 Signed-off-by: awa-odoo --- addons/mail/static/src/scss/emojis.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/mail/static/src/scss/emojis.scss b/addons/mail/static/src/scss/emojis.scss index b2cb71a496d..cd2897ce72a 100644 --- a/addons/mail/static/src/scss/emojis.scss +++ b/addons/mail/static/src/scss/emojis.scss @@ -21,7 +21,7 @@ $o-mail-emoji-height: 2rem; // Emojis widgets should hide the emoji dropdown button when the field is invisible. // This is necessary because the button is added *after* the main element (and not inside) // (see '_attachEmojisDropdown' for more details) - .o_invisible_modifier + .o_mail_add_emoji{ + .o_invisible_modifier + .o_mail_add_emoji, .o_invisible_modifier + textarea + .o_mail_add_emoji{ display: none !important; } }