mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 10:21:05 +00:00
fix(header-global-action): icon slot should have a default size of 20 (#1257)
Fixes #1240
This commit is contained in:
parent
43e2986434
commit
1041c6e9f8
3 changed files with 5 additions and 5 deletions
|
@ -1643,9 +1643,9 @@ None.
|
||||||
|
|
||||||
### Slots
|
### Slots
|
||||||
|
|
||||||
| Slot name | Default | Props | Fallback |
|
| Slot name | Default | Props | Fallback |
|
||||||
| :-------- | :------ | :---- | :---------------------------------------------------- |
|
| :-------- | :------ | :---- | :-------------------------------------------------------------- |
|
||||||
| -- | Yes | -- | <code><svelte:component this="{icon}" /></code> |
|
| -- | Yes | -- | <code><svelte:component this="{icon}" size={20} /></code> |
|
||||||
|
|
||||||
### Events
|
### Events
|
||||||
|
|
||||||
|
|
|
@ -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": "{}"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
|
@ -21,6 +21,6 @@
|
||||||
on:click
|
on:click
|
||||||
>
|
>
|
||||||
<slot>
|
<slot>
|
||||||
<svelte:component this="{icon}" />
|
<svelte:component this="{icon}" size="{20}" />
|
||||||
</slot>
|
</slot>
|
||||||
</button>
|
</button>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue