Improved a11y of notices
authorMarcel Werk <burntime@woltlab.com>
Sun, 10 Mar 2019 16:16:39 +0000 (17:16 +0100)
committerMarcel Werk <burntime@woltlab.com>
Sun, 10 Mar 2019 16:16:39 +0000 (17:16 +0100)
See #2713

39 files changed:
com.woltlab.wcf/templates/accountManagement.tpl
com.woltlab.wcf/templates/articleAdd.tpl
com.woltlab.wcf/templates/articleList.tpl
com.woltlab.wcf/templates/avatarEdit.tpl
com.woltlab.wcf/templates/categoryArticleList.tpl
com.woltlab.wcf/templates/categoryTrophyList.tpl
com.woltlab.wcf/templates/combinedTagged.tpl
com.woltlab.wcf/templates/deletedContentList.tpl
com.woltlab.wcf/templates/following.tpl
com.woltlab.wcf/templates/footer.tpl
com.woltlab.wcf/templates/formError.tpl
com.woltlab.wcf/templates/ignoredUsers.tpl
com.woltlab.wcf/templates/login.tpl
com.woltlab.wcf/templates/lostPassword.tpl
com.woltlab.wcf/templates/membersList.tpl
com.woltlab.wcf/templates/moderationList.tpl
com.woltlab.wcf/templates/moderationReportDialog.tpl
com.woltlab.wcf/templates/newPassword.tpl
com.woltlab.wcf/templates/notificationList.tpl
com.woltlab.wcf/templates/notificationSettings.tpl
com.woltlab.wcf/templates/offline.tpl
com.woltlab.wcf/templates/paidSubscriptionList.tpl
com.woltlab.wcf/templates/recentActivityList.tpl
com.woltlab.wcf/templates/register.tpl
com.woltlab.wcf/templates/registerActivation.tpl
com.woltlab.wcf/templates/search.tpl
com.woltlab.wcf/templates/settings.tpl
com.woltlab.wcf/templates/signatureEdit.tpl
com.woltlab.wcf/templates/tagSearch.tpl
com.woltlab.wcf/templates/tagged.tpl
com.woltlab.wcf/templates/trophy.tpl
com.woltlab.wcf/templates/trophyList.tpl
com.woltlab.wcf/templates/unreadArticleList.tpl
com.woltlab.wcf/templates/user.tpl
com.woltlab.wcf/templates/userBirthdayList.tpl
com.woltlab.wcf/templates/userNotice.tpl
com.woltlab.wcf/templates/userProfileAbout.tpl
com.woltlab.wcf/templates/userSearch.tpl
com.woltlab.wcf/templates/watchedArticleList.tpl

index 8262f074ddfd2ec2fb2eb6cd80f27a75e49cca65..90a94e1b237cc7e9d19995c64e5f7277d57bf0b9 100644 (file)
@@ -4,10 +4,10 @@
 
 {include file='formError'}
 
-<p class="warning">{lang}wcf.user.accountManagement.warning{/lang}</p>
+<p class="warning" role="status">{lang}wcf.user.accountManagement.warning{/lang}</p>
 
 {if $success|isset && $success|count > 0}
-       <div class="success">
+       <div class="success" role="status">
                {foreach from=$success item=successMessage}
                        <p>{lang}{@$successMessage}{/lang}</p>
                {/foreach}
index f149a9eeeb68f9e522af7b210956443e0654c075..355012dcdc4d0414ccee4ac081b3fe05b6211da9 100644 (file)
 {include file='formError'}
 
 {if $success|isset}
-       <p class="success">{lang}wcf.global.success.{$action}{/lang}</p>
+       <p class="success" role="status">{lang}wcf.global.success.{$action}{/lang}</p>
 {/if}
 
 {if $action == 'edit'}
        <p class="info jsArticleNoticeTrash"{if !$article->isDeleted} style="display: none;"{/if}>{lang}wcf.acp.article.trash.notice{/lang}</p>
        
-       {if $lastVersion}<p class="info">{lang}wcf.acp.article.lastVersion{/lang}</p>{/if}
+       {if $lastVersion}<p class="info" role="status">{lang}wcf.acp.article.lastVersion{/lang}</p>{/if}
 {/if}
 
 <form class="articleAddForm" method="post" action="{if $action == 'add'}{link controller='ArticleAdd'}{/link}{else}{link controller='ArticleEdit' id=$articleID}{/link}{/if}">
index 504ab36e5d832a52e75ed0e656662332bb46d87c..e56b92e61e55bd8586728494e7f59008942926b5 100644 (file)
                {include file='articleListItems'}
        </div>
 {else}
-       <p class="info">{lang}wcf.global.noItems{/lang}</p>
+       <p class="info" role="status">{lang}wcf.global.noItems{/lang}</p>
 {/if}
 
 <footer class="contentFooter">
index 03193c37adb28610f2536a2e835c8cc1a4a83c0c..0ebe55c32878ec7a55daad86215085b9a09b8a32 100644 (file)
@@ -3,13 +3,13 @@
 {include file='header' __disableAds=true __sidebarLeftHasMenu=true}
 
 {if $__wcf->user->disableAvatar}
-       <p class="error">{lang}wcf.user.avatar.error.disabled{/lang}</p>
+       <p class="error" role="alert">{lang}wcf.user.avatar.error.disabled{/lang}</p>
 {/if}
 
 {include file='formError'}
 
 {if $success|isset}
-       <p class="success">{lang}wcf.global.success.edit{/lang}</p>
+       <p class="success" role="status">{lang}wcf.global.success.edit{/lang}</p>
 {/if}
 
 <form method="post" action="{link controller='AvatarEdit'}{/link}" id="avatarForm">
index b4ff17be1f50115701af9eb019ad676ff2c0af51..a6d7cac427a696076b6461fc065c0f3ce0c73813 100644 (file)
                {include file='articleListItems'}
        </div>
 {else}
-       <p class="info">{lang}wcf.global.noItems{/lang}</p>
+       <p class="info" role="status">{lang}wcf.global.noItems{/lang}</p>
 {/if}
 
 <footer class="contentFooter">
index 490798b3d6ae1985c7af14ddffd8823d9b887949..eac8c8707c72416de635d40fc365e596b40077c3 100644 (file)
@@ -46,7 +46,7 @@
                                {/foreach}
                        </ol>
                {else}
-                       <p class="info">{lang}wcf.global.noItems{/lang}</p>
+                       <p class="info" role="status">{lang}wcf.global.noItems{/lang}</p>
                {/if}
        </div>
 </div>
index 3e890a5084ac117898050a3fa054d4873e3891fc..be1c1ba302d40062fcf9579214774fb8ed662f28 100644 (file)
@@ -58,7 +58,7 @@
 {if $items}
        {include file=$resultListTemplateName application=$resultListApplication}
 {else}
-       <p class="info">{lang}wcf.tagging.taggedObjects.noResults{/lang}</p>
+       <p class="info" role="status">{lang}wcf.tagging.taggedObjects.noResults{/lang}</p>
 {/if}
 
 <footer class="contentFooter">
index 97ead3b84e1bf173731bbdbde250818869e2ac7d..b970d48b49bb549e7c3bd78d0b75f2f886fcd879 100644 (file)
@@ -29,7 +29,7 @@
 {if $items}
        {include file=$resultListTemplateName application=$resultListApplication}
 {else}
-       <p class="info">{lang}wcf.global.noItems{/lang}</p>
+       <p class="info" role="status">{lang}wcf.global.noItems{/lang}</p>
 {/if}
 
 <footer class="contentFooter">
index 8a8cb94eafa37868ce4702a45493ce93b8f9d2a3..bd85e2c00e3c07edc4634f6b4ca7b049fdb52fac 100644 (file)
@@ -54,7 +54,7 @@
                {/hascontent}
        </footer>
 {else}
-       <p class="info">{lang}wcf.user.following.noUsers{/lang}</p>
+       <p class="info" role="status">{lang}wcf.user.following.noUsers{/lang}</p>
 {/if}
 
 <script data-relocate="true">
index 81eff3bbcd93e64d23445df37c5115118be3cb13..e2c9e1ad93357537f266519db1554bb18f828223 100644 (file)
        {event name='pageFooterStickyNotice'}
        
        <noscript>
-               <div class="info">
+               <div class="info" role="status">
                        <div class="layoutBoundary">
                                <span class="javascriptDisabledWarningText">{lang}wcf.page.javascriptDisabled{/lang}</span>
                        </div>
index d9b2e5e9d40930a937c21146d88c8ba72915e849..3e8987cc86b6dfaae78f824c03141211e48c7151 100644 (file)
@@ -1,7 +1,7 @@
 {if !$errorField|empty}
        {if ($errorField|is_array && $errorField[__securityToken]|isset) || $errorField == '__securityToken'}
-               <p class="error">{lang}wcf.global.form.error.securityToken{/lang}</p>
+               <p class="error" role="alert">{lang}wcf.global.form.error.securityToken{/lang}</p>
        {else}
-               <p class="error">{lang}wcf.global.form.error{/lang}</p>
+               <p class="error" role="alert">{lang}wcf.global.form.error{/lang}</p>
        {/if}
 {/if}
\ No newline at end of file
index 2c7e6eddaeb43de181c56879ee46fda2b9915efb..d18f90b77433aa3dc5c5f4468f2fbd23913a266c 100644 (file)
@@ -54,7 +54,7 @@
                {/hascontent}
        </footer>
 {else}
-       <p class="info">{lang}wcf.user.ignoredUsers.noUsers{/lang}</p>
+       <p class="info" role="status">{lang}wcf.user.ignoredUsers.noUsers{/lang}</p>
 {/if}
 
 <script data-relocate="true">
index ab63387697b7054fe72824088793a0073539452f..90393aae97c9fc9ab931e4d70ed69f7286307f5c 100644 (file)
@@ -1,9 +1,9 @@
 {include file='header' __disableLoginLink=true __disableAds=true}
 
-{if $forceLoginRedirect}<p class="info">{lang}wcf.user.login.forceLogin{/lang}</p>{/if}
+{if $forceLoginRedirect}<p class="info" role="status">{lang}wcf.user.login.forceLogin{/lang}</p>{/if}
 
 {if !$errorField|empty && $errorField == 'cookie'}
-       <p class="error">{lang}wcf.user.login.error.cookieRequired{/lang}</p>
+       <p class="error" role="alert">{lang}wcf.user.login.error.cookieRequired{/lang}</p>
 {else}
        {include file='formError'}
 {/if}
index 8a5e200b2a4ef4b65fd944370783f0b2f4c8e1a5..6f9b0bb27d50fb0a87561cbc0f452dc9e7397997 100644 (file)
@@ -1,6 +1,6 @@
 {include file='header' __disableAds=true}
 
-<p class="info">{lang}wcf.user.lostPassword.description{/lang}</p>
+<p class="info" role="status">{lang}wcf.user.lostPassword.description{/lang}</p>
 
 {include file='formError'}
 
index 91e0ad42525da65a387a35a0361c555ecafe911a..cc0f1a0c6a7eebba08fc68574638be104141ee56 100644 (file)
                </form>
        </div>
 {else}
-       <p class="info">{lang}wcf.user.members.noMembers{/lang}</p>
+       <p class="info" role="status">{lang}wcf.user.members.noMembers{/lang}</p>
 {/if}
 
 <footer class="contentFooter">
index d73302ba70ecaad18a979f0e83cd220883176304..dbc2aa1719791ff64a328df7c75a9e4f76cca97d 100644 (file)
                {/hascontent}
        </footer>
 {else}
-       <p class="info">{lang}wcf.global.noItems{/lang}</p>
+       <p class="info" role="status">{lang}wcf.global.noItems{/lang}</p>
 {/if}
 
 <script data-relocate="true">
index d36af6e875ae9fb2c99897566744838706a7af1c..0c1a6401825f0b734108bedda4b299a8cf320e23 100644 (file)
@@ -1,5 +1,5 @@
 {if $alreadyReported}
-       <p class="info">{lang}wcf.moderation.report.alreadyReported{/lang}</p>
+       <p class="info" role="status">{lang}wcf.moderation.report.alreadyReported{/lang}</p>
 {else}
        <section class="section">
                <h2 class="sectionTitle">{lang}wcf.moderation.report.reason{/lang}</h2>
index 1c771802f4ac6f9aa23fd6be9df9d4e369cd492f..fd9759106057f4fc899b79b6132c047def45b3b8 100644 (file)
@@ -2,7 +2,7 @@
 
 {include file='formError'}
 
-<p class="info">{lang}wcf.user.newPassword.info{/lang}</p>
+<p class="info" role="status">{lang}wcf.user.newPassword.info{/lang}</p>
 
 <form method="post" action="{link controller='NewPassword'}{/link}">
        <div class="section">
index 7f40d3e3d37289825925e8b0616b0c4b24f3bae3..0d765897166509cf4afcf8e30a88a6004175fd64 100644 (file)
                {/hascontent}
        </footer>
 {else}
-       <p class="info">{lang}wcf.user.notification.noNotifications{/lang}</p>
+       <p class="info" role="status">{lang}wcf.user.notification.noNotifications{/lang}</p>
 {/if}
 
 <script data-relocate="true">
index f1849ada96dc3ce9e140440fc57242057c553aab..cfb7071b4a432716cbcab4474175601524e81e9c 100644 (file)
@@ -11,7 +11,7 @@
 {include file='formError'}
 
 {if $success|isset}
-       <p class="success">{lang}wcf.global.success.edit{/lang}</p>
+       <p class="success" role="status">{lang}wcf.global.success.edit{/lang}</p>
 {/if}
 
 <form method="post" action="{link controller='NotificationSettings'}{/link}" id="notificationSettings">
index bd4a046d97d1a06c842e174c8e8ab4f61800c329..f782398a2c2897441cca0874a6e41dec2ee2a335 100644 (file)
@@ -1,6 +1,6 @@
 {include file='header' skipBreadcrumbs=true}
 
-<div class="warning">
+<div class="warning" role="status">
        <p><strong>{lang}wcf.page.offline{/lang}</strong></p>
        <p>{if OFFLINE_MESSAGE_ALLOW_HTML}{@OFFLINE_MESSAGE|language}{else}{@OFFLINE_MESSAGE|language|newlineToBreak}{/if}</p>
 </div>
index a1c0b76e16fb39345bb9a8cbb02df881a41dc7a1..039008898a848c79ca6ff77d69c8f0a9187fa6c4 100644 (file)
@@ -85,7 +85,7 @@
 {/if}
 
 {if !$subscriptions|count && !$userSubscriptions|count}
-       <p class="info">{lang}wcf.global.noItems{/lang}</p>
+       <p class="info" role="status">{lang}wcf.global.noItems{/lang}</p>
 {/if}
 
 <footer class="contentFooter">
index f656fd0c25d6c07a9786ef2e8bf12a7d327c69b6..0577fd9c4ab0c99d95335739cd3eb4a7b7b07388 100644 (file)
@@ -17,7 +17,7 @@
                {/hascontent}
        </footer>
 {else}
-       <p class="info">{lang}wcf.user.recentActivity.noEntries{/lang}</p>
+       <p class="info" role="status">{lang}wcf.user.recentActivity.noEntries{/lang}</p>
 {/if}
 
 <script data-relocate="true">
index 9cb27e83b3f63702edd428a3dc128753541201be..82eb8177b3bec127e6c9557a89ce13852a6250a9 100644 (file)
@@ -9,7 +9,7 @@
 {include file='header' __disableLoginLink=true __disableAds=true}
 
 {if $isExternalAuthentication}
-       <p class="info">{lang}wcf.user.3rdparty.{$__wcf->session->getVar('__3rdPartyProvider')}.register{/lang}</p>
+       <p class="info" role="status">{lang}wcf.user.3rdparty.{$__wcf->session->getVar('__3rdPartyProvider')}.register{/lang}</p>
 {/if}
 
 {include file='formError'}
index 16bbcd8c65db524d25cf5cf8afe3bdf852f39c5a..2711ff0a9e4cc3f18929c1973c5e413b59fa4cfd 100644 (file)
@@ -1,6 +1,6 @@
 {include file='header' __disableAds=true}
 
-{if $__wcf->user->userID && $__wcf->user->activationCode}<p class="info">{lang}wcf.user.registerActivation.info{/lang}</p>{/if}
+{if $__wcf->user->userID && $__wcf->user->activationCode}<p class="info" role="status">{lang}wcf.user.registerActivation.info{/lang}</p>{/if}
 
 {include file='formError'}
 
index 307600bd03ab134224cc9eadd40a65f2049acd37..8b58a6a52ad215056689ac458f1cdef9455af0f0 100644 (file)
@@ -3,7 +3,7 @@
 {include file='formError'}
 
 {if $errorMessage|isset}
-       <p class="error">{@$errorMessage}</p>
+       <p class="error" role="alert">{@$errorMessage}</p>
 {/if}
 
 <form method="post" action="{link controller='Search'}{/link}">
index 87992dcf088dd415cccb638f6a2e15be348c9abf..751b24d0e9c5a1d6adfcd5b4002763a720339de4 100644 (file)
@@ -9,7 +9,7 @@
 {include file='formError'}
 
 {if $success|isset}
-       <p class="success">{lang}wcf.global.success.edit{/lang}</p>
+       <p class="success" role="status">{lang}wcf.global.success.edit{/lang}</p>
 {/if}
 
 <form method="post" action="{link controller='Settings'}{/link}">
index b4c9dea60182cf4b3f29b88f097c2edaa71c5f96..f9bed23984b592308cd69a8535431b23db03edc3 100644 (file)
@@ -5,11 +5,11 @@
 {include file='formError'}
 
 {if $success|isset}
-       <p class="success">{lang}wcf.global.success.edit{/lang}</p>
+       <p class="success" role="status">{lang}wcf.global.success.edit{/lang}</p>
 {/if}
 
 {if $__wcf->user->disableSignature}
-       <p class="error">{lang}wcf.user.signature.error.disabled{/lang}</p>
+       <p class="error" role="alert">{lang}wcf.user.signature.error.disabled{/lang}</p>
 {/if}
 
 <form method="post" action="{link controller='SignatureEdit'}{/link}">
index 39833b9438e0ffedd65b948af598622a0ea86f93..305c28ec7f5f94614553a1f4ff095a04474a89e1 100644 (file)
@@ -3,7 +3,7 @@
 {include file='formError'}
 
 {if $errorMessage|isset}
-       <p class="error">{@$errorMessage}</p>
+       <p class="error" role="alert">{@$errorMessage}</p>
 {/if}
 
 <form method="post" action="{link controller='TagSearch'}{/link}">
index 540169499a1b0ac844cb369a4c193b048ae61058..1f4015d677c9c7064db10e32a07bc1d724ab7c53 100644 (file)
@@ -45,7 +45,7 @@
 {if $items}
        {include file=$resultListTemplateName application=$resultListApplication}
 {else}
-       <p class="info">{lang}wcf.tagging.taggedObjects.noResults{/lang}</p>
+       <p class="info" role="status">{lang}wcf.tagging.taggedObjects.noResults{/lang}</p>
 {/if}
 
 <footer class="contentFooter">
index 95a9fcc5632ed30688fe4474b85af4095ce6fc3f..621d4dfb451fbdaee11cc7c571c1b4286b98f86a 100644 (file)
@@ -52,7 +52,7 @@
                {/foreach}
        </ol>
 {else}
-       <p class="info">{lang}wcf.global.noItems{/lang}</p>
+       <p class="info" role="status">{lang}wcf.global.noItems{/lang}</p>
 {/if}
 
 <footer class="contentFooter">
index 2e4c327bc3bd6fc93cff1b43c00e100c8d2e8ed0..811a2b800918de93ecbb20c2cae1a5def60657e6 100644 (file)
@@ -41,7 +41,7 @@
                                {/foreach}
                        </ol>
                {else}
-                       <p class="info">{lang}wcf.global.noItems{/lang}</p>
+                       <p class="info" role="status">{lang}wcf.global.noItems{/lang}</p>
                {/if}
        </div>
 </div>
index 9b446fe609de5f9b6455f40dfff790ef5f3ac6ce..144cd8894478937f1c464f05b85275efbb9185c2 100644 (file)
@@ -87,7 +87,7 @@
                {include file='articleListItems'}
        </div>
 {else}
-       <p class="info">{lang}wcf.global.noItems{/lang}</p>
+       <p class="info" role="status">{lang}wcf.global.noItems{/lang}</p>
 {/if}
 
 <footer class="contentFooter">
index 0dc3ca4a45977f882e6b08222033cd8b77594738..3ffd987e957312aaa46bcaf9a9dc09bc5005aab8 100644 (file)
                {/foreach}
        </div>
 {else}
-       <p class="info">{lang}wcf.user.profile.protected{/lang}</p>
+       <p class="info" role="status">{lang}wcf.user.profile.protected{/lang}</p>
 {/if}
 
 {if MODULE_USER_COVER_PHOTO && ($user->userID == $__wcf->user->userID || $user->canEdit())}
        {if $__wcf->getSession()->getPermission('user.profile.coverPhoto.canUploadCoverPhoto')}
                <div id="userProfileCoverPhotoUpload" class="jsStaticDialogContent" data-title="{lang}wcf.user.coverPhoto.upload{/lang}">
                        {if $__wcf->user->disableCoverPhoto}
-                               <p class="error">{lang}wcf.user.coverPhoto.error.disabled{/lang}</p>
+                               <p class="error" role="alert">{lang}wcf.user.coverPhoto.error.disabled{/lang}</p>
                        {else}
                                <div id="coverPhotoUploadPreview"></div>
                                
index d9538b725e6b6b24ecfbec97ee60407875e61222..c0af1b6fccb33938ebd456f741387623237f77ab 100644 (file)
@@ -33,7 +33,7 @@
                </ol>
        </div>
 {else}
-       <p class="info">{lang}wcf.global.noItems{/lang}</p>
+       <p class="info" role="status">{lang}wcf.global.noItems{/lang}</p>
 {/if}
 
 <script data-relocate="true">
index ecce0bb42aca458d4d5ff72d0070260ac1dcb810..41ef605c52b0f8528361f302c3eda8d5787ccdf5 100644 (file)
@@ -1,25 +1,25 @@
 {capture assign='__userNotice'}
        {if OFFLINE && $__wcf->session->getPermission('admin.general.canViewPageDuringOfflineMode')}
-               <div class="warning">
+               <div class="warning" role="status">
                        <p><strong>{lang}wcf.page.offline{/lang}</strong></p>
                        <div>{if OFFLINE_MESSAGE_ALLOW_HTML}{@OFFLINE_MESSAGE|language}{else}{@OFFLINE_MESSAGE|language|newlineToBreak}{/if}</div>
                </div>
        {/if}
        
        {if $__wcf->session->getPermission('admin.configuration.package.canUpdatePackage') && $__wcf->getAvailableUpdates() && SHOW_UPDATE_NOTICE_FRONTEND}
-               <p class="info">{lang}wcf.page.availableUpdates{/lang}</p>
+               <p class="info" role="status">{lang}wcf.page.availableUpdates{/lang}</p>
        {/if}
        
        {if $__wcf->user->activationCode && REGISTER_ACTIVATION_METHOD == 1 && $templateName != 'registerActivation' && $templateName != 'register' && $templateName != 'redirect'}
-               <p class="warning">{lang}wcf.user.register.needActivation{/lang}</p>
+               <p class="warning" role="status">{lang}wcf.user.register.needActivation{/lang}</p>
        {/if}
        
        {hascontent}
                {content}
                        {foreach from=$__wcf->getNoticeHandler()->getVisibleNotices() item='notice'}
-                               <div class="{$notice->cssClassName} notice{if $notice->isDismissible} noticeDismissible active{/if}">
+                               <div class="{$notice->cssClassName} notice{if $notice->isDismissible} noticeDismissible active{/if}" role="status">
                                        {if $notice->isDismissible}
-                                               <span class="icon icon16 fa-times pointer jsDismissNoticeButton jsTooltip" data-object-id="{$notice->noticeID}" title="{lang}wcf.notice.button.dismiss{/lang}"></span>
+                                               <span role="button" tabindex="0" class="icon icon16 fa-times pointer jsDismissNoticeButton jsTooltip" data-object-id="{$notice->noticeID}" title="{lang}wcf.notice.button.dismiss{/lang}"></span>
                                        {/if}
                                        
                                        {@$notice}
index d652a2baba3f7d23b92dc47464c234d8415cf153..3603ca6fce7880492b8550d4a83d4e50f83b256b 100644 (file)
@@ -17,6 +17,6 @@
        {/content}
 {hascontentelse}
        <div class="section">
-               <p class="info">{lang}wcf.user.profile.content.about.noPublicData{/lang}</p>
+               <p class="info" role="status">{lang}wcf.user.profile.content.about.noPublicData{/lang}</p>
        </div>
 {/hascontent}
index d343856926788eda4e778421c9ff77032670a666..ebdbd13a3c890726a2f2c0697abd3ba50ea38a9d 100644 (file)
@@ -1,7 +1,7 @@
 {include file='header'}
 
 {if $errorField == 'search'}
-       <p class="error">{lang}wcf.user.search.error.noMatches{/lang}</p>
+       <p class="error" role="alert">{lang}wcf.user.search.error.noMatches{/lang}</p>
 {else}
        {include file='formError'}
 {/if}
index 51fa6ad904c40ae50ee9f6c9aa026567d66f4871..8f6df4fb06ccfa489b0f7e7df84711bcadb5503d 100644 (file)
@@ -87,7 +87,7 @@
                {include file='articleListItems'}
        </div>
 {else}
-       <p class="info">{lang}wcf.global.noItems{/lang}</p>
+       <p class="info" role="status">{lang}wcf.global.noItems{/lang}</p>
 {/if}
 
 <footer class="contentFooter">