forked from MapComplete/MapComplete
		
	Apply twJoin, twMerge
				
					
				
			Looking at https://github.com/dcastil/tailwind-merge/blob/v1.13.1/docs/when-and-how-to-use-it.md#how-to-use-it I placed the "winning" class at the end for twMerge
This commit is contained in:
		
							parent
							
								
									9c96f6534f
								
							
						
					
					
						commit
						b55d976492
					
				
					 16 changed files with 52 additions and 43 deletions
				
			
		|  | @ -6,15 +6,15 @@ | |||
|   import SubtleButton from "./SubtleButton.svelte" | ||||
|   import { ChevronLeftIcon } from "@rgossiaux/svelte-heroicons/solid" | ||||
|   import { createEventDispatcher } from "svelte" | ||||
|   import { twMerge } from "tailwind-merge" | ||||
| 
 | ||||
|   const dispatch = createEventDispatcher<{ click }>() | ||||
|   export let clss = "" | ||||
|   export let clss: string | undefined = undefined | ||||
| </script> | ||||
| 
 | ||||
| <SubtleButton | ||||
|   on:click={() => dispatch("click")} | ||||
|   options={{ extraClasses: clss + " flex items-center" }} | ||||
| > | ||||
|   options={{ extraClasses: twMerge("flex items-center", clss) }}> | ||||
|   <ChevronLeftIcon class="h-12 w-12" slot="image" /> | ||||
|   <slot slot="message" /> | ||||
| </SubtleButton> | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue