Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ADA-1778): [ORS] - Firefox playerkit - Focusable but hidden/unlabeled elements in tabbing order #799

Closed
wants to merge 1 commit into from

Conversation

Tzipi-kaltura
Copy link
Contributor

@Tzipi-kaltura Tzipi-kaltura commented Nov 20, 2024

Description of the Changes

Issue:
When enable the "Show Tabbing Order" in Firefox browser, tab marker is shown on the video element.
Screenshot_2

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

solves ADA-1788

CheckLists

  • changes have been done against master branch, and PR does not conflict
  • new unit / functional tests have been added (whenever applicable)
  • test are passing in local environment
  • Travis tests are passing (or test results are not worse than on master branch :))
  • Docs have been updated

@@ -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');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why does this fix the problem ?

Copy link
Contributor Author

@Tzipi-kaltura Tzipi-kaltura Nov 20, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Firefox treats video element as a focusable element (don't know why but it happens in all video elements) if you will add tabIndex="-1" so explicitly it is not focusable element.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants