mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 18:31:06 +00:00
fix(tag): set restProps.class after class value
This commit is contained in:
parent
67be2ff436
commit
6c6defc4c9
3 changed files with 17 additions and 9 deletions
|
@ -11,12 +11,13 @@
|
|||
{#if filter}
|
||||
<div
|
||||
aria-label={title}
|
||||
{id}
|
||||
class:bx--tag={true}
|
||||
class:bx--tag--disabled={disabled}
|
||||
class:bx--tag--filter={filter}
|
||||
class="bx--tag--{type}"
|
||||
{id}
|
||||
{...$$restProps}>
|
||||
{...$$restProps}
|
||||
class="{type && `bx--tag--${type}`}
|
||||
{$$restProps.class}">
|
||||
<slot props={{ class: 'bx--tag__label' }}>
|
||||
<span class:bx--tag__label={true}>{type}</span>
|
||||
</slot>
|
||||
|
@ -36,8 +37,9 @@
|
|||
<span
|
||||
class:bx--tag={true}
|
||||
class:bx--tag--disabled={disabled}
|
||||
class="bx--tag--{type}"
|
||||
{...$$restProps}
|
||||
class="{type && `bx--tag--${type}`}
|
||||
{$$restProps.class}"
|
||||
on:click
|
||||
on:mouseover
|
||||
on:mouseenter
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue