Hello, from my point of view and logic I think the generation of colors for offcanvas should be improved, the explanation is as follows:
- The option is available only in Custom Style
- If Custom Styles is not active the colors are inherited from the Dropdown of the preset as before.
Based on this, it is understood that if you have Custom Style deactivated, the dropdown colors that must be inherited for the offcanvas are from the preset, not from the custom style, as they are doing in the following code.
$scssVars['offcanvas_menu_icon_color'] = '#000000';
$scssVars['offcanvas_menu_bg_color'] = $this->params->get('menu_dropdown_bg_color');
$scssVars['offcanvas_menu_items_and_items_color'] = $this->params->get('menu_dropdown_text_color');
$scssVars['offcanvas_menu_active_menu_item_color'] = $scssVars['menu_text_active_color'];
Where the correct code would be:
$scssVars['offcanvas_menu_icon_color'] = '#000000';
$scssVars['offcanvas_menu_bg_color'] = $scssVars['menu_dropdown_bg_color'];
$scssVars['offcanvas_menu_items_and_items_color'] = $scssVars['menu_dropdown_text_color'];
$scssVars['offcanvas_menu_active_menu_item_color'] = $scssVars['menu_text_active_color'];
Because now it generates a different offcanvas color than the dropdown when the preset is used, and it doesn't leave you with the question where did that color come from?
Please if you can solve or give a logical explanation of why the Custom Style colors are inherited if this is supposed to be deactivated.
Regards