Skip to content
Snippets Groups Projects
Commit 8b07f02f authored by Rasmus Fuhse's avatar Rasmus Fuhse
Browse files

Resolve "Barrierefreiheit: Blubber Benachrichtigungsstatus ist nicht für Screenreader erkennbar"

Closes #4061

Merge request studip/studip!2907
parent 348bd130
No related branches found
No related tags found
No related merge requests found
......@@ -47,6 +47,7 @@ const Blubber = {
subscribe: follow,
});
}).then(() => {
elements.attr('aria-pressed', follow ? 'true' : 'false');
elements.toggleClass('unfollowed', !follow);
}).finally(() => {
elements.removeClass('loading');
......
......@@ -7,6 +7,8 @@
onClick="STUDIP.Blubber.followunfollow('global'); return false;"
class="followunfollow<?= $unfollowed ? " unfollowed" : "" ?>"
title="<?= _("Benachrichtigungen für diese Konversation abstellen.") ?>"
aria-pressed="<?= $unfollowed ? 'false' : 'true' ?>"
role="button"
data-thread_id="global">
<?= Icon::create("decline")->asImg(20, ['class' => "follow text-bottom"]) ?>
<?= Icon::create("notification2")->asImg(20, ['class' => "unfollow text-bottom"]) ?>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment