feat(list)!: integrate OrderedList, UnorderedList with v11 (#1959)

This commit is contained in:
Eric Liu 2024-04-21 13:15:44 -07:00 committed by GitHub
commit 42e50261a8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 71 additions and 197 deletions

View file

@ -1,22 +1,18 @@
<script>
// @ts-check
/** Set to `true` to use the nested variant */
export let nested = false;
/** Set to `true` to use Carbon's expressive typesetting */
/** Set to `true` to use expressive type styles */
export let expressive = false;
</script>
<!-- svelte-ignore a11y-mouse-events-have-key-events -->
<!-- svelte-ignore a11y-no-noninteractive-element-interactions -->
<ul
class:bx--list--unordered="{true}"
class:bx--list--nested="{nested}"
class:bx--list--expressive="{expressive}"
{...$$restProps}
on:click
on:mouseover
on:mouseenter
on:mouseleave
>
<slot />
</ul>