fix(profile): focus behavior
This commit is contained in:
@@ -222,23 +222,19 @@
|
|||||||
<!-- ADMIN PANEL -->
|
<!-- ADMIN PANEL -->
|
||||||
<b-dropdown-item
|
<b-dropdown-item
|
||||||
v-if="hasPermission(userLoggedIn, 'userSupport')"
|
v-if="hasPermission(userLoggedIn, 'userSupport')"
|
||||||
class="selectListItem view-admin-panel"
|
class="selectListItem"
|
||||||
|
@click="openAdminPanel()"
|
||||||
>
|
>
|
||||||
<router-link
|
<span class="with-icon">
|
||||||
:to="{ name: 'adminPanelUser',
|
<span
|
||||||
params: { userIdentifier: user._id } }"
|
v-once
|
||||||
>
|
class="svg-icon icon-16 color"
|
||||||
<span class="with-icon">
|
v-html="icons.crown"
|
||||||
<span
|
></span>
|
||||||
v-once
|
<span v-once>
|
||||||
class="svg-icon icon-16 color"
|
{{ $t('viewAdminPanel') }}
|
||||||
v-html="icons.crown"
|
|
||||||
></span>
|
|
||||||
<span v-once>
|
|
||||||
{{ $t('viewAdminPanel') }}
|
|
||||||
</span>
|
|
||||||
</span>
|
</span>
|
||||||
</router-link>
|
</span>
|
||||||
</b-dropdown-item>
|
</b-dropdown-item>
|
||||||
|
|
||||||
<!-- BAN USER -->
|
<!-- BAN USER -->
|
||||||
@@ -580,8 +576,11 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.dropdown-item:not(.disabled):hover svg {
|
.dropdown-item:not(.disabled):hover,
|
||||||
color: $purple-300;
|
.dropdown-item:not(.disabled):focus {
|
||||||
|
a, svg {
|
||||||
|
color: $purple-300;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.drawer-toggle-icon {
|
.drawer-toggle-icon {
|
||||||
@@ -604,7 +603,13 @@
|
|||||||
}
|
}
|
||||||
&.block-ban {
|
&.block-ban {
|
||||||
&:hover, .dropdown-item:hover {
|
&:hover, .dropdown-item:hover {
|
||||||
|
color: $maroon-50 !important;
|
||||||
background-color: rgba($red-500, 0.25) !important;
|
background-color: rgba($red-500, 0.25) !important;
|
||||||
|
svg {
|
||||||
|
color: $maroon-50;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
&:focus, .dropdown-item:focus {
|
||||||
color: $maroon-50 !important;
|
color: $maroon-50 !important;
|
||||||
svg {
|
svg {
|
||||||
color: $maroon-50;
|
color: $maroon-50;
|
||||||
@@ -714,16 +719,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.view-admin-panel
|
|
||||||
a, a:not([href]):not([tabindex]) {
|
|
||||||
cursor: pointer;
|
|
||||||
color: $gray-50;
|
|
||||||
text-decoration: none;
|
|
||||||
&:hover {
|
|
||||||
color:$purple-300;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.profile-actions {
|
.profile-actions {
|
||||||
float: right;
|
float: right;
|
||||||
margin-right: 16px;
|
margin-right: 16px;
|
||||||
@@ -1410,6 +1405,10 @@ export default {
|
|||||||
username: this.user.auth.local.username,
|
username: this.user.auth.local.username,
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
openAdminPanel () {
|
||||||
|
this.$router.push(`/admin-panel/${this.hero._id}`);
|
||||||
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user