Skip to content

Commit

Permalink
Make possible to focus grid/list view toggle via keyboard
Browse files Browse the repository at this point in the history
Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
  • Loading branch information
jancborchardt committed Jun 29, 2019
1 parent 2c44946 commit 900440e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion apps/files/templates/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<input type="checkbox" class="hidden-visually" id="showgridview"
<?php if($_['showgridview']) { ?>checked="checked" <?php } ?>/>
<label id="view-toggle" for="showgridview" class="button <?php p($_['showgridview'] ? 'icon-toggle-filelist' : 'icon-toggle-pictures') ?>"
title="<?php p($l->t('Toggle grid view'))?>"></label>
title="<?php p($l->t('Toggle grid view'))?>" tabindex="0"></label>
<?php } ?>

<?php foreach ($_['appContents'] as $content) { ?>
Expand Down
4 changes: 2 additions & 2 deletions apps/files_sharing/templates/public.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@
<input type="checkbox" class="hidden-visually" id="showgridview"
<?php if($_['showgridview']) { ?>checked="checked" <?php } ?>/>
<label id="view-toggle" for="showgridview" class="button <?php p($_['showgridview'] ? 'icon-toggle-filelist' : 'icon-toggle-pictures') ?>"
title="<?php p($l->t('Toggle grid view'))?>"></label>
title="<?php p($l->t('Toggle grid view'))?>" tabindex="0"></label>
<?php } ?>

<!-- files listing -->
<div id="files-public-content">
<div id="preview">
Expand Down
2 changes: 1 addition & 1 deletion core/templates/filepicker.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</nav>
</span>
<input type="checkbox" class="hidden-visually" id="picker-showgridview" checked="checked" />
<label id="picker-view-toggle" for="picker-showgridview" class="button icon-toggle-filelist"></label>
<label id="picker-view-toggle" for="picker-showgridview" class="button icon-toggle-filelist" tabindex="0"></label>
<div class="filelist-container">
<div class="emptycontent">
<div class="icon-folder"></div>
Expand Down

0 comments on commit 900440e

Please sign in to comment.