Improve accessibility of enigma encryption options button in compose screen

pull/5393/head^2
Aleksander Machniak 8 years ago
parent 2225cf1bc7
commit 51c6269ded

@ -58,6 +58,8 @@ window.rcmail && rcmail.addEventListener('init', function(evt) {
// don't close the menu on mouse click inside
e.stopPropagation();
});
$('a.button.enigma').prop('tabindex', $('#messagetoolbar > a:first').prop('tabindex'));
}
$.each(['encrypt', 'sign'], function() {

@ -761,7 +761,10 @@ class enigma_ui
'label' => 'encryption',
'domain' => $this->enigma->ID,
'width' => 32,
'height' => 32
'height' => 32,
'aria-owns' => 'enigmamenu',
'aria-haspopup' => 'true',
'aria-expanded' => 'false',
), 'toolbar');
$locks = (array) $this->rc->config->get('enigma_options_lock');

@ -65,7 +65,9 @@ p.enigmaattachment a {
/***** E-mail Compose Page *****/
#messagetoolbar a.button.enigma {
background: url(enigma_icons.png) center -122px no-repeat;
background-image: url(enigma_icons.png);
background-position: center -122px;
background-repeat: no-repeat;
}
#enigmamenu {

Loading…
Cancel
Save