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',
|
tabindex: '-1',
|
||||||
ref: 'menuList',
|
ref: 'menuList',
|
||||||
role: this.config.popupRole,
|
role: this.config.popupRole,
|
||||||
// Dialog must have a label
|
// For most roles a label is required (dialog, menu), but also in general nothing speaks against labelling a list.
|
||||||
'aria-labelledby': this.actionsMenuSemanticType === 'dialog' ? triggerRandomId : undefined,
|
// It is even recommended to do so.
|
||||||
|
'aria-labelledby': triggerRandomId,
|
||||||
'aria-modal': this.actionsMenuSemanticType === 'dialog' ? 'true' : undefined,
|
'aria-modal': this.actionsMenuSemanticType === 'dialog' ? 'true' : undefined,
|
||||||
}, [
|
}, [
|
||||||
actions,
|
actions,
|
||||||
|
|
Загрузка…
Ссылка в новой задаче