themesberg / themesberg/flowbite
Feature: Accordion: Rotate icon by X degrees
Nobody has claimed this yet.
- Dominant language
- HTML
- Stars
- 9.4k
- Forks
- 862
- PR merge metrics
- No merged PRs in 30d
Description
Is your feature request related to a problem? Please describe.
I have an accordion where I want to rotate icons by 90 degrees on open, but the component has a hardcoded value of 180.
Describe the solution you'd like
It would be nice to have a data attribute on the icon element to set the degrees value, e.g. data-accordion-degrees='90'.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the Accordion component and the icon rotation handling. Add support for the data-accordion-degrees value while preserving the current 180-degree behavior when it is absent, then verify that an open accordion rotates the icon by the requested amount.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- html, tailwindcss
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100