diff --git a/static/css/style.css b/static/css/style.css index 1f9220f..430ab2a 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -1149,3 +1149,22 @@ table.metadata td.name { color: var(--color-highlight); transition: 0.2s; } + + +/* Accessibility */ +.screenreader-text { + position: absolute; + left: -999px; + width: 1px; + height: 1px; + top: auto; +} + +.screenreader-text:focus { + color: black; + display: inline-block; + height: auto; + width: auto; + position: static; + margin: auto; +} diff --git a/templates/activities/_like.html b/templates/activities/_like.html index 8eec8cd..07dc01d 100644 --- a/templates/activities/_like.html +++ b/templates/activities/_like.html @@ -1,9 +1,9 @@ {% if post.pk in interactions.like %} - + {% else %} - + {% endif %} diff --git a/templates/activities/_mini_post.html b/templates/activities/_mini_post.html index 80ed213..19fad76 100644 --- a/templates/activities/_mini_post.html +++ b/templates/activities/_mini_post.html @@ -1,8 +1,8 @@ {% load static %} {% load activity_tags %} -