add alert attributes

This commit is contained in:
daria 2025-06-05 02:36:50 -07:00
parent 82442bf7c2
commit 41497a136a
No known key found for this signature in database
GPG Key ID: 78018F06E7C6A3CF

View File

@ -2679,7 +2679,10 @@ define([
$creation.append(title);
if (early === 1) {
$creation.append(h('div.cp-creation-early.alert.alert-warning', Messages._getKey('premiumAccess', [
$creation.append(h('div.cp-creation-early.alert.alert-warning',{
role: 'alert',
'aria-live': 'assertive'
}, Messages._getKey('premiumAccess', [
domain
])));
}
@ -2777,7 +2780,10 @@ define([
// Password
let text;
if (type === 'form') {
text = h('div.cp-creation-password-warning.alert.alert-info.dismissable', h('span.cp-inline-alert-text', Messages.form_passwordWarning));
text = h('div.cp-creation-password-warning.alert.alert-info.dismissable',{
role: 'alert',
'aria-live': 'assertive'
}, h('span.cp-inline-alert-text', Messages.form_passwordWarning));
}
var password = h('div.cp-creation-password', [
UI.createCheckbox('cp-creation-password', Messages.properties_addPassword, false),