themesberg / themesberg/flowbite

Accordian initial aria-expanded="false' on first item doesn't work as expected

Open
#615 0 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
HTML
Stars
9.4k
Forks
862
PR merge metrics
No merged PRs in 30d

Description

When setting aria-expanded="false" on all item buttons it still opens the first item and causes a double-click needed to expand.

Create any accordion and set all buttons with area-expanded="false"

I expect all items to be collapsed initially.

  • OS: macOS
  • Browser: chrome, safari, brave, etc.
  • Version: latest

Using Nuxt3

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce an accordion in Nuxt3 with every item button set to aria-expanded="false" in Chrome, Safari, or Brave. Trace the accordion entry point responsible for initial state and activation behavior; done means all items start collapsed and each expands on the first click without requiring a double-click.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, nuxtjs, tailwindcss
Domain
accessibility, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.