From 41ed0cee1da14fe1936a285340def6ca4cc59a37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Fri, 13 May 2022 12:40:05 +0200 Subject: [PATCH] Improve filter popover accessibility MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- src/components/Controls.vue | 223 ++++++++++++++++++------------------ 1 file changed, 114 insertions(+), 109 deletions(-) diff --git a/src/components/Controls.vue b/src/components/Controls.vue index d5ecb88c0..4f451737e 100644 --- a/src/components/Controls.vue +++ b/src/components/Controls.vue @@ -70,107 +70,113 @@
- - - - - +
+ + + + + -
-

{{ t('deck', 'Filter by tag') }}

-
- - +
+

{{ t('deck', 'Filter by tag') }}

+
+ + +
+ +

{{ t('deck', 'Filter by assigned user') }}

+
+ + +
+
+ + +
+ +

{{ t('deck', 'Filter by due date') }}

+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
- -

{{ t('deck', 'Filter by assigned user') }}

-
- - -
-
- - -
- -

{{ t('deck', 'Filter by due date') }}

- -
- - -
- -
- - -
- -
- - -
- -
- - -
- -
- - -
- - -
- + +
import { mapState, mapGetters } from 'vuex' -import { Actions, ActionButton, Popover, Avatar } from '@nextcloud/vue' +import { Actions, ActionButton, Avatar, Button, Popover } from '@nextcloud/vue' import labelStyle from '../mixins/labelStyle' import CardCreateDialog from '../CardCreateDialog' export default { name: 'Controls', components: { - Actions, ActionButton, Popover, Avatar, CardCreateDialog, + Actions, ActionButton, Avatar, Button, Popover, CardCreateDialog, }, mixins: [labelStyle], props: { @@ -399,12 +405,6 @@ export default { .board-action-buttons { display: flex; - button { - border: 0; - width: 44px; - margin: 0 0 0 -1px; - background-color: transparent; - } } .deck-search { @@ -432,8 +432,9 @@ export default { } .filter { - width: 250px; - max-height: 80vh; + width: 240px; + max-height: calc(100vh - 150px); + position: relative; overflow: auto; padding: 8px; } @@ -444,6 +445,10 @@ export default { }