Friday, May 2, 2025
1 change · saas-18.1
Resolved issues and error corrections
This fix makes mobile website submenus and mega menu controls remain visible when a dark header background is used. It improves the visitor editing and preview experience by ensuring menu text and icons adapt correctly to the selected theme colors.
Original PR description
Steps to reproduce: - Install the "Website" app. - Go to the homepage. - Click on "Site > Menu Editor" in the backend navbar. - Create a submenu. - Add a "Mega Menu Item" to the menu. - Save the dialog. - Enter edit mode. - Click on the header. - Choose a dark background in the header options. - Click the "Mobile Preview" button to switch to mobile view. - Click the toggler button to open the menu. - Open the "Mega Menu". - Bug 1: The "close" and "back" icons are not visible. - Close the "Mega Menu". - Open the submenu. - Bug 2: The submenu is not visible because the background and text have the same light color, so nothing can be seen. The bug was introduced by commit [1], which made visual improvements to the menu. This commit fixes it by making sure the colors of the problematic elements adapt to the theme colors. [1]: https://github.com/odoo/odoo/commit/dc1a15539227c4c21837a7bce3fc4d81858d60b9 opw-4716573