andreypopp / andreypopp/react-css-components

Way to avoid mixing styling and semantics?

Abierto
#20 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
JavaScript
Estrellas
672
Forks
14
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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: https://github.com/styled-components/styled-components/issues/494.

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.