adds sr-only class and site name to accessibility span

This commit is contained in:
rgarcia
2016-11-17 19:17:46 +01:00
parent e6a10cf1f1
commit 5a664b9246

View File

@@ -2,4 +2,6 @@ App.SocialShare =
initialize: ->
$(".social-share-button a").each ->
$(this).after("<span class='accessibility'> </span>")
element = $(this)
site = element.data('site')
element.append("<span class='sr-only'>#{site}</span>")