mirror of
https://github.com/wukko/cobalt.git
synced 2025-05-28 12:30:12 +02:00
web/DialogButtons: don't apply hover effect if button is colored
This commit is contained in:
parent
c12088e297
commit
314d3590ec
@ -9,6 +9,7 @@
|
||||
{#each buttons as button}
|
||||
<button
|
||||
class="button popup-button {button.color}"
|
||||
class:color={button.color}
|
||||
class:active={button.main}
|
||||
on:click={async () => {
|
||||
await button.action();
|
||||
|
@ -323,7 +323,7 @@
|
||||
background-color: var(--secondary);
|
||||
}
|
||||
|
||||
:global(.button.active:active) {
|
||||
:global(.button.active:not(.color):active) {
|
||||
background-color: var(--button-active-hover);
|
||||
}
|
||||
|
||||
@ -339,7 +339,7 @@
|
||||
background-color: var(--button-hover);
|
||||
}
|
||||
|
||||
:global(.button.active:hover) {
|
||||
:global(.button.active:not(.color):hover) {
|
||||
background-color: var(--button-active-hover);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user