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

feat(fuselage)!: Lighter Accordion and AccordionItem components #1470

Merged
merged 6 commits into from
Oct 23, 2024

Conversation

tassoevan
Copy link
Collaborator

@tassoevan tassoevan commented Oct 22, 2024

Proposed changes (including videos or screenshots)

It removes an obsolete and not accessible toggle switch in AccordionItem and eases the internal usage of Box to
improve rendering performance.

Additionally, it adds a new StylingBox component that can be used as a wrapper for components that accept styling
props but don't need the weight of the Box component prop handling internally.

Also, it adds a new cx and cxx helpers to compose class names.

Issue(s)

Further comments

An important tweak was made in Jest's setup, mocking useUniqueId calls to return deterministic IDs, allowing snapshot matching.

Copy link

changeset-bot bot commented Oct 22, 2024

🦋 Changeset detected

Latest commit: ef77fba

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@rocket.chat/fuselage Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@tassoevan tassoevan force-pushed the feat/lighter-accordion branch from e6b8a04 to ef77fba Compare October 23, 2024 02:10
@tassoevan tassoevan requested a review from a team October 23, 2024 02:12
@tassoevan tassoevan marked this pull request as ready for review October 23, 2024 02:13
Copy link
Member

@dougfabris dougfabris left a comment

Choose a reason for hiding this comment

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

If we had the world ☮️, I think it would be something like this

@tassoevan tassoevan merged commit 86fe018 into main Oct 23, 2024
8 checks passed
@tassoevan tassoevan deleted the feat/lighter-accordion branch October 23, 2024 23:10
@github-actions github-actions bot mentioned this pull request Oct 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants