-
Notifications
You must be signed in to change notification settings - Fork 601
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: inconsistent default slot naming in accordian item #5437
Comments
@chrisdholt Not sure if this is an error in the spec, a bug in the component, or something wrong in the documentation or definition file. |
@EisenbergEffect it appears the |
I think the issue here is that removing this will break the current templates for anyone who is projecting using My proposal here would be to add a generic/default slot in addition to the named slot and then track the removal of that with an issue AND a TODO in the codebase for the next major version. |
Marking as good first issue for anyone in the community who wants to pick this up. |
@chrisdholt I'm happy to contribute a PR! |
Thanks! |
@m4thieulavoie pinging here because I don’t recall your @ on discord. Can you shoot me a message there when you get a second. Thanks again :) |
🐛 Bug Report
fast-accordion
's definition available here has a name for the default slot; elsewhere the default slot is named empty string.💻 Repro or Code Sample
No code is required. Read the component definition(s) on the component explorer and compare the default slot names.
🤔 Expected Behavior
The default slot should be named empty string
😯 Current Behavior
The default slot is named item
💁 Possible Solution
Rename slot to empty string
🔦 Context
I was attempting to generate svelte components with typescript definitions from the JSON definition(s) of the components. I noticed this inconsistency when it caused my generated code to not work as expected until I removed the name from this slot in my generated svelte component.
🌍 Your Environment
N/A
The text was updated successfully, but these errors were encountered: