mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 10:21:05 +00:00
refactor(accordion-item): remove comments, let assignment
This commit is contained in:
parent
6f3834211e
commit
ce985ea90e
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