-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Failing test for concatenated classes on contextual glimmer components #16933
Failing test for concatenated classes on contextual glimmer components #16933
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! We should add tests for contextual components with other attributes passed also since class has special behavior to merge, but we also should confirm that “normal” attributes work in the test suite.
ade0530
to
d692103
Compare
@rwjblue I added another test for non-concatenable attributes like There is however one scenario where I don't know what the expected behavior is: {{!-- ui-button.hbs --}}
<button title="foo" ...attributes></button> {{!-- ui-form.hbs --}}
{{yield (hash button=(component "ui-button" title="bar"))}} {{!-- application.hbs --}}
<UiForm as |f|>
<f.button title="baz"></button>
</UiForm> Will the title passes to the |
Correct, anything inside curlies (which the yielded contextual component is) is going to be passed as an argument (and not an attribute to be merged/splatted). |
Any direction on where the problem may be? I free have time this week. |
Fixes issue with attribute merging with dynamic angle bracket component invocation (invoking paths, named args, locals, etc).
d692103
to
807c489
Compare
Just pushed the fix for these (after backporting it in glimmer-vm). |
Thank you @cibernox! |
We come from here: rwjblue/sparkles-component#7
Seems that in contextual components we can't add default classes to html elements that also receive another class on splattributes.
I don't even know where to look, but if someone can point me in the right direction I can try.
The issue can also be seen in this repo I created to play with sparkles-components: https://github.com/cibernox/sparkles-ember-basic-dropdown