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

jquery.a11y tabindex fix #1092

Merged
merged 1 commit into from
Jun 16, 2016
Merged

jquery.a11y tabindex fix #1092

merged 1 commit into from
Jun 16, 2016

Conversation

tomgreenfield
Copy link
Contributor

Remove tabindex from hideable elements on popdown

Remove tabindex from hideable elements on popdown
@oliverfoster
Copy link
Member

+1

$item.removeAttr('aria-hidden').removeClass("aria-hidden");

if ($item.is(domSelectors.hideableElements)) {
$item.removeAttr("tabindex");
Copy link
Member

Choose a reason for hiding this comment

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

CODE NOTES

.a11y-hideable
Some elements, which were never explicitly in the tab order, need to be removed from the tab order when a popup occurs. Label tags associated with input tags are an example of such elements. When the popdown occurs their tabindex="0" should be removed as it wouldn't have originally existed and will cause a double tab if left.

iFrame containers for youtube videos will also have this same problem.

@moloko
Copy link
Contributor

moloko commented Jun 7, 2016

+1

1 similar comment
@brian-learningpool
Copy link
Member

+1

@tomgreenfield tomgreenfield merged commit f7db7b2 into adaptlearning:master Jun 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants