aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2014-12-19 00:30:56 +0100
committerMorris Jobke <hey@morrisjobke.de>2014-12-19 00:30:56 +0100
commit3036a8714d67c7d9fa0fc6fc6bdfdce1a090f1d9 (patch)
treeb67257d9c33e862ee7ffb83305796ba91dc4d5ea /apps
parent114a6464e87294c27e4967e74b1e3372cf4e92fa (diff)
parentcd81687a38c4f46c6665e640a352ba7adcd1f243 (diff)
downloadnextcloud-server-3036a8714d67c7d9fa0fc6fc6bdfdce1a090f1d9.tar.gz
nextcloud-server-3036a8714d67c7d9fa0fc6fc6bdfdce1a090f1d9.zip
Merge pull request #12941 from owncloud/wave-accessibility-compliance
Wave accessibility compliance
Diffstat (limited to 'apps')
-rw-r--r--apps/files/css/upload.css2
-rw-r--r--apps/files/js/file-upload.js13
-rw-r--r--apps/files/templates/appnavigation.php6
-rw-r--r--apps/files/templates/list.php16
-rw-r--r--apps/files_sharing/js/public.js2
-rw-r--r--apps/files_sharing/templates/public.php6
-rw-r--r--apps/files_trashbin/js/app.js1
-rw-r--r--apps/files_trashbin/templates/index.php8
8 files changed, 36 insertions, 18 deletions
diff --git a/apps/files/css/upload.css b/apps/files/css/upload.css
index cc383879fb2..adf1e9d13f8 100644
--- a/apps/files/css/upload.css
+++ b/apps/files/css/upload.css
@@ -9,7 +9,7 @@
overflow: hidden;
vertical-align: top;
}
-#upload a {
+#upload .icon-upload {
position: relative;
display: block;
width: 100%;
diff --git a/apps/files/js/file-upload.js b/apps/files/js/file-upload.js
index 9ea8603c74a..8b0753fc647 100644
--- a/apps/files/js/file-upload.js
+++ b/apps/files/js/file-upload.js
@@ -187,7 +187,7 @@ OC.Upload = {
},
_hideProgressBar: function() {
- $('#uploadprogresswrapper input.stop').fadeOut();
+ $('#uploadprogresswrapper .stop').fadeOut();
$('#uploadprogressbar').fadeOut(function() {
$('#file_upload_start').trigger(new $.Event('resized'));
});
@@ -469,13 +469,13 @@ OC.Upload = {
OC.Upload.log('progress handle fileuploadadd', e, data);
//show cancel button
//if (data.dataType !== 'iframe') { //FIXME when is iframe used? only for ie?
- // $('#uploadprogresswrapper input.stop').show();
+ // $('#uploadprogresswrapper .stop').show();
//}
});
// add progress handlers
fileupload.on('fileuploadstart', function(e, data) {
OC.Upload.log('progress handle fileuploadstart', e, data);
- $('#uploadprogresswrapper input.stop').show();
+ $('#uploadprogresswrapper .stop').show();
$('#uploadprogressbar').progressbar({value: 0});
OC.Upload._showProgressBar();
});
@@ -589,10 +589,15 @@ OC.Upload = {
var form = $('<form></form>');
var input = $('<input type="text">');
var newName = $(this).attr('data-newname') || '';
+ var fileType = 'input-' + $(this).attr('data-type');
if (newName) {
input.val(newName);
+ input.attr('id', fileType);
}
- form.append(input);
+ var label = $('<label class="hidden-visually" for="">' + escapeHTML(newName) + '</label>');
+ label.attr('for', fileType);
+
+ form.append(label).append(input);
$(this).append(form);
var lastPos;
var checkInput = function () {
diff --git a/apps/files/templates/appnavigation.php b/apps/files/templates/appnavigation.php
index faf2be39b03..8fd2b76f9c0 100644
--- a/apps/files/templates/appnavigation.php
+++ b/apps/files/templates/appnavigation.php
@@ -11,8 +11,10 @@
</button>
</div>
<div id="app-settings-content">
- <h2><?php p($l->t('WebDAV'));?></h2>
- <div><input id="webdavurl" type="text" readonly="readonly" value="<?php p(OC_Helper::linkToRemote('webdav')); ?>" /></div>
+ <h2>
+ <label for="webdavurl"><?php p($l->t('WebDAV'));?></label>
+ </h2>
+ <input id="webdavurl" type="text" readonly="readonly" value="<?php p(OC_Helper::linkToRemote('webdav')); ?>" />
<em><?php print_unescaped($l->t('Use this address to <a href="%s" target="_blank">access your Files via WebDAV</a>', array(link_to_docs('user-webdav'))));?></em>
</div>
</div>
diff --git a/apps/files/templates/list.php b/apps/files/templates/list.php
index 8ecec066a51..4224d9bc100 100644
--- a/apps/files/templates/list.php
+++ b/apps/files/templates/list.php
@@ -34,13 +34,17 @@
value="(max <?php isset($_['uploadMaxHumanFilesize']) ? p($_['uploadMaxHumanFilesize']) : ''; ?>)">
<input type="file" id="file_upload_start" name='files[]'
data-url="<?php print_unescaped(OCP\Util::linkTo('files', 'ajax/upload.php')); ?>" />
- <a href="#" class="svg icon-upload"></a>
+ <label for="file_upload_start" class="svg icon-upload">
+ <span class="hidden-visually"><?php p($l->t('Upload'))?></span>
+ </label>
</div>
<div id="uploadprogresswrapper">
<div id="uploadprogressbar"></div>
- <input type="button" class="stop icon-close"
- style="display:none" value=""
- alt="<?php p($l->t('Cancel upload'))?>" />
+ <button class="stop icon-close" style="display:none">
+ <span class="hidden-visually">
+ <?php p($l->t('Cancel upload'))?>
+ </span>
+ </button>
</div>
</div>
<div id="file_action_panel"></div>
@@ -68,7 +72,7 @@
<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">
<a href="" class="download">
- <img class="svg" alt="Download"
+ <img class="svg" alt=""
src="<?php print_unescaped(OCP\image_path("core", "actions/download.svg")); ?>" />
<?php p($l->t('Download'))?>
</a>
@@ -82,7 +86,7 @@
<a id="modified" class="columntitle" data-sort="mtime"><span><?php p($l->t( 'Modified' )); ?></span><span class="sort-indicator"></span></a>
<span class="selectedActions"><a href="" class="delete-selected">
<?php p($l->t('Delete'))?>
- <img class="svg" alt="<?php p($l->t('Delete'))?>"
+ <img class="svg" alt=""
src="<?php print_unescaped(OCP\image_path("core", "actions/delete.svg")); ?>" />
</a></span>
</th>
diff --git a/apps/files_sharing/js/public.js b/apps/files_sharing/js/public.js
index 2ddcd84d4c1..861da2065ea 100644
--- a/apps/files_sharing/js/public.js
+++ b/apps/files_sharing/js/public.js
@@ -96,7 +96,7 @@ OCA.Sharing.PublicApp = {
scalingup: 0
};
- var img = $('<img class="publicpreview">');
+ var img = $('<img class="publicpreview" alt="">');
if (previewSupported === 'true' || mimetype.substr(0, mimetype.indexOf('/')) === 'image' && mimetype !== 'image/svg+xml') {
img.attr('src', OC.filePath('files_sharing', 'ajax', 'publicpreview.php') + '?' + OC.buildQueryString(params));
img.appendTo('#imgframe');
diff --git a/apps/files_sharing/templates/public.php b/apps/files_sharing/templates/public.php
index 57c8707e962..0384d9a60aa 100644
--- a/apps/files_sharing/templates/public.php
+++ b/apps/files_sharing/templates/public.php
@@ -45,7 +45,11 @@ $previewSupported = OC\Preview::isMimeSupported($_['mimetype']) ? 'true' : 'fals
<header><div id="header" class="<?php p((isset($_['folder']) ? 'share-folder' : 'share-file')) ?>">
<a href="<?php print_unescaped(link_to('', 'index.php')); ?>"
title="" id="owncloud">
- <div class="logo-wide svg"></div>
+ <div class="logo-wide svg">
+ <h1 class="hidden-visually">
+ <?php p($theme->getName()); ?>
+ </h1>
+ </div>
</a>
<div id="logo-claim" style="display:none;"><?php p($theme->getLogoClaim()); ?></div>
<div class="header-right">
diff --git a/apps/files_trashbin/js/app.js b/apps/files_trashbin/js/app.js
index 72d9f4a6771..c5de08d5922 100644
--- a/apps/files_trashbin/js/app.js
+++ b/apps/files_trashbin/js/app.js
@@ -68,6 +68,7 @@ OCA.Trashbin.App = {
render: function(actionSpec, isDefault, context) {
var $actionLink = fileActions._makeActionLink(actionSpec, context);
$actionLink.attr('original-title', t('files', 'Delete permanently'));
+ $actionLink.children('img').attr('alt', t('files', 'Delete permanently'));
context.$file.find('td:last').append($actionLink);
return $actionLink;
},
diff --git a/apps/files_trashbin/templates/index.php b/apps/files_trashbin/templates/index.php
index 82bc360a9f5..fe1311340c7 100644
--- a/apps/files_trashbin/templates/index.php
+++ b/apps/files_trashbin/templates/index.php
@@ -18,11 +18,13 @@
<th id='headerName' class="hidden column-name">
<div id="headerName-container">
<input type="checkbox" id="select_all_trash" class="select-all"/>
- <label for="select_all_trash"></label>
+ <label for="select_all_trash">
+ <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'>
<a href="" class="undelete">
- <img class="svg" alt="<?php p($l->t( 'Restore' )); ?>"
+ <img class="svg" alt=""
src="<?php print_unescaped(OCP\image_path("core", "actions/history.svg")); ?>" />
<?php p($l->t('Restore'))?>
</a>
@@ -34,7 +36,7 @@
<span class="selectedActions">
<a href="" class="delete-selected">
<?php p($l->t('Delete'))?>
- <img class="svg" alt="<?php p($l->t('Delete'))?>"
+ <img class="svg" alt=""
src="<?php print_unescaped(OCP\image_path("core", "actions/delete.svg")); ?>" />
</a>
</span>