From 9feccfba49ee53e07470c54460b6c73c8abb0cda Mon Sep 17 00:00:00 2001 From: Sergi Almacellas Abellana Date: Fri, 5 Jun 2020 19:12:53 +0200 Subject: [PATCH] Do not override icons with text issue9388 review325521002 --- src/tab.js | 7 ++++--- src/window.js | 35 +++++++++++++++++++++-------------- 2 files changed, 25 insertions(+), 17 deletions(-) diff --git a/src/tab.js b/src/tab.js index 3257a216c7..96a15dde2f 100644 --- a/src/tab.js +++ b/src/tab.js @@ -138,9 +138,10 @@ 'role': 'menuitem', 'href': '#', 'tabindex': -1 - }).append(Sao.common.ICONFACTORY.get_icon_img(item.icon, { - 'aria-hidden': 'true', - })).text(' ' + item.label).appendTo(menuitem); + }).text(' ' + item.label).prepend( + Sao.common.ICONFACTORY.get_icon_img(item.icon, { + 'aria-hidden': 'true', + })).appendTo(menuitem); this.menu_buttons[item.id] = menuitem; link.click(function(evt) { evt.preventDefault(); diff --git a/src/window.js b/src/window.js index 908840460c..4d7852d830 100644 --- a/src/window.js +++ b/src/window.js @@ -956,31 +956,34 @@ var button_add = jQuery('