KaijuEngine/kaiju
Voir sur GitHubCompound CSS hover event is overriding each of the compounds
Open
#703 ouverte le 18 avr. 2026
engine runtimegood first issue
Métriques du dépôt
- Stars
- (4 569 stars)
- Métriques de merge PR
- (Métriques PR en attente)
Description
This code should be making it so that only the primary button is turning red when hovered over. However, it is causing all buttons to be red when hovered. This is likely because the compound CSS statement button and .primary not being parsed correctly for events like :hover.
button:hover, .button:hover {
background-color: #575757;
}
button:active, .button:active {
padding: 4px 5px 0px 5px;
background-color: rgb(59, 59, 59);
}
button .primary, .button primary {
background-color: #682A2D;
}
button .primary:hover, .button primary:hover {
background-color: #881E1E;
}
https://github.com/user-attachments/assets/58c28458-f108-4152-a1c7-1c077ecf61f1