fix(NcActions): Role `menu` needs a label assigned so label by trigger

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
This commit is contained in:
Ferdinand Thiessen 2024-08-29 16:39:30 +02:00
Родитель 749fcaf007
Коммит 5cf16e52a8
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 45FAE7268762B400
1 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@ -1779,8 +1779,9 @@ export default {
tabindex: '-1',
ref: 'menuList',
role: this.config.popupRole,
// Dialog must have a label
'aria-labelledby': this.actionsMenuSemanticType === 'dialog' ? triggerRandomId : undefined,
// For most roles a label is required (dialog, menu), but also in general nothing speaks against labelling a list.
// It is even recommended to do so.
'aria-labelledby': triggerRandomId,
'aria-modal': this.actionsMenuSemanticType === 'dialog' ? 'true' : undefined,
}, [
actions,