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

Closed expansion panel will focus hidden elements #5432

Closed
csvn opened this issue Jun 30, 2017 · 1 comment · Fixed by #5441
Closed

Closed expansion panel will focus hidden elements #5432

csvn opened this issue Jun 30, 2017 · 1 comment · Fixed by #5441
Assignees
Labels
Accessibility This issue is related to accessibility (a11y)

Comments

@csvn
Copy link
Contributor

csvn commented Jun 30, 2017

Bug, feature request, or proposal:

Bug

What is the expected behavior?

If an md-expansion-panel has focus and is closed, the next item to gain focus when pressing tab should be the next md-expanion-panel.

What is the current behavior?

If a closed and focused md-expansion-panel has any buttons (or similar focusable targets), tab will go to those elements. This occurs even though the elements are not visible on the page.

What are the steps to reproduce?

https://github.com/angular/material2/blob/master/src/demo-app/expansion/expansion-demo.html

The expansion panel demo should be enough to reproduce:

  1. Focus the closed "Single expansion panel"
  2. Press tab
  3. Focus will land on the cancel button

What is the use-case or motivation for changing an existing behavior?

Usability and expected behavior.

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

Angular Material v2.0.0-beta.7.

Is there anything else we should know?

I don't think so, but tell me if I missed something.

@crisbeto crisbeto self-assigned this Jun 30, 2017
@crisbeto crisbeto added Accessibility This issue is related to accessibility (a11y) has pr labels Jun 30, 2017
crisbeto added a commit to crisbeto/material2 that referenced this issue Jun 30, 2017
Fixes being able to tab into the content of a closed `md-expansion-panel`.

Fixes angular#5432.
mmalerba pushed a commit that referenced this issue Jul 7, 2017
Fixes being able to tab into the content of a closed `md-expansion-panel`.

Fixes #5432.
mmalerba pushed a commit that referenced this issue Jul 9, 2017
)

Fixes being able to tab into the content of a closed `md-expansion-panel`.

Fixes #5432.
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Accessibility This issue is related to accessibility (a11y)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants