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-1335): Accessibility- “Close” button within the info video panel. #900

Merged
merged 3 commits into from
Jul 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/utils/popup-keyboard-accessibility.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -130,12 +130,13 @@ export const withKeyboardA11y = (WrappedComponent): any =>
/**
* sets the accessible children elements
* @param {HTMLElement} element - a child element to be accessible through keyboard nav
* @param {?boolean} pushToBeginning - push to beginning of the array or to the end
* @returns {void}
* @memberof HOC
*/
addAccessibleChild = (element: HTMLElement): void => {
addAccessibleChild = (element: HTMLElement, pushToBeginning?: boolean): void => {
if (element && this._accessibleChildren.indexOf(element) == -1) {
this._accessibleChildren.push(element);
pushToBeginning ? this._accessibleChildren.unshift(element) : this._accessibleChildren.push(element);
}
};

Expand Down
Loading