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

Way to avoid mixing styling and semantics? #20

Open
danny-andrews-snap opened this issue Sep 5, 2018 · 0 comments
Open

Way to avoid mixing styling and semantics? #20

danny-andrews-snap opened this issue Sep 5, 2018 · 0 comments

Comments

@danny-andrews-snap
Copy link

danny-andrews-snap commented Sep 5, 2018

I think styled-components set a bad precedent: mixing styling and semantics. For example, there are many times I need to use a heading of a certain level (h1, h2, h3) for semantics, but may want to style it as a heading of a different one. I don't see any way to accomplish this sort of thing, since styles are coupled with the HTML tags. Maybe I'm missing something?

More discussion: styled-components/styled-components#494.

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