1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Add aria-labels for accessibility

This commit is contained in:
Dmitry Lyzo 2022-01-18 14:52:53 +03:00
parent 161ce2404b
commit 5d1fe2eeaf
6 changed files with 36 additions and 11 deletions

View file

@ -643,13 +643,19 @@ import { appRouter } from '../../../components/appRouter';
btnPlayPauseIcon.classList.remove('play_arrow', 'pause');
let icon;
let title;
if (isPaused) {
btnPlayPauseIcon.classList.add('play_arrow');
btnPlayPause.setAttribute('title', globalize.translate('Play') + ' (k)');
icon = 'play_arrow';
title = globalize.translate('Play');
} else {
btnPlayPauseIcon.classList.add('pause');
btnPlayPause.setAttribute('title', globalize.translate('ButtonPause') + ' (k)');
icon = 'pause';
title = globalize.translate('ButtonPause');
}
btnPlayPauseIcon.classList.add(icon);
dom.setElementTitle(btnPlayPause, title + ' (k)', title);
}
function updatePlayerStateInternal(event, player, state) {