Skip to content

Commit 01f0a9c

Browse files
spburtsevmetonym
authored andcommitted
fix(file-uploader-drop-container)!: change labelText slot to labelChildren
1 parent b5f9831 commit 01f0a9c

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

COMPONENT_INDEX.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1357,9 +1357,9 @@ None.
13571357

13581358
### Slots
13591359

1360-
| Slot name | Default | Props | Fallback |
1361-
| :-------- | :------ | :---------------------------------- | :----------------------- |
1362-
| labelText | No | <code>Record<string, never> </code> | <code>{labelText}</code> |
1360+
| Slot name | Default | Props | Fallback |
1361+
| :------------ | :------ | :---------------------------------- | :----------------------- |
1362+
| labelChildren | No | <code>Record<string, never> </code> | <code>{labelText}</code> |
13631363

13641364
### Events
13651365

docs/src/COMPONENT_API.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5380,7 +5380,7 @@
53805380
"moduleExports": [],
53815381
"slots": [
53825382
{
5383-
"name": "labelText",
5383+
"name": "labelChildren",
53845384
"default": false,
53855385
"fallback": "{labelText}",
53865386
"slot_props": "Record<string, never>"

src/FileUploader/FileUploaderDropContainer.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102
class:bx--file__drop-container={true}
103103
class:bx--file__drop-container--drag-over={over}
104104
>
105-
<slot name="labelText">
105+
<slot name="labelChildren">
106106
{labelText}
107107
</slot>
108108
</div>

tests/FileUploader/FileUploaderDropContainer.slot.test.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
</script>
44

55
<FileUploaderDropContainer labelText="Default label">
6-
<span slot="labelText">Custom label content</span>
6+
<span slot="labelChildren">Custom label content</span>
77
</FileUploaderDropContainer>

types/FileUploader/FileUploaderDropContainer.svelte.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,5 +87,5 @@ export default class FileUploaderDropContainer extends SvelteComponentTyped<
8787
keydown: WindowEventMap["keydown"];
8888
click: WindowEventMap["click"];
8989
},
90-
{ labelText: Record<string, never> }
90+
{ labelChildren: Record<string, never> }
9191
> {}

0 commit comments

Comments
 (0)