From 8618d34953e6b509728c2b221f105bee5f95bb65 Mon Sep 17 00:00:00 2001 From: qsm-odoo Date: Thu, 22 Jun 2023 10:14:20 +0000 Subject: [PATCH] [FIX] web_editor: restore snippet button text colors This reverts commit [1]. It broke all snippet button colors, making them invisible. Besides that, the fix seems not obvious to make properly and would thus require some more testing, thus the need of reverting this urgently. There is probably more things to consider when remaking that fix: - mass_mailing scss code in web_editor should not be a thing. Even if the comment about variables not being accessible is true, there are definitely other ways to do it (make them accessible, add those rules generically with a custom selector and fill that custom selector when mass_mailing is installed, etc etc) - More than scss code, we really do not want mass_mailing *CSS* rules in website pages, especially in that code that generates *many* CSS rules. Of course web_editor.common.scss contains many things that should not be there and mass_mailing has probably already a lot of useless code in the frontend assets... but the goal is to fix those inconsistencies in the future. - The fix impacts buttons which are not hovered while the goal seemed to be to have their hover style disabled... - The fix impacts buttons which are in o_ccX environments only (?) but seemed to be about disabling all hover styles. - Much doubt on the need of an at-root instruction, especially since it creates a bug in frontend pages without o_mail_wrapper containers so it probably does not work as intended. - The fix should probably not be about overriding/duplicating the CSS rules but rather post-processing the mass_mailing assets to remove all hover rules. I guess it is even possible to do in JS removing the :hover CSS rules, at worst by moving all CSS rules to inline