From dd7ba318cc651cc2c32f69cab2a05d561a53122a Mon Sep 17 00:00:00 2001 From: "Grigorii K. Shartsev" Date: Mon, 26 Feb 2024 12:16:07 +0100 Subject: [PATCH] fix(NcPopover): add aria-modal to some popover-based dialog components Signed-off-by: Grigorii K. Shartsev --- src/components/NcActions/NcActions.vue | 1 + src/components/NcColorPicker/NcColorPicker.vue | 1 + src/components/NcEmojiPicker/NcEmojiPicker.vue | 1 + src/components/NcPopover/NcPopover.vue | 2 +- 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/NcActions/NcActions.vue b/src/components/NcActions/NcActions.vue index 5703b8aeab..a52039dc4d 100644 --- a/src/components/NcActions/NcActions.vue +++ b/src/components/NcActions/NcActions.vue @@ -1804,6 +1804,7 @@ export default { role: this.config.popupRole, // Dialog must have a label 'aria-labelledby': this.actionsMenuSemanticType === 'dialog' ? triggerRandomId : undefined, + 'aria-modal': this.actionsMenuSemanticType === 'dialog' ? 'true' : undefined, }, }, [ actions, diff --git a/src/components/NcColorPicker/NcColorPicker.vue b/src/components/NcColorPicker/NcColorPicker.vue index e773403870..791fbc5f33 100644 --- a/src/components/NcColorPicker/NcColorPicker.vue +++ b/src/components/NcColorPicker/NcColorPicker.vue @@ -170,6 +170,7 @@ export default {