mirror of
https://github.com/wukko/cobalt.git
synced 2025-02-03 00:46:19 +01:00
web/ClearButton: fix rendering bug in safari & clean up
This commit is contained in:
parent
0225a7c46c
commit
ee162aa236
1 changed files with 15 additions and 3 deletions
|
@ -1,12 +1,16 @@
|
||||||
<script>
|
<script>
|
||||||
import { t } from "$lib/i18n/translations";
|
import { t } from "$lib/i18n/translations";
|
||||||
import IconX from '@tabler/icons-svelte/IconX.svelte';
|
import IconX from "@tabler/icons-svelte/IconX.svelte";
|
||||||
|
|
||||||
export let click;
|
export let click;
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<button id="clear-button" on:click={click} aria-label={$t("a11y.save.clearInput")}>
|
<button
|
||||||
<IconX color="var(--secondary)" size="16px"/>
|
id="clear-button"
|
||||||
|
on:click={click}
|
||||||
|
aria-label={$t("a11y.save.clearInput")}
|
||||||
|
>
|
||||||
|
<IconX />
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
@ -14,4 +18,12 @@
|
||||||
padding: 3px;
|
padding: 3px;
|
||||||
border-radius: 100%;
|
border-radius: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#clear-button :global(svg) {
|
||||||
|
width: 16px;
|
||||||
|
height: 16px;
|
||||||
|
stroke-width: 2px;
|
||||||
|
stroke: var(--secondary);
|
||||||
|
will-change: transform;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
Loading…
Reference in a new issue