mirror of
https://github.com/imputnet/cobalt.git
synced 2026-02-08 06:56:54 +00:00
web: data-driven switcher & save mode switcher
also: - disabled ssr to enable localstorage - removed the workaround for hover, as it looks bad
This commit is contained in:
@@ -3,13 +3,6 @@
|
||||
export let click = () => { alert('no function assigned') };
|
||||
</script>
|
||||
|
||||
<button id={id} class="button" on:click={click}>
|
||||
<button id="button-{id}" class="button" on:click={click}>
|
||||
<slot></slot>
|
||||
</button>
|
||||
|
||||
<style>
|
||||
:global(.button.selected) {
|
||||
background: var(--secondary);
|
||||
color: var(--primary);
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user