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:
parent
161ce2404b
commit
5d1fe2eeaf
6 changed files with 36 additions and 11 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue