From aeff4b7f1db5669fe964e72b77eaa78e51ae72f7 Mon Sep 17 00:00:00 2001 From: daria Date: Wed, 26 Mar 2025 12:20:49 +0200 Subject: [PATCH] fix button functionality #1843 --- customize.dist/messages.js | 2 +- customize.dist/src/less2/include/help.less | 6 ++++++ www/common/common-ui-elements.js | 4 +++- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/customize.dist/messages.js b/customize.dist/messages.js index a28190005..7ff0456d8 100755 --- a/customize.dist/messages.js +++ b/customize.dist/messages.js @@ -135,7 +135,7 @@ define(req, function(AppConfig, Default, Language) { }; - + Messages.help_close_button = 'Close help notification'; // XXX return Messages; }); diff --git a/customize.dist/src/less2/include/help.less b/customize.dist/src/less2/include/help.less index 49e467e67..7f07ab360 100644 --- a/customize.dist/src/less2/include/help.less +++ b/customize.dist/src/less2/include/help.less @@ -22,11 +22,17 @@ } .cp-help-close { + background: none; + border: none; position: absolute; color: @cryptpad_text_col; top: 5px; right: 5px; cursor: pointer; + &:focus-visible { + outline: @variables_focus_style; + border-radius: @variables_radius; + } } .cp-help-text { color: @cp_help-fg; diff --git a/www/common/common-ui-elements.js b/www/common/common-ui-elements.js index 62db751d6..a4fedb713 100644 --- a/www/common/common-ui-elements.js +++ b/www/common/common-ui-elements.js @@ -1279,7 +1279,9 @@ define([ common.fixLinks(text); - var closeButton = h('span.cp-help-close.fa.fa-times'); + var closeButton = h('button.cp-help-close.fa.fa-times', { + title: 'Close help notification' + }); var $toolbarButton = common.createButton('', true, { text: Messages.help_button, name: 'help'