MDL-46022 custom_menu: add support for dividers