Skip to content

Commit

Permalink
fix(16781): fixes Tab focus issue on accordion (#17120)
Browse files Browse the repository at this point in the history
  • Loading branch information
2nikhiltom committed Aug 12, 2024
1 parent 4f4c48e commit 9b737e8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/react/src/components/Accordion/AccordionItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ function AccordionItem({
</Toggle>
<div
ref={content}
hidden={!isOpen}
className={`${prefix}--accordion__wrapper`}
onTransitionEnd={onAnimationEnd}>
<div id={id} className={`${prefix}--accordion__content`}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ exports[`Accordion should render 1`] = `
</button>
<div
class="cds--accordion__wrapper"
hidden=""
>
<div
class="cds--accordion__content"
Expand Down Expand Up @@ -80,6 +81,7 @@ exports[`Accordion should render 1`] = `
</button>
<div
class="cds--accordion__wrapper"
hidden=""
>
<div
class="cds--accordion__content"
Expand Down Expand Up @@ -122,6 +124,7 @@ exports[`Accordion should render 1`] = `
</button>
<div
class="cds--accordion__wrapper"
hidden=""
>
<div
class="cds--accordion__content"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ exports[`AccordionItem renders as expected - Component API should render and mat
</button>
<div
class="cds--accordion__wrapper"
hidden=""
>
<div
class="cds--accordion__content"
Expand Down

0 comments on commit 9b737e8

Please sign in to comment.