Closed
Description
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 of display: none
or the hidden
attribute.
When evaluating a solution, consider that display
can't be used in animation which probably is the main reason for which max-height
has been used.