Skip to content

Commit

Permalink
fix(skeleton-text): remove duplicate style attribute
Browse files Browse the repository at this point in the history
Fixes #134
  • Loading branch information
metonym committed Feb 12, 2020
1 parent ebb7fac commit 2603d93
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/components/SkeletonText/SkeletonText.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
export let style = undefined;
export let width = '100%';
import { cx } from '../../lib';
import { cx, css } from '../../lib';
const randoms = [0.973051493507435, 0.15334737213558558, 0.5671034553053769];
Expand Down Expand Up @@ -41,6 +41,5 @@
on:mouseenter
on:mouseleave
class={cx('--skeleton__text', heading && '--skeleton__heading', className)}
style={`width: ${width};`}
{style} />
style={css([style, ['width', width]])} />
{/if}

0 comments on commit 2603d93

Please sign in to comment.