File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11<script lang =" ts" >
22 import Badge from ' ./Badge.svelte' ;
3+ import Stack from ' ./layout/Stack.svelte' ;
34
45 export let legend: string ;
56 export let badge: string | undefined = undefined ;
89
910<fieldset >
1011 <legend >
11- <span class =" legend-content" >
12- <span class ="legend-text" >{legend }</span >
13- {#if badge }
14- <Badge content ={badge } variant ={badgeVariant } size =" xs" />
15- {/if }
12+ <span >
13+ <Stack inline direction =" row" alignItems =" center" gap =" xxs" >
14+ <span class ="legend-text" >{legend }</span >
15+ {#if badge }
16+ <Badge content ={badge } variant ={badgeVariant } size =" xs" />
17+ {/if }
18+ </Stack >
1619 </span >
1720 </legend >
1821 <div class =" content" ><slot /></div >
3134 margin-left : var (--space-6 , 12px );
3235 }
3336
34- .legend-content {
35- display : inline-flex ;
36- align-items : center ;
37- gap : var (--space-2 , 4px );
38- padding : 0 var (--space-2 , 4px );
39- }
40-
4137 .legend-text {
4238 font-family : var (--font-family-sansserif );
4339 font-size : var (--font-size-xs , 12px );
You can’t perform that action at this time.
0 commit comments