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:
Родитель
749fcaf007
Коммит
5cf16e52a8
|
@ -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,
|
||||
|
|
Загрузка…
Ссылка в новой задаче