From 99e7c006e3371f7d8009bab824cbde5762a84f07 Mon Sep 17 00:00:00 2001 From: sibiraj-s Date: Tue, 24 Nov 2020 15:51:56 +0530 Subject: [PATCH] fix: set icon container class --- src/plugins/menu/menu.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/plugins/menu/menu.ts b/src/plugins/menu/menu.ts index 916a47cd..8048a53e 100644 --- a/src/plugins/menu/menu.ts +++ b/src/plugins/menu/menu.ts @@ -13,7 +13,8 @@ import { getIconSvg } from '../utils/icons'; import flatDeep from '../utils/flatDeep'; import SimpleMenuItem, { - ACTIVE_MENU_ITEM_CLASSNAME, DISABLED_CLASSNAME, MENU_ITEM_CLASSNAME, MENU_ITEM_ICON_CLASSNAME + ACTIVE_MENU_ITEM_CLASSNAME, DISABLED_CLASSNAME, MENU_ITEM_CLASSNAME, + MENU_ITEM_ICON_CLASSNAME, MENU_ITEM_ICON_CONTAINER_CLASSNAME } from './views/SimpleMenuItem'; import DropDownView from './views/Dropdown'; @@ -72,6 +73,7 @@ export const renderMenu = (options: MenuOptions, editorView: EditorView, menuDom default: getIconSvg(menuItem.icon), alt: getIconSvg(menuItem.toggleIcon) }, + iconContainerClass: MENU_ITEM_ICON_CONTAINER_CLASSNAME, attrs: { title: labels[menuItem.i18nKey] },