diff --git a/res/css/views/context_menus/_IconizedContextMenu.scss b/res/css/views/context_menus/_IconizedContextMenu.scss
index 69e30eb4e6..36004af741 100644
--- a/res/css/views/context_menus/_IconizedContextMenu.scss
+++ b/res/css/views/context_menus/_IconizedContextMenu.scss
@@ -90,7 +90,6 @@ limitations under the License.
                 width: 16px;
                 min-width: 16px;
                 max-width: 16px;
-                mask-size: contain;
             }
 
             span.mx_IconizedContextMenu_label { // labels
@@ -120,8 +119,8 @@ limitations under the License.
 
         &::before {
             content: '';
-            width: 16px;
-            height: 16px;
+            width: inherit;
+            height: inherit;
             position: absolute;
             mask-position: center;
             mask-size: contain;
diff --git a/res/css/views/rooms/_RoomList.scss b/res/css/views/rooms/_RoomList.scss
index e92951902b..029c5b6cdb 100644
--- a/res/css/views/rooms/_RoomList.scss
+++ b/res/css/views/rooms/_RoomList.scss
@@ -33,10 +33,10 @@ limitations under the License.
 .mx_RoomList_iconDialpad::before {
     mask-image: url('$(res)/img/element-icons/roomlist/dialpad.svg');
 }
-.mx_RoomList_iconStartChat {
+.mx_RoomList_iconStartChat::before {
     mask-image: url('$(res)/img/element-icons/roomlist/member-plus.svg');
 }
-.mx_RoomList_iconInvite {
+.mx_RoomList_iconInvite::before {
     mask-image: url('$(res)/img/element-icons/room/share.svg');
 }