summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-10-23 16:49:56 +0200
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-10-23 17:00:47 +0200
commit8013dab044e7dabb2b61c2aa7e0d47d095ad8e40 (patch)
tree0cfd1370d3527dd894683b1b7ed3612af06cb0b6 /core
parentcf57df6e734b57638480451e92bf22cebda70f26 (diff)
downloadnextcloud-server-8013dab044e7dabb2b61c2aa7e0d47d095ad8e40.tar.gz
nextcloud-server-8013dab044e7dabb2b61c2aa7e0d47d095ad8e40.zip
Allow focus on input with keyboard
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'core')
-rw-r--r--core/css/styles.scss4
-rw-r--r--core/templates/filepicker.html4
2 files changed, 6 insertions, 2 deletions
diff --git a/core/css/styles.scss b/core/css/styles.scss
index 0927687fc76..5f68a0d08e0 100644
--- a/core/css/styles.scss
+++ b/core/css/styles.scss
@@ -742,6 +742,10 @@ code {
opacity: 1;
}
}
+ // keyboard focus
+ #picker-showgridview:focus + #picker-view-toggle {
+ opacity: 1;
+ }
.filelist-container {
box-sizing: border-box;
diff --git a/core/templates/filepicker.html b/core/templates/filepicker.html
index 53daf4111b4..4c66dfc707b 100644
--- a/core/templates/filepicker.html
+++ b/core/templates/filepicker.html
@@ -1,7 +1,7 @@
<div id="{dialog_name}" title="{title}">
<span class="dirtree breadcrumb"></span>
- <input type="checkbox" class="hidden" id="picker-showgridview" checked="checked" />
- <label id="picker-view-toggle" for="picker-showgridview" class="button icon-toggle-filelist" tabindex="0"></label>
+ <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>
<div class="filelist-container">
<div class="emptycontent">
<div class="icon-folder"></div>