andreypopp / andreypopp/react-css-components
Way to avoid mixing styling and semantics?
Đang mở
- Ngôn ngữ chính
- JavaScript
- Star
- 672
- Fork
- 14
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
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.
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Đánh giá
Issue này chưa được đánh giá.