fix button functionality #1843

This commit is contained in:
daria 2025-03-26 12:20:49 +02:00
parent 6766378b5e
commit aeff4b7f1d
No known key found for this signature in database
GPG Key ID: B698EF05B31BB9A5
3 changed files with 10 additions and 2 deletions

View File

@ -135,7 +135,7 @@ define(req, function(AppConfig, Default, Language) {
};
Messages.help_close_button = 'Close help notification'; // XXX
return Messages;
});

View File

@ -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;

View File

@ -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'