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

[TEST ONLY] Use CSS modules instead of styled components #894

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ajkl2533
Copy link
Contributor

This PR is currently for testing purposes only. I want to test how big a performance impacts the use of native CSS in comparison to styled-components.

Found issues:

  • we would need to replace as property with a differently named prop (I use component in this PR). The issue is that if a CSS component is extended with the styled() function and the as property is applied to it, the styled-components swallow the as prop and the element is not used. Another side-effect of this is that no styling is applied to this extended component.
const StyledStack = styled(Stack)`...`

<StyledStack as="ul">...</StyledStack>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant