mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-04-07 14:06:16 +08:00
[common] Adjust window component for screen readers
This commit is contained in:
@ -158,10 +158,11 @@ define([
|
||||
minwidth: 0,
|
||||
minheight: 0,
|
||||
enableKeyEvents: true,
|
||||
automove: true
|
||||
automove: true,
|
||||
role: 'dialog'
|
||||
};
|
||||
|
||||
var template = '<div class="asc-window<%= modal?" modal":"" %><%= cls?" "+cls:"" %>" id="<%= id %>" style="width:<%= width %>px;">' +
|
||||
var template = '<div class="asc-window<%= modal?" modal":"" %><%= cls?" "+cls:"" %>" id="<%= id %>" style="width:<%= width %>px;" role="<%= role %>" aria-modal="<%= modal %>">' +
|
||||
'<% if (header==true) { %>' +
|
||||
'<div class="header">' +
|
||||
'<div class="tools">' +
|
||||
@ -492,7 +493,8 @@ define([
|
||||
onprimary: onKeyDown,
|
||||
getFocusedComponents: getFocusedComponents,
|
||||
getDefaultFocusableComponent: getDefaultFocusableComponent,
|
||||
tpl: _.template(template)(options)
|
||||
tpl: _.template(template)(options),
|
||||
role: 'alertdialog'
|
||||
});
|
||||
|
||||
var win = new Common.UI.Window(options),
|
||||
|
||||
Reference in New Issue
Block a user