{ if (!(e.target as HTMLElement).closest('.color-picker')) e.preventDefault(); }} > {#each [ { v: null, label: t().table.cellAlignTop, d: 'M5 5h8M5 8h5' }, { v: 'middle', label: t().table.cellAlignMiddle, d: 'M5 7.5h8M5 10.5h5' }, { v: 'bottom', label: t().table.cellAlignBottom, d: 'M5 10h8M5 13h5' }, ] as const as a} {/each} applyCellColor(c)} onClear={() => clearCellColor()} > {#snippet icon()} {/snippet}