-
-
Notifications
You must be signed in to change notification settings - Fork 19
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
Accordion: focus on closed panel child element #13
Labels
bug
Something isn't working
Milestone
Comments
omaxel
changed the title
Accordion: focus on closed tab child element
Accordion: focus on closed panel child element
Sep 25, 2021
@omaxel please could you make an example of child focusable element and the described behavior? I tried adding a |
Sure, follow these steps:
You will notice that the element gains the focus and it's displayed on top of the panel header (see image below) |
That's bad! |
Resolved in cd7003a |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When a panel of the accordion has a focusable child element, it gains focus even if the panel is not opened. This happens because the closed panel has
max-height: 0
instead ofdisplay: none
or thehidden
attribute.When evaluating a solution, consider that
display
can't be used in animation which probably is the main reason for whichmax-height
has been used.The text was updated successfully, but these errors were encountered: