fix(header-global-action): icon slot should have a default size of 20 (#1257)

Fixes #1240
This commit is contained in:
metonym 2022-04-18 17:57:28 -07:00 committed by GitHub
commit 1041c6e9f8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

View file

@ -1643,9 +1643,9 @@ None.
### Slots ### Slots
| Slot name | Default | Props | Fallback | | Slot name | Default | Props | Fallback |
| :-------- | :------ | :---- | :---------------------------------------------------- | | :-------- | :------ | :---- | :-------------------------------------------------------------- |
| -- | Yes | -- | <code>&lt;svelte:component this="{icon}" /&gt;</code> | | -- | Yes | -- | <code>&lt;svelte:component this="{icon}" size={20} /&gt;</code> |
### Events ### Events

View file

@ -4669,7 +4669,7 @@
{ {
"name": "__default__", "name": "__default__",
"default": true, "default": true,
"fallback": "<svelte:component this=\"{icon}\" />", "fallback": "<svelte:component this=\"{icon}\" size={20} />",
"slot_props": "{}" "slot_props": "{}"
} }
], ],

View file

@ -21,6 +21,6 @@
on:click on:click
> >
<slot> <slot>
<svelte:component this="{icon}" /> <svelte:component this="{icon}" size="{20}" />
</slot> </slot>
</button> </button>