Skip to content

Commit

Permalink
fix(ADA-1778): [ORS] - Firefox playerkit - Focusable but hidden/unlab…
Browse files Browse the repository at this point in the history
…eled elements in tabbing order (#804)

Issue:
Video element get focus in Firefox browser.

Fix:
Add tabIndex="-1" on the video element

solves ADA-1788
  • Loading branch information
Tzipi-kaltura authored Dec 12, 2024
1 parent af474d8 commit f050ffc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/player.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1808,6 +1808,7 @@ export default class Player extends FakeEventTarget {
const classNameWithId = `${ENGINE_CLASS_NAME}-${this._engine.id}`;
Utils.Dom.addClassName(engineEl, classNameWithId);
Utils.Dom.prependTo(engineEl, this._el);
Utils.Dom.setAttribute(engineEl, 'tabindex', '-1');
if (this._engine.id === 'youtube') {
this._el.style.zIndex = '1';
} else if (this._el.style.zIndex) {
Expand Down

0 comments on commit f050ffc

Please sign in to comment.