style: improve base modal close button
This commit is contained in:
parent
b8cbbf1f86
commit
d2ff4ac87c
2 changed files with 17 additions and 6 deletions
|
@ -1,6 +1,7 @@
|
|||
<template>
|
||||
<button @click="props.callback ? props.callback() : null" class="button" :class="props.variant + '-button'">
|
||||
{{ props.text }}
|
||||
<button class="button" :class="props.variant + '-button'"
|
||||
@click="props.callback ? props.callback() : null">
|
||||
{{ props.text }}
|
||||
</button>
|
||||
</template>
|
||||
|
||||
|
@ -9,7 +10,7 @@
|
|||
const props = defineProps<{
|
||||
text: string,
|
||||
callback?: CallableFunction,
|
||||
variant?: "normal" | "scary" | "neutral",
|
||||
variant?: "normal" | "scary" | "neutral" | "stealth",
|
||||
}>();
|
||||
|
||||
</script>
|
||||
|
@ -50,4 +51,11 @@ const props = defineProps<{
|
|||
background-color: var(--accent-highlighted-color);
|
||||
}
|
||||
|
||||
.stealth-button {
|
||||
background-color: unset;
|
||||
}
|
||||
.stealth-button:hover {
|
||||
background-color: unset;
|
||||
}
|
||||
|
||||
</style>
|
Loading…
Add table
Add a link
Reference in a new issue