Simplify clickable class

This commit is contained in:
Mel O'Hagan 2022-05-16 11:26:52 +01:00
parent 844463b312
commit 3ba4772210
1 changed files with 1 additions and 2 deletions

View File

@ -17,19 +17,18 @@
$: vAlignClass = vAlign ? `vAlign-${vAlign}` : ""
$: sizeClass = size ? `size-${size}` : ""
$: gapClass = gap ? `gap-${gap}` : ""
$: clickableClass = onClick ? "clickable" : ""
$: classNames = [
directionClass,
hAlignClass,
vAlignClass,
sizeClass,
gapClass,
clickableClass,
].join(" ")
</script>
<div
class={classNames}
class:clickable={onClick}
use:styleable={$component.styles}
class:wrap
on:click={onClick}