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

Better naming for styled components nested in objects. #375

Open
avin-kavish opened this issue Mar 14, 2022 · 0 comments
Open

Better naming for styled components nested in objects. #375

avin-kavish opened this issue Mar 14, 2022 · 0 comments

Comments

@avin-kavish
Copy link

Would be good to have class names based on the full object path for styled components declared inside objects. i.e.,

// Product.tsx

const Wishlist = {
  Wrapper: styled`

  `
}

<Wishlist.Wrapper>

</Wishlist.Wrapper>

currently, the generated class name is Product__Wrapper would be good to have Product_Wishlist__Wrapper instead.

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

No branches or pull requests

1 participant