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

[BUG] Variants break when using styled(Button) and an as prop #506

Open
korbinancell opened this issue Sep 1, 2021 · 0 comments
Open

[BUG] Variants break when using styled(Button) and an as prop #506

korbinancell opened this issue Sep 1, 2021 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@korbinancell
Copy link
Contributor

Describe the bug
Works as expected:

<Button as="a" variant="primary">link</Button>

Doesn't:

const Fancy = styled(Button).attrs({ as: 'a', variant: 'primary' })``
<Fancy>link</Fancy>
@korbinancell korbinancell added the bug Something isn't working label Sep 1, 2021
@korbinancell korbinancell self-assigned this Sep 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

1 participant