mirror of
https://github.com/imputnet/cobalt.git
synced 2025-01-30 02:08:28 +00:00
web/ClearButton: fix rendering bug in safari & clean up
This commit is contained in:
parent
0225a7c46c
commit
ee162aa236
|
@ -1,12 +1,16 @@
|
|||
<script>
|
||||
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;
|
||||
</script>
|
||||
|
||||
<button id="clear-button" on:click={click} aria-label={$t("a11y.save.clearInput")}>
|
||||
<IconX color="var(--secondary)" size="16px"/>
|
||||
<button
|
||||
id="clear-button"
|
||||
on:click={click}
|
||||
aria-label={$t("a11y.save.clearInput")}
|
||||
>
|
||||
<IconX />
|
||||
</button>
|
||||
|
||||
<style>
|
||||
|
@ -14,4 +18,12 @@
|
|||
padding: 3px;
|
||||
border-radius: 100%;
|
||||
}
|
||||
|
||||
#clear-button :global(svg) {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
stroke-width: 2px;
|
||||
stroke: var(--secondary);
|
||||
will-change: transform;
|
||||
}
|
||||
</style>
|
||||
|
|
Loading…
Reference in a new issue