chore: forward class to Tile content

This commit is contained in:
Eric Liu 2019-12-25 14:22:52 -08:00
commit 0cc7c7afeb
3 changed files with 12 additions and 6 deletions

View file

@ -1,6 +1,9 @@
<script>
import { cx } from '../../lib';
let className = undefined;
export { className as class };
export let style = undefined;
import { cx } from '../../lib';
</script>
<span
@ -8,7 +11,7 @@
on:mouseover
on:mouseenter
on:mouseleave
class={cx('--tile-content__above-the-fold')}
class={cx('--tile-content__above-the-fold', className)}
{style}>
<slot />
</span>

View file

@ -1,6 +1,9 @@
<script>
import { cx } from '../../lib';
let className = undefined;
export { className as class };
export let style = undefined;
import { cx } from '../../lib';
</script>
<span
@ -8,7 +11,7 @@
on:mouseover
on:mouseenter
on:mouseleave
class={cx('--tile-content__below-the-fold')}
class={cx('--tile-content__below-the-fold', className)}
{style}>
<slot />
</span>