Skip to content

[EuiAccordion] Children are still present in keyboard tab order when accordions are closed #6980

Closed

Description

@cee-chen

Bug originally found in #6904 (comment)

Repro steps:

  1. Go to https://codesandbox.io/s/withered-moon-hc3ft6?file=/demo.js
  2. Close the top-most parent accordion
  3. Hit tab - you would expect tab to go to the next focusable item outside the accordion, but it instead goes to the 2 nested accordions inside the parent accordion

This issue does not appear to occur once the child initialIsOpen accordions are collapsed, so something appears to be going wrong with that logic within EuiAccordion.

The above statement was incorrect, this issue also occurs for nested accordions that default to close.

Activity

  1. self-assigned this
    on Aug 4, 2023
  2. changed the title [-][EuiAccordion] Nested accordions with `initialIsOpen` prop are incorrectly tabbable[/-] [+][EuiAccordion] Children are still present in keyboard tab order when accordions are closed[/+] on Aug 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions