andreypopp / andreypopp/react-css-components

Way to avoid mixing styling and semantics?

Ouverte
#20 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
JavaScript
Étoiles
672
Forks
14
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

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.

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.