mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 11:36:36 +00:00
fix testes
This commit is contained in:
parent
386cc983c9
commit
13e2a56ba1
3 changed files with 10 additions and 10 deletions
|
@ -7,7 +7,7 @@
|
|||
|
||||
/**
|
||||
* Specify the size of button skeleton
|
||||
* @type {"default" | "field" | "small" | "lg" | "xl"}
|
||||
* @type {"default" | "field" | "sm" | "lg" | "xl"}
|
||||
*/
|
||||
export let size = "default";
|
||||
</script>
|
||||
|
@ -21,7 +21,7 @@
|
|||
class:bx--skeleton="{true}"
|
||||
class:bx--btn="{true}"
|
||||
class:bx--btn--field="{size === 'field'}"
|
||||
class:bx--btn--sm="{size === 'small'}"
|
||||
class:bx--btn--sm="{size === 'sm'}"
|
||||
class:bx--btn--lg="{size === 'lg'}"
|
||||
class:bx--btn--xl="{size === 'xl'}"
|
||||
{...$$restProps}
|
||||
|
@ -37,7 +37,7 @@
|
|||
class:bx--skeleton="{true}"
|
||||
class:bx--btn="{true}"
|
||||
class:bx--btn--field="{size === 'field'}"
|
||||
class:bx--btn--sm="{size === 'small'}"
|
||||
class:bx--btn--sm="{size === 'sm'}"
|
||||
class:bx--btn--lg="{size === 'lg'}"
|
||||
class:bx--btn--xl="{size === 'xl'}"
|
||||
{...$$restProps}
|
||||
|
|
|
@ -42,15 +42,15 @@
|
|||
|
||||
<Button size="field" kind="danger">Danger</Button>
|
||||
|
||||
<Button size="small">Primary</Button>
|
||||
<Button size="sm">Primary</Button>
|
||||
|
||||
<Button size="small" kind="secondary">Secondary</Button>
|
||||
<Button size="sm" kind="secondary">Secondary</Button>
|
||||
|
||||
<Button size="small" kind="tertiary">Tertiary</Button>
|
||||
<Button size="sm" kind="tertiary">Tertiary</Button>
|
||||
|
||||
<Button size="small" kind="ghost">Ghost</Button>
|
||||
<Button size="sm" kind="ghost">Ghost</Button>
|
||||
|
||||
<Button size="small" kind="danger">Danger</Button>
|
||||
<Button size="sm" kind="danger">Danger</Button>
|
||||
|
||||
<Button disabled>Disabled button</Button>
|
||||
|
||||
|
@ -58,4 +58,4 @@
|
|||
|
||||
<Button skeleton size="field" />
|
||||
|
||||
<Button skeleton size="small" />
|
||||
<Button skeleton size="sm" />
|
||||
|
|
2
types/Button/ButtonSkeleton.svelte.d.ts
vendored
2
types/Button/ButtonSkeleton.svelte.d.ts
vendored
|
@ -13,7 +13,7 @@ export interface ButtonSkeletonProps
|
|||
* Specify the size of button skeleton
|
||||
* @default "default"
|
||||
*/
|
||||
size?: "default" | "field" | "small" | "lg" | "xl";
|
||||
size?: "default" | "field" | "sm" | "lg" | "xl";
|
||||
|
||||
/**
|
||||
* SvelteKit attribute to enable data prefetching
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue