From 4da7637e8194b50f75abbe0d1c1dc956921e51d7 Mon Sep 17 00:00:00 2001 From: Maksim Sukharev Date: Thu, 15 Aug 2024 13:58:35 +0200 Subject: [PATCH 01/10] fix(a11y): migrate CallPhoneDialog to NcDialog Signed-off-by: Maksim Sukharev --- .../CallPhoneDialog/CallPhoneDialog.vue | 39 ++++++++----------- src/components/LeftSidebar/LeftSidebar.vue | 2 +- .../NewConversationContactsPage.vue | 2 +- src/components/SelectPhoneNumber.vue | 28 +++++-------- 4 files changed, 28 insertions(+), 43 deletions(-) diff --git a/src/components/LeftSidebar/CallPhoneDialog/CallPhoneDialog.vue b/src/components/LeftSidebar/CallPhoneDialog/CallPhoneDialog.vue index 715bf4cbdc2..ac9adf11d39 100644 --- a/src/components/LeftSidebar/CallPhoneDialog/CallPhoneDialog.vue +++ b/src/components/LeftSidebar/CallPhoneDialog/CallPhoneDialog.vue @@ -4,15 +4,14 @@ --> - - From 42cf36edcdab920ce802c90574c643a3f4be0bb1 Mon Sep 17 00:00:00 2001 From: Maksim Sukharev Date: Thu, 15 Aug 2024 14:34:32 +0200 Subject: [PATCH 02/10] fix(a11y): migrate MessageTranslateDialog to NcDialog Signed-off-by: Maksim Sukharev --- .../MessageTranslateDialog.vue | 77 +++++++++---------- 1 file changed, 38 insertions(+), 39 deletions(-) diff --git a/src/components/MessagesList/MessagesGroup/Message/MessageButtonsBar/MessageTranslateDialog.vue b/src/components/MessagesList/MessagesGroup/Message/MessageButtonsBar/MessageTranslateDialog.vue index 65b721b085c..a23275da93c 100644 --- a/src/components/MessagesList/MessagesGroup/Message/MessageButtonsBar/MessageTranslateDialog.vue +++ b/src/components/MessagesList/MessagesGroup/Message/MessageButtonsBar/MessageTranslateDialog.vue @@ -4,12 +4,14 @@ --> From d5bffb5b4e837ad8d5f928609deb87619a7b3bdf Mon Sep 17 00:00:00 2001 From: Maksim Sukharev Date: Thu, 15 Aug 2024 17:41:04 +0200 Subject: [PATCH 04/10] fix(a11y): migrate MessageForwarder to NcDialog Signed-off-by: Maksim Sukharev --- .../MessageButtonsBar/MessageForwarder.vue | 61 +++++++++---------- 1 file changed, 28 insertions(+), 33 deletions(-) diff --git a/src/components/MessagesList/MessagesGroup/Message/MessageButtonsBar/MessageForwarder.vue b/src/components/MessagesList/MessagesGroup/Message/MessageButtonsBar/MessageForwarder.vue index e1771ddd60e..d4fa2f7bb54 100644 --- a/src/components/MessagesList/MessagesGroup/Message/MessageButtonsBar/MessageForwarder.vue +++ b/src/components/MessagesList/MessagesGroup/Message/MessageButtonsBar/MessageForwarder.vue @@ -18,29 +18,31 @@ - + close-on-click-outside + @update:open="handleClose"> - - + + From 33d932278dfad1fbbb0d7aff4f8aa599a5f89a7c Mon Sep 17 00:00:00 2001 From: Maksim Sukharev Date: Thu, 15 Aug 2024 18:07:12 +0200 Subject: [PATCH 05/10] fix(a11y): migrate RoomSelector to NcDialog Signed-off-by: Maksim Sukharev --- src/components/RoomSelector.spec.js | 14 ++++++++------ src/components/RoomSelector.vue | 27 ++++++++++++++------------- 2 files changed, 22 insertions(+), 19 deletions(-) diff --git a/src/components/RoomSelector.spec.js b/src/components/RoomSelector.spec.js index e80535f6f78..31a9dce4fb8 100644 --- a/src/components/RoomSelector.spec.js +++ b/src/components/RoomSelector.spec.js @@ -9,6 +9,7 @@ import axios from '@nextcloud/axios' import { generateOcsUrl } from '@nextcloud/router' import NcButton from '@nextcloud/vue/dist/Components/NcButton.js' +import NcDialog from '@nextcloud/vue/dist/Components/NcDialog.js' import ConversationSearchResult from './LeftSidebar/ConversationsList/ConversationSearchResult.vue' import RoomSelector from './RoomSelector.vue' @@ -110,6 +111,7 @@ describe('RoomSelector', () => { stubs: { ConversationsSearchListVirtual: ConversationsSearchListVirtualStub, ConversationSearchResult, + NcDialog, }, propsData: props, }) @@ -242,9 +244,9 @@ describe('RoomSelector', () => { const eventHandler = jest.fn() wrapper.vm.$on('close', eventHandler) - // Act: close modal - const modal = wrapper.findComponent({ name: 'NcModal' }) - await modal.vm.$emit('close') + // Act: close dialog + const dialog = wrapper.findComponent(NcDialog) + await dialog.vm.$emit('update:open') // Assert expect(eventHandler).toHaveBeenCalled() @@ -256,9 +258,9 @@ describe('RoomSelector', () => { const eventHandler = jest.fn() wrapper.vm.$root.$on('close', eventHandler) - // Act: close modal - const modal = wrapper.findComponent({ name: 'NcModal' }) - await modal.vm.$emit('close') + // Act: close dialog + const dialog = wrapper.findComponent(NcDialog) + await dialog.vm.$emit('update:open') // Assert expect(eventHandler).toHaveBeenCalled() diff --git a/src/components/RoomSelector.vue b/src/components/RoomSelector.vue index 0d6888026d6..0b88ac86026 100644 --- a/src/components/RoomSelector.vue +++ b/src/components/RoomSelector.vue @@ -4,12 +4,11 @@ --> - + + @@ -727,11 +723,7 @@ export default { } } -.log-content { - width: 590px; -} - -:deep(.modal-container__content) { - padding: 5px; +.log-content :deep(.textarea__input) { + height: unset; } From 939d1d87bb5ac6d3f6f672d5faa553929403c0ad Mon Sep 17 00:00:00 2001 From: Maksim Sukharev Date: Thu, 15 Aug 2024 13:34:43 +0200 Subject: [PATCH 07/10] fix(a11y): provide accessible heading to BreakoutRoomsActions Signed-off-by: Maksim Sukharev --- .../BreakoutRoomsEditor.vue | 2 +- .../BreakoutRooms/BreakoutRoomsActions.vue | 22 ++++++++++++------- 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/src/components/BreakoutRoomsEditor/BreakoutRoomsEditor.vue b/src/components/BreakoutRoomsEditor/BreakoutRoomsEditor.vue index c628dba7b1c..8716136329e 100644 --- a/src/components/BreakoutRoomsEditor/BreakoutRoomsEditor.vue +++ b/src/components/BreakoutRoomsEditor/BreakoutRoomsEditor.vue @@ -72,7 +72,7 @@ @create-rooms="handleCreateRooms" /> - +