use method to only visually hide elements, show only for screen reader

This commit is contained in:
Jan-Christoph Borchardt 2014-12-17 14:12:13 +01:00
parent 1b5f43e7c3
commit 6f4ed59883
5 changed files with 16 additions and 5 deletions

View file

@ -290,7 +290,7 @@
var $actionLink = $('<a href="#" original-title="' +
escapeHTML(deleteTitle) +
'" class="action delete icon-delete">' +
'<span class="hidden">' + escapeHTML(deleteTitle) + '</span>' +
'<span class="hidden-visually">' + escapeHTML(deleteTitle) + '</span>' +
'</a>'
);
var $container = context.$file.find('td:last');

View file

@ -710,7 +710,7 @@
'<input id="select-' + this.id + '-' + fileData.id +
'" type="checkbox" class="selectCheckBox"/><label for="select-' + this.id + '-' + fileData.id + '">' +
'<div class="thumbnail" style="background-image:url(' + icon + '); background-size: 32px;"></div>' +
'<span class="hidden">' + t('files', 'Select') + '</span>' +
'<span class="hidden-visually">' + t('files', 'Select') + '</span>' +
'</label>'
);
} else {

View file

@ -7,7 +7,7 @@
<div id="app-settings">
<div id="app-settings-header">
<button class="settings-button" data-apps-slide-toggle="#app-settings-content">
<span class="hidden"><?php p($l->t('Settings'));?></span>
<span class="hidden-visually"><?php p($l->t('Settings'));?></span>
</button>
</div>
<div id="app-settings-content">

View file

@ -59,7 +59,7 @@
<div id="headerName-container">
<input type="checkbox" id="select_all_files" class="select-all"/>
<label for="select_all_files">
<span class="hidden"><?php p($l->t('Select all'))?></span>
<span class="hidden-visually"><?php p($l->t('Select all'))?></span>
</label>
<a class="name sort columntitle" data-sort="name"><span><?php p($l->t( 'Name' )); ?></span><span class="sort-indicator"></span></a>
<span id="selectedActionsList" class="selectedActions">

View file

@ -711,7 +711,18 @@ label.infield {
/* VARIOUS REUSABLE SELECTORS */
.hidden { display:none; }
.hidden {
display: none;
}
.hidden-visually {
position: absolute;
left:-10000px;
top: auto;
width: 1px;
height: 1px;
overflow: hidden;
}
.bold { font-weight:bold; }
.center { text-align:center; }
.inlineblock { display: inline-block; }