Expander is buggy after aria-hidden -> hidden

Description

Expander doesn't work on subsequent clicks - once it's collapsed, it won't open again. If the hidden attribute is set initially (it’s necessary as content collapsed by default in only hidden visually and not to screen readers - something to be added to the docs?), it won't open at all.

Reproducible on https://docs.atlassian.com/aui/9.0.0/docs/expander.html examples.

Steps to reproduce

Environment

None

QA Kickoff Check-In

Usage described in documentation
Demonstration of all states
Interactive state (screen readers)
Visual regression tests
Unit tests
Navigation (only keyboard / only mouse)
Component render legibly

QA Demo Check-Out

P2 plugin
Browsers (Edge/IE11/Firefox/Chrome/Safari)
Resizing
Zoom in/out
Navigation (Keyboard/Mouse)
Focus
Element status (At Rest/Pressed/Selected/Read Only/Disabled)
Cursors
Tooltips
Audio

Assignee

Maciej Szpyra

Reporter

Sylwia Mikołajczuk

Labels

None

Changelog entry text

None

Needs Doc

None

Story Points

1

Sprint

None

Fix versions

Affects versions

Priority

Major
Configure