From 41497a136a0db940e39d0c373940e926a0cfc446 Mon Sep 17 00:00:00 2001 From: daria <95225431+dariiing@users.noreply.github.com> Date: Thu, 5 Jun 2025 02:36:50 -0700 Subject: [PATCH] add alert attributes --- www/common/common-ui-elements.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/www/common/common-ui-elements.js b/www/common/common-ui-elements.js index 8ccabef49..c327887e4 100644 --- a/www/common/common-ui-elements.js +++ b/www/common/common-ui-elements.js @@ -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),