More a11y stuff and context menu fix

This commit is contained in:
Sam Potts
2018-04-23 00:01:19 +10:00
parent d2e9ed3467
commit b647af256c
10 changed files with 22 additions and 13 deletions

3
src/js/controls.js vendored
View File

@ -57,6 +57,7 @@ const controls = {
icon,
utils.extend(attributes, {
role: 'presentation',
focusable: 'false',
}),
);
@ -293,6 +294,8 @@ const controls = {
min: 0,
max: 100,
value: 0,
role: 'presentation',
'aria-hidden': true,
},
attributes,
),

View File

@ -334,7 +334,7 @@ class Listeners {
// Disable right click
if (this.player.supported.ui && this.player.config.disableContextMenu) {
utils.on(
this.player.media,
this.player.elements.wrapper,
'contextmenu',
event => {
event.preventDefault();