mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 18:31:06 +00:00
Merge pull request #45 from metonym/accordion
refactor(accordion-item): remove comments, let assignment
This commit is contained in:
commit
5ec9c0089f
1 changed files with 0 additions and 4 deletions
|
@ -1,6 +1,4 @@
|
||||||
<script>
|
<script>
|
||||||
// NOTE: no 'renderExpando'; use 'expando' named slot
|
|
||||||
// TODO: change 'expando' to something more intuitive?
|
|
||||||
let className = undefined;
|
let className = undefined;
|
||||||
export { className as class };
|
export { className as class };
|
||||||
export let title = undefined;
|
export let title = undefined;
|
||||||
|
@ -11,8 +9,6 @@
|
||||||
import ChevronRight16 from 'carbon-icons-svelte/lib/ChevronRight16';
|
import ChevronRight16 from 'carbon-icons-svelte/lib/ChevronRight16';
|
||||||
import { cx } from '../../lib';
|
import { cx } from '../../lib';
|
||||||
|
|
||||||
let animation = undefined;
|
|
||||||
|
|
||||||
$: animation = open ? 'expanding' : 'collapsing';
|
$: animation = open ? 'expanding' : 'collapsing';
|
||||||
$: _class = cx(
|
$: _class = cx(
|
||||||
'--accordion__item',
|
'--accordion__item',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue