Menu

#Danger

3 posts

Feed·
3 of 3 posts
📰
0

Why I spent years trying to make CSS states predictable

DEV Community: css·Andrey Yamanov·about 1 month ago
#q2PmuEiO
#dev#primary#surface#danger#class#code

Have you ever changed the order of two CSS rules and broken a component without changing the logic? .btn:hover { background: dodgerblue; } .btn[disabled] { background: gray; } Both selectors have specificity (0, 1, 1).…

15s
Read More