Improve accessibility and make profiles appear a little more cleanly - the full username and site domain are available to screen readers, but aren't displayed by default, which is much less cluttered

This commit is contained in:
Danielle McLean 2017-12-11 09:38:29 +11:00
parent 97f52a713b
commit b45661fa41
Signed by: 00dani
GPG key ID: 5A5D2D1AFF12EEC5

View file

@ -46,7 +46,7 @@
<div class="card-footer"> <div class="card-footer">
<ul class="profiles"> <ul class="profiles">
{% for profile in user.profiles.all %}<li> {% for profile in user.profiles.all %}<li>
<a class="u-url" rel="me" href="{{ profile.url }}"><i class="{{ profile.site.icon }}"></i> {{ profile.name }}</a> <a class="u-url" rel="me" href="{{ profile.url }}" title="{{ profile }}"><i class="{{ profile.site.icon }}"></i> <span class="sr-only">{{ profile }}</span></a>
</li>{% endfor %} </li>{% endfor %}
</ul> </ul>
</div> </div>