Template:Optin/Default: Difference between revisions

Content deleted Content added
add role="alert" to error so screenreaders *should* read it when shown
trying focus method instead
 
Line 16:
<div class="optin-no-prompt__yes"></html>{{Translated|Template:OptinText/PromptYes}}<html></div>
</div>
<div id="error-optin" class="lp-error" style="display: none;" tabindex="-1"><!-- tabindex="-1" allows focus with js so it can be announced -->
<div role="alert">
</html>{{Translated|Template:OptinText/PleaseSelect}}<html>
<div id="error-optin" class="lp-error" style="display: none;">
</html>{{Translated|Template:OptinText/PleaseSelect}}<html>
</div>
</div>
<div class="optin-smallprint links-in-new-tab">