Describe the bug
The arrows next to each item are opposite to where they should intuitively be pointing, and also with respect to the reference design mentioned in the original issue #23.
On top of this, when using data-accordion="collapse" and by setting aria-expanded=false for all items causes all the arrows to point down, which would be correct. However, by clicking any one item the other arrows get flipped while the clicked one remains the same.
To Reproduce
Steps to reproduce the behavior:
Load the default accordion component shown in the docs
Notice that the first item, which is open, has the arrow pointing downwards. The other closed items have their arrow pointing up
Now set aria-expanded=false also for the first item and reload
Notice that now all items are collapsed and their arrows point down
By clicking any one item its arrow remains in the same orientation while all other arrows are flipped.
Clicking the item again flips its arrow which however is opposite to where it should point, similar to the default situation
Expected behavior
When an item is collapsed its arrow should point down. When it is clicked its arrow should flip and point up, and other arrows shouldn't be affected.
Screenshots
Desktop (please complete the following information):
OS: Linux
Browser chrome, brave, firefox
Smartphone (please complete the following information):
Device: Pocophone F1
OS: Android
Browser: firefox
Additional context
I created a CodeSandbox to better illustrate the issue: link to sandbox
Describe the bug The arrows next to each item are opposite to where they should intuitively be pointing, and also with respect to the reference design mentioned in the original issue #23.
On top of this, when using
data-accordion="collapse"
and by settingaria-expanded=false
for all items causes all the arrows to point down, which would be correct. However, by clicking any one item the other arrows get flipped while the clicked one remains the same.To Reproduce Steps to reproduce the behavior:
aria-expanded=false
also for the first item and reloadExpected behavior When an item is collapsed its arrow should point down. When it is clicked its arrow should flip and point up, and other arrows shouldn't be affected.
Screenshots
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context I created a CodeSandbox to better illustrate the issue: link to sandbox