Skip to content

Commit

Permalink
fix(accessibility): frame must have a title attribute (#7754)
Browse files Browse the repository at this point in the history
  • Loading branch information
gjanblaszczyk authored May 18, 2022
1 parent d9d8c77 commit a7f2532
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,5 +85,6 @@
"End of dialog window.": "End of dialog window.",
"{1} is loading.": "{1} is loading.",
"Exit Picture-in-Picture": "Exit Picture-in-Picture",
"Picture-in-Picture": "Picture-in-Picture"
"Picture-in-Picture": "Picture-in-Picture",
"No content": "No content"
}
3 changes: 2 additions & 1 deletion src/js/resize-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ class ResizeManager extends Component {
createEl() {
return super.createEl('iframe', {
className: 'vjs-resize-manager',
tabIndex: -1
tabIndex: -1,
title: this.localize('No content')
}, {
'aria-hidden': 'true'
});
Expand Down

0 comments on commit a7f2532

Please sign in to comment.