Merge pull request #45 from metonym/accordion

refactor(accordion-item): remove comments, let assignment
This commit is contained in:
Eric Liu 2019-12-19 19:48:53 -08:00 committed by GitHub
commit 5ec9c0089f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,6 +1,4 @@
<script>
// NOTE: no 'renderExpando'; use 'expando' named slot
// TODO: change 'expando' to something more intuitive?
let className = undefined;
export { className as class };
export let title = undefined;
@ -11,8 +9,6 @@
import ChevronRight16 from 'carbon-icons-svelte/lib/ChevronRight16';
import { cx } from '../../lib';
let animation = undefined;
$: animation = open ? 'expanding' : 'collapsing';
$: _class = cx(
'--accordion__item',