Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor Accordion components #5249

Merged
merged 5 commits into from
Jan 25, 2024
Merged

Conversation

stsrki
Copy link
Collaborator

@stsrki stsrki commented Jan 20, 2024

Closes #5247

Introduced new Accordion subcomponets

  • AccordionItem, and
  • AccordionHeader, and
  • AccordionBody

Reason is that using the Collapse was leaking too much of logic between accordion and collapse, which are not that much directly connected. This PR should solve this because we now have dedicated component just for accordion. In the future we should strip collapse from accordion completely #5248.

@stsrki stsrki requested a review from David-Moreira January 20, 2024 17:12
Copy link
Contributor

@David-Moreira David-Moreira left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, more coherent api.

@stsrki stsrki merged commit 3c5595e into dev/fluentui2 Jan 25, 2024
2 checks passed
@stsrki stsrki deleted the dev/fluentui2-accordion-refactor branch January 25, 2024 09:05
@github-actions github-actions bot locked and limited conversation to collaborators Jan 25, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants