Improved a11y of the breadcrumb nav
authorMarcel Werk <burntime@woltlab.com>
Mon, 10 Sep 2018 12:21:44 +0000 (14:21 +0200)
committerMarcel Werk <burntime@woltlab.com>
Mon, 10 Sep 2018 12:21:44 +0000 (14:21 +0200)
See #2713

com.woltlab.wcf/templates/breadcrumbs.tpl
wcfsetup/install/lang/de.xml
wcfsetup/install/lang/en.xml

index 0b34c8baaa3eb49b4d2745a3bb6b0295e7f1c167..22a1b13d6841eafbc700bfe779726c1092610bb0 100644 (file)
@@ -1,7 +1,7 @@
 {if !$__microdata|isset}{assign var=__microdata value=true}{/if}
 {if $__microdata}{assign var='__breadcrumbPos' value=1}{/if}
 {hascontent}
-       <nav class="breadcrumbs">
+       <nav class="breadcrumbs" aria-label="{lang}wcf.page.breadcrumb{/lang}">
                <ol{if $__microdata} itemprop="breadcrumb" itemscope itemtype="http://schema.org/BreadcrumbList"{/if}>
                        {content}
                                {foreach from=$__wcf->getBreadcrumbs() item=$breadcrumb}
index 28219fa4a5dec3d77a06195636d0077f7ce0574d..b6ac4f0c8611f867b93209a5edc63f8875035a45 100644 (file)
@@ -3442,6 +3442,7 @@ E-Mail-Adresse: {@$emailAddress} {* this line ends with a space *}
                <item name="wcf.page.recentActivity.pageCommentResponse"><![CDATA[Hat auf einen Kommentar von <a href="{link controller='User' object=$commentAuthor}{/link}">{$commentAuthor->username}</a> auf der Seite <a href="{$page->getLink()}#comment{@$commentID}/response{@$responseID}">{$page->getTitle()}</a> geantwortet.]]></item>
                <item name="wcf.page.sidebar.left"><![CDATA[Linke Seitenleiste]]></item>
                <item name="wcf.page.sidebar.right"><![CDATA[Rechte Seitenleiste]]></item>
+               <item name="wcf.page.breadcrumb"><![CDATA[Verlaufsnavigation]]></item>
        </category>
        
        <category name="wcf.paidSubscription">
index 5f9459f821c8a542ea33cb1b08cc3218373f5f02..cc782bb132d447c96a59f06b96533617fbe02d34 100644 (file)
@@ -3389,6 +3389,7 @@ Email: {@$emailAddress} {* this line ends with a space *}
                <item name="wcf.page.recentActivity.pageCommentResponse"><![CDATA[Replied to a comment by <a href="{link controller='User' object=$commentAuthor}{/link}">{$commentAuthor->username}</a> on page <a href="{$page->getLink()}#comment{@$commentID}/response{@$responseID}">{$page->getTitle()}</a>.]]></item>
                <item name="wcf.page.sidebar.left"><![CDATA[Left Sidebar]]></item>
                <item name="wcf.page.sidebar.right"><![CDATA[Right Sidebar]]></item>
+               <item name="wcf.page.breadcrumb"><![CDATA[Breadcrumb]]></item>
        </category>
        
        <category name="wcf.acp.page">