mirror of
https://github.com/aleksilassila/reiverr.git
synced 2026-04-21 16:25:11 +02:00
feat: focusedChild property for containers
This commit is contained in:
@@ -2,17 +2,17 @@
|
||||
import Container from '../../../Container.svelte';
|
||||
import classNames from 'classnames';
|
||||
|
||||
export let active = true;
|
||||
export let disabled = false;
|
||||
</script>
|
||||
|
||||
<Container let:hasFocus on:clickOrSelect {active} class="float-left" on:enter>
|
||||
<Container let:hasFocus on:clickOrSelect {disabled} class="float-left" on:enter>
|
||||
<div
|
||||
class={classNames(
|
||||
'border-2 rounded-2xl p-1 cursor-pointer font-medium tracking-wide transition-colors',
|
||||
{
|
||||
'border-zinc-400': !hasFocus,
|
||||
'border-primary-500': hasFocus,
|
||||
'opacity-50': !active
|
||||
'opacity-50': disabled
|
||||
}
|
||||
)}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user