Merge pull request #580 from creative-commoners/pulls/3.3/widget-titles

FIX Widget titles may not be defined, in which case having an empty heading element is bad for accessibility
This commit is contained in:
Dylan Wagstaff 2019-05-02 14:35:50 +12:00 committed by GitHub
commit b94e02d56a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,4 @@
<nav class="secondary">
<h3>$Title</h3>
$Content
</nav>
<nav class="secondary">
<% if $Title %><h3>$Title</h3><% end_if %>
$Content
</nav>