Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions static/css/pad.css
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ li[data-key=showusers] > a #online_count {
display: none;
}

.buttonicon:focus {
border: none !important;
}

/* Restyle the toolbar */
.toolbar {
background: transparent;
Expand Down Expand Up @@ -144,13 +148,16 @@ li[data-key=showusers] > a #online_count {
width: 25px;
}

.toolbar ul li a:hover .buttonicon {
.toolbar ul li a:hover .buttonicon,
.toolbar ul li a .buttonicon:focus {
color: #999;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we use the same outline style as the one used for the main application (thin dotted, offset -2px)? When I tab through the toolbar without voiceover enable, I don't see an outline at all.

}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would also be good if the focus style of the toolbar buttons was the same as the hover style

.toolbar ul li a .buttonicon:focus {
border: 0;
outline: none;
.toolbar ul li a .buttonicon:focus,
.toolbar ul li select:focus {
outline: thin dotted;
outline: 5px auto -webkit-focus-ring-color;
outline-offset: -2px;
}

/* Additional icons added by OAE */
Expand Down
7 changes: 5 additions & 2 deletions static/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ exports.postAceInit = function (hook_name, args, cb) {
$('.buttonicon-showusers').removeClass('buttonicon-showusers').addClass('buttonicon-oae buttonicon-user');

// Add extra buttons to the toolbar *after* the style select
$('ul.menu_left').append('<li data-type="button" data-key="colorcheck"><a class="grouped-left" data-l10n-id="pad.settings.colorcheck" title="Toggle authorship colors"><button class="buttonicon buttonicon-oae buttonicon-clearauthorship"></button></a></li>');
$('ul.menu_left').append('<li data-type="button" data-key="download"><a target="_blank" href="' + window.location.pathname + '/export/pdf" class="grouped-right" data-l10n-id="pad.importExport.exportpdf" title="Download"><button class="buttonicon buttonicon-oae buttonicon-download"></button></a></li>');
$('ul.menu_left').append('<li data-type="button" data-key="colorcheck"><a class="grouped-left" data-l10n-id="pad.settings.colorcheck" title="Toggle authorship colors"><button class="buttonicon buttonicon-oae buttonicon-clearauthorship" title="Toggle authorship colors"></button></a></li>');
$('ul.menu_left').append('<li data-type="button" data-key="download"><a target="_blank" href="' + window.location.pathname + '/export/pdf" class="grouped-right" data-l10n-id="pad.importExport.exportpdf" title="Download"><button class="buttonicon buttonicon-oae buttonicon-download" title="Download"></button></a></li>');

// Show the toolbar
$('.toolbar').animate({
Expand All @@ -27,6 +27,9 @@ exports.postAceInit = function (hook_name, args, cb) {
$('#editorcontainerbox').animate({
'top': '55px',
}, 500);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When focussing on the "Toggle autorship colors" and "Download" buttons, voiceover is not reading the text of the buttons. It just announces "button" with the fontawesome character.

// Disable tabbing to download link since there's a button within it
$('.toolbar [data-key="download"] a').attr('tabindex','-1');

// Enable the spellchecker
$('iframe[name="ace_outer"]').contents().find('iframe').contents().find('#innerdocbody').attr('spellcheck', 'true');
Expand Down