KaijuEngine/kaiju

Compound CSS hover event is overriding each of the compounds

Open

#703 aberto em 18 de abr. de 2026

Ver no GitHub
 (0 comments) (0 reactions) (0 assignees)Go (194 forks)auto 404
engine runtimegood first issue

Métricas do repositório

Stars
 (4.569 stars)
Métricas de merge de PR
 (Métricas PR pendentes)

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

Guia do colaborador