diff --git a/static/js/avatar.js b/static/js/avatar.js index f9de36c971..a4d0207fc4 100644 --- a/static/js/avatar.js +++ b/static/js/avatar.js @@ -56,7 +56,7 @@ exports.build_user_avatar_widget = function (upload_function) { $("#user-avatar-source").hide(); } - $("#user_avatar_delete_button").on('click', function (e) { + $("#user_avatar_delete_button").on('click keydown', function (e) { e.preventDefault(); e.stopPropagation(); channel.del({ diff --git a/static/styles/settings.scss b/static/styles/settings.scss index 8960dd31d1..bd1268c3ad 100644 --- a/static/styles/settings.scss +++ b/static/styles/settings.scss @@ -1077,7 +1077,7 @@ input[type=checkbox].inline-block { #user_avatar_delete_button { cursor: pointer; - visibility: hidden; + opacity: 0; font-size: 3rem; position: absolute; top: 67px; // 31.5px + 5px + 30px @@ -1109,7 +1109,7 @@ input[type=checkbox].inline-block { } #user_avatar_delete_button { - visibility: visible; + opacity: 1; } #user-avatar-source { diff --git a/static/templates/settings/account-settings.handlebars b/static/templates/settings/account-settings.handlebars index 7cbc53903c..5b6613bdaa 100644 --- a/static/templates/settings/account-settings.handlebars +++ b/static/templates/settings/account-settings.handlebars @@ -164,9 +164,9 @@