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

Flex typing fixes and improvements #67

Merged
merged 1 commit into from
Oct 3, 2024
Merged

Flex typing fixes and improvements #67

merged 1 commit into from
Oct 3, 2024

Conversation

Madumo
Copy link
Member

@Madumo Madumo commented Oct 2, 2024

The forwardedRef made the typing super complicated and even break with higher typescript version. Its simpler with a forwardedRef property. It also caused typescript performance issues and broke autocompletion with type inference. Now it works again.

Also, it was hard to make the typing work with the card component, which was pretty much just a flex component with a background color and a border radius. Now the flex component has those properties directly.

And the inherited gap was a terrible and confusing idea that didn't prove itself as useful as i thought, so 🚮

@Madumo Madumo requested a review from charlesdemers October 2, 2024 20:39
Copy link
Member

@charlesdemers charlesdemers left a comment

Choose a reason for hiding this comment

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

Yes!

@Madumo Madumo merged commit b441674 into main Oct 3, 2024
2 checks passed
@Madumo Madumo deleted the flex-improvements branch October 3, 2024 12:13
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