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

fix: prop types for styled element: JSX.IntrinsicElements[T] #3

Merged
merged 1 commit into from
Aug 18, 2021

Conversation

btakita
Copy link
Contributor

@btakita btakita commented Jun 29, 2021

No description provided.

@btakita
Copy link
Contributor Author

btakita commented Jun 29, 2021

#2

@@ -29,6 +29,23 @@ describe("Simple Styled", () => {
});
});

test("Creates input properly", () => {
const Input = styled('input')`

Choose a reason for hiding this comment

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

I might be wrong, but the issue was pointing out that we should handle the case of something like:

const SpecialInput = styled(Input)``

Isn't worth to add a test case where you test this too?

@thdxr
Copy link

thdxr commented Aug 18, 2021

This is the right fix let's merge it!

@ryansolid ryansolid merged commit 7959161 into solidjs:main Aug 18, 2021
@ryansolid
Copy link
Member

ryansolid commented Aug 18, 2021

Thank you.

Released in 0.27.2.

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.

4 participants