mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 10:21:05 +00:00
Merge pull request #135 from IBM/skeleton-text
fix(skeleton-text): remove duplicate style attribute
This commit is contained in:
commit
7d75e7e64e
1 changed files with 2 additions and 3 deletions
|
@ -7,7 +7,7 @@
|
||||||
export let style = undefined;
|
export let style = undefined;
|
||||||
export let width = '100%';
|
export let width = '100%';
|
||||||
|
|
||||||
import { cx } from '../../lib';
|
import { cx, css } from '../../lib';
|
||||||
|
|
||||||
const randoms = [0.973051493507435, 0.15334737213558558, 0.5671034553053769];
|
const randoms = [0.973051493507435, 0.15334737213558558, 0.5671034553053769];
|
||||||
|
|
||||||
|
@ -41,6 +41,5 @@
|
||||||
on:mouseenter
|
on:mouseenter
|
||||||
on:mouseleave
|
on:mouseleave
|
||||||
class={cx('--skeleton__text', heading && '--skeleton__heading', className)}
|
class={cx('--skeleton__text', heading && '--skeleton__heading', className)}
|
||||||
style={`width: ${width};`}
|
style={css([style, ['width', width]])} />
|
||||||
{style} />
|
|
||||||
{/if}
|
{/if}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue