diff --git a/core/css/header.scss b/core/css/header.scss
index 93b56900f1686f35b37170e460323f797d622c3d..d15119aa40f334a3b502f2f60e2177b2856c0cad 100644
--- a/core/css/header.scss
+++ b/core/css/header.scss
@@ -112,7 +112,7 @@
 		}
 
 		/* Use by the apps menu and the settings right menu */
-		ul {
+		&.settings-menu > ul {
 			li {
 				a {
 					display: inline-flex;
diff --git a/core/templates/layout.user.php b/core/templates/layout.user.php
index d1f979c6965c5e767d4b6b356c5a77c231406436..9b558b198ee978456e599a928074d8d7b756f4e2 100644
--- a/core/templates/layout.user.php
+++ b/core/templates/layout.user.php
@@ -131,7 +131,7 @@
 						</div>
 						<div id="expandDisplayName" class="icon-settings-white"></div>
 					</div>
-					<nav id="expanddiv" style="display:none;"
+					<nav class="settings-menu" id="expanddiv" style="display:none;"
 						aria-label="<?php p($l->t('Settings menu'));?>">
 					<ul>
 					<?php foreach($_['settingsnavigation'] as $entry):?>