From: Julius Härtl Date: Mon, 17 Aug 2020 18:04:05 +0000 (+0200) Subject: Fix keyboard navigation X-Git-Tag: v20.0.0beta1~35^2~18 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=fa2072e36b44051c113aaf1ba6ae6efd8e057480;p=nextcloud-server.git Fix keyboard navigation Signed-off-by: Julius Härtl --- diff --git a/apps/dashboard/src/App.vue b/apps/dashboard/src/App.vue index e86b1e094aa..e266d64c6dd 100644 --- a/apps/dashboard/src/App.vue +++ b/apps/dashboard/src/App.vue @@ -29,7 +29,9 @@ {{ t('dashboard', 'Customize') }} + @click="showModal" + @keyup.enter="showModal" + @keyup.space="showModal">{{ t('dashboard', 'Customize') }} @@ -427,6 +429,7 @@ export default { opacity: 1; text-align: center; + &:focus, &:hover { opacity: 1; background-color: var(--color-background-hover); diff --git a/apps/dashboard/src/components/BackgroundSettings.vue b/apps/dashboard/src/components/BackgroundSettings.vue index 800b76dad9d..9c4bfcfa5ec 100644 --- a/apps/dashboard/src/components/BackgroundSettings.vue +++ b/apps/dashboard/src/components/BackgroundSettings.vue @@ -22,27 +22,35 @@ @@ -138,22 +146,30 @@ export default { margin: 8px; text-align: center; border-radius: var(--border-radius-large); + border-radius: var(--border-radius-large); + border: 2px solid var(--color-main-background); + overflow: hidden; &.current { background-image: var(--color-background-dark); } &--preview { - width: 172px; + width: 100%; height: 96px; background-size: cover; background-position: center center; - border-radius: var(--border-radius-large); - border: 2px solid var(--color-main-background); } - &:hover .background--preview, - &:focus .background--preview { + &.filepicker, &.default { + border: 2px solid var(--color-border); + .background--preview { + line-height: 100px; + } + } + + &:hover, + &:focus { border: 2px solid var(--color-primary); } }