Simplify clickable class
This commit is contained in:
parent
7151f6df66
commit
d9fb7297fa
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue