Skip to content

Commit

Permalink
fix: set icon container class
Browse files Browse the repository at this point in the history
  • Loading branch information
sibiraj-s committed Nov 29, 2020
1 parent c59c232 commit 99e7c00
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/plugins/menu/menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down Expand Up @@ -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]
},
Expand Down

0 comments on commit 99e7c00

Please sign in to comment.